Opened 7 years ago
Last modified 7 years ago
#5617 open defect
Application provided invalid, non monotonically increasing dts to muxer (TS)
|Reported by:||keynet||Owned by:|
|Version:||git-master||Keywords:||mpegts dvbsub av_interleaved_write_frame|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
Summary of the bug: Transcoding a TS made with current VDR (2.2.0).
Program exits 45s into recording with error
Application provided invalid, non monotonically increasing dts to muxer
error av_interleaved_write_frame(): Invalid argument
Subtitle stream is the cause.
Omitting the subs stream and the issue does not occur.
In fact one doesn't need to even transcode, just trying to copy the streams causes the same issue.
-fix_sub_duration doesn't help
May be similar to tickets #1154, #3658
How to reproduce:
% ffmpeg -y -report -v 9 -loglevel 99 -i "00001.ts" -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:v copy -c:a:0 copy -c:a:1 copy -c:s copy "file-1.ts" ffmpeg version N-80225-g1729387 built on 07-Jun-2016
Log attached, first 50s of video uploaded under this ticket number
Change History (7)
by , 7 years ago
comment:1 by , 7 years ago
|Keywords:||mpegts dvbsub av_interleaved_write_frame added; monotonically increasing dts TS muxer removed|
How was the recording made and which media player shows the subtitles in the recording you uploaded?
comment:2 by , 7 years ago
Recording on VDR 2.2.0 (current) from live TV
Plays on ffplay no problems (with subtitles).
- no errors produced as it goes through the problem section
Plays on VLC no problems, but doesn't show the subs (stream not listed)
by , 7 years ago
|Attachment:||start-ticket 5617_cut.ts added|
comment:3 by , 7 years ago
|Status:||new → open|
|Version:||unspecified → git-master|
Reproducible with the following simplified command line:
$ ffmpeg -i start-ticket\ 5617_cut.ts -scodec copy -mbd 2 -q:v 2 out.ts
comment:4 by , 7 years ago
|Reproduced by developer:||set|
comment:5 by , 7 years ago
In my testing the -fix_sub_duration option only works if it's immediately before a separate subs stream. If the streams are combined in a container (like here in a .ts) it seems the option is ignored. This is perhaps why the option isn't working around the non-monotonic DTS
ffmpeg log report