Opened 8 years ago

Last modified 8 years ago

#5617 open defect

Application provided invalid, non monotonically increasing dts to muxer (TS)

Reported by: keynet Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mpegts dvbsub av_interleaved_write_frame
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

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

Accompanied by 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.

Using option -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

Attachments (2)

ffmpeg-20160607-113546.log (221.6 KB ) - added by keynet 8 years ago.
ffmpeg log report
start-ticket 5617_cut.ts (2.4 MB ) - added by Carl Eugen Hoyos 8 years ago.

Change History (7)

by keynet, 8 years ago

Attachment: ffmpeg-20160607-113546.log added

ffmpeg log report

comment:1 by Carl Eugen Hoyos, 8 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 keynet, 8 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 Carl Eugen Hoyos, 8 years ago

Attachment: start-ticket 5617_cut.ts added

comment:3 by Carl Eugen Hoyos, 8 years ago

Status: newopen
Version: unspecifiedgit-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 Carl Eugen Hoyos, 8 years ago

Reproduced by developer: set

comment:5 by keynet, 8 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

Note: See TracTickets for help on using tickets.