[FFmpeg-trac] #3772(undetermined:new): Transcoding fails due to non monotonically increasing dts to muxer using tee.

FFmpeg trac at avcodec.org
Wed Jul 16 17:51:26 CEST 2014

#3772: Transcoding fails due to non monotonically increasing dts to muxer using
             Reporter:  muhammet     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 A wmv file will be transcoded to mp4 and hls using tee. While using tee
 ffmpeg fails due to:
 Application provided invalid, non monotonically increasing dts to muxer in
 stream 1: 47526 >= 47526
 (The complete log file will be attached to the ticket)

 However if I checkout the current source code and compile ffmpeg by
 following the compilation guide
 https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu the resulting
 executable also prints out similar warnings but completes. The resulting
 files are fine, they can be played etc.
 Since the ffmpeg transcoding task completed using the self compiled ffmpeg
 executable I tried to compile a static one so that this could be used on
 the production environment.

 Note that this only happens while using the tee muxer. Transcoding in
 several steps without using tee works fine which is due to how the
 situation with the non monotonically increasing dts is handled. While
 using tee non monotonically increasing dts is handled at
 https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/mux.c#L498 while
 without using tee it is handled at

 How to reproduce:
 % ffmpeg -i /path/input.wmv -threads 1 -c:v libx264 -profile:v high -level
 4.0 -pix_fmt yuv420p -movflags +faststart -c:a aac -ac 2 -crf 26 -preset:v
 veryfast -strict experimental -flags +global_header -f tee -map 0:v -map
 ffmpeg version 2.2.4-
 built on Jul  1 2014 22:10:48 with gcc 4.8 (Debian 4.8.3-4)

Ticket URL: <https://trac.ffmpeg.org/ticket/3772>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list