[FFmpeg-devel] [PATCH v2 4/5] fftools/ffmpeg: flush and recreate encoder instance if resolution changes
Nicolas George
george at nsup.org
Tue Jun 16 16:40:17 EEST 2020
Fu, Linjie (12020-06-16):
> Chapter 2.3 Parameter Sets in < High Efficiency Video Coding (HEVC)
> Algorithms and Architectures> [1]:
That is ONE codec. Not all of them.
> Indeed, the definition in spec is just the conformance, and how an encoder is
> implemented in Libavcodec (and external library if any) is the thing really matters.
>
> For encoders like libx264[2], libx265[3], libopenh264[4], if AV_CODEC_FLAG_GLOBAL_HEADER
> flag is declared, the parameter Sets would be copied to extra data as the global header.
> If not, parameter sets would be kept in the original bitstream, since it's fundamentally
> supported in the encoder.
IIRC, encapsulation standards mandate one or the other for their
respective formats. We cannot choose.
Fact is, you cannot concatenate two packet streams and expect it to
work.
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/20200616/06f84db9/attachment.sig>
More information about the ffmpeg-devel
mailing list