non monotonically increasing dts - skip badly broken subtitles
|Reported by:||yurtesen||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
I have problems with subtitles in dvb streams with ffmpeg 3.2.4
[mpegts @ 0x55a081ad1220] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 186981224 >= 186884791
av_interleaved_write_frame(): Invalid argument
Due to the large difference in positions, I expect there is a problem in the subtitle stream.
I tried the -fix_sub_duration option and it does not help. So I am thinking the issue is not related to previous subtitle duration being too long.
I think a solution would be skipping broken subtitles with a warning instead of exiting with conversion failed error. I would rather lose some apparently not working subtitles than conversion being stopped. Is this possible?
I used dd to cut to the position where the problem is.
# /usr/bin/ffmpeg -y -fix_sub_duration -i /tmp/vera.ts -c:s copy /tmp/vera2.ts
[mpegts @ 0x55ee74fb22c0] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 281690 >= 7438