#9211: MPEG2 decoder timebase resets cause FFmpeg to lock up during concat or
the
output video stutter
-------------------------------------+-------------------------------------
Reporter: nab622 | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: 4.3.2
Keywords: MPEG2 | Blocked By:
timebase discontinuity |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I believe this is the same thing that is reported here:
https://ffmpeg.org/pipermail/ffmpeg-devel/2018-March/226706.html
In many MPEG2 (DVD) videos, the timebase resets during playback. FFmpeg
gets confused by this, and behaves unpredictably. Most notably, during a
"-i concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB" operation, some videos
will cause FFmpeg to get stuck in an infinite loop, generating thousands
of "NON-MONOTONOUS DTS" and "Buffer underflow" messages per second.
If I instead chunk the video up so the timebase resets are separate inputs
(Using dvd2concat), FFmpeg will work, but the output video will stutter at
every join between the inputs, sometimes for several seconds, which is
unacceptable.
I have tried -fflags +genpts, but it did not fix the problem.
Is there any way arbitrary timebase resets can be properly handled? It
seems to be part of the MPEG2 standard, and the link at the top of this
issue has code attached that claims to handle it. Even if it can just be
added as an optional switch, that would mean the world to anyone
processing DVD videos.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9211>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".