[FFmpeg-devel] [PATCH v2 4/5] fftools/ffmpeg: flush and recreate encoder instance if resolution changes
Nicolas George
george at nsup.org
Thu Jun 11 19:49:11 EEST 2020
Linjie Fu (12020-06-11):
> Add recreate_encoder_instance() function.
>
> If resolution changing is allowed, discard AV_CODEC_FLAG_GLOBAL_HEADER
> even if the avformat/container declares AVFMT_GLOBALHEADER flag. Place
> header information in every keyframe instead of single global header.
Why? How is it valid? If the codec requires global header, we cannot
just ignore them. And if the codec can change resolution, there is no
point in recreating it.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200611/c5958bf2/attachment.sig>
More information about the ffmpeg-devel
mailing list