[FFmpeg-user] A query on mpegts and global headers

Dennis Mungai dmngaie at gmail.com
Sun Aug 30 16:22:14 EEST 2020


Hello there,

With mpegts output, should global headers be used or not, set via -fflags
+global_header?

And if there are exceptions to that, based on the codec type wrapped in
mpegts, when should global headers be used for mpegts?

I ask because of the dump_extra bitstream filter documentation, which shows
a similar use case:
https://ffmpeg.org/ffmpeg-bitstream-filters.html#dump_005fextra

Which implies that global headers should not be used with mpegts, *but*
even if that's the case, it can be corrected via the video bitstream filter
dump_extra.

Another example of this, cited by Gyan in this answer on Stackoverflow:
https://video.stackexchange.com/a/25797/19326

Please help on clarifying this. The ffmpeg documentation can be a bit
daunting at times.

Regards,

Dennis.


More information about the ffmpeg-user mailing list