Opened 12 years ago

Closed 12 years ago

#572 closed defect (needs_more_info)

Video conversion fails with error " Application provided invalid, non monotonically increasing dts to muxer in stream"

Reported by: pranav_garg Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

While trying to convert a video to h264 format it fails.

The command used for converting the video to mp4 format:

export LD_LIBRARY_PATH=/usr/local/lib; /usr/local/bin/ffmpeg -y -i /var/www/crittermedia/data/tmp/dbd6a2885ae30bf736377d6b02465fe9 -acodec copy -ar 44100 -ab 96k -vcodec libx264 -level 41 -bufsize 20000k -threads 2 -maxrate 25000k -g 250 -r 20 -s 320x240 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +dct8x8+bpyramid -me_method umh -subq 7 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -bf 16 -b_strategy 1 -bidir_refine 1 -refs 6 -crf 25 -deblockalpha 0 -deblockbeta 0 /var/www/crittermedia/data/videos/dbd6a2885ae30bf736377d6b02465fe9.mp4

The output of the ffmpeg is

ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 18 2011 15:11:02 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-pthreads
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 1 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/crittermedia/data/tmp/dbd6a2885ae30bf736377d6b02465fe9':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2011-10-16 18:24:30
  Duration: 00:29:45.23, start: 0.200000, bitrate: 453 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 99 kb/s
    Metadata:
      creation_time   : 2011-10-16 18:24:30
    Stream #0.1(und): Video: h264 (Main), yuv420p, 320x240 [PAR 1:1 DAR 4:3], 348 kb/s, 30 fps, 30 tbr, 30k tbn, 60k tbc
    Metadata:
      creation_time   : 2011-10-16 18:24:30
[buffer @ 0x23cf660] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[libx264 @ 0x23c4b00] Default settings detected, using medium profile
[libx264 @ 0x23c4b00] using SAR=1/1
[libx264 @ 0x23c4b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 0x23c4b00] profile High, level 4.1
[libx264 @ 0x23c4b00] 264 - core 116 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=20 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=25000 vbv_bufsize=20000 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/var/www/crittermedia/data/videos/dbd6a2885ae30bf736377d6b02465fe9.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2011-10-16 18:24:30
    encoder         : Lavf53.4.0
    Stream #0.0(und): Video: libx264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 20 tbn, 20 tbc
    Metadata:
      creation_time   : 2011-10-16 18:24:30
    Stream #0.1(und): Audio: libfaac, 44100 Hz, stereo, 99 kb/s
    Metadata:
      creation_time   : 2011-10-16 18:24:30
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop, [?] for help
[mp4 @ 0x23c2e80] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 78726784 >= 78726784
av_interleaved_write_frame(): Invalid argument
{{{

}}}

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Please upload or attach a sample.

comment:2 by Carl Eugen Hoyos, 12 years ago

Resolution: needs_more_info
Status: newclosed

Please reopen if you can provide a sample.

Note: See TracTickets for help on using tickets.