[FFmpeg-devel] [PATCH] libavformat/qsvenc: repeat mpeg2 missing headers [v2]
Andreas HÃ¥kon
andreas.hakon at protonmail.com
Tue Jun 4 16:07:44 EEST 2019
Hi,
I need to admit that I'm completely wrong in the end. After spending a lot
of time on a patch to solve the problem (making the MPEG-2 QSV encoder
compatible with broadcasts), I discovered that this solution works:
$ ffmpeg ... -c:v mpeg2_qsv -bsf:v 'dump_extra' -f mpegts ...
Using this bitstream filter every GOP includes the missing sequence headers.
However, one flaw persists:
- The first GOP has duplicated SEQ_START_CODE and EXT_START_CODE headers.
The problem is that the dump_extra filter re-injects the headers
without **verifying** their existence.
Until someone fixes this, I'm commenting it here for documentation.
In addition, I hope that an example will be incorporated into the
Documentation as a reference.
In any case, thank you for pointing out the mistake!
Regards.
A.H.
---
More information about the ffmpeg-devel
mailing list