[FFmpeg-devel] FW: Application provided invalid, non monotonically increasing dts to muxer in stream 1: 220616 >= 218180‏

juha s. salmjuh at hotmail.com
Fri Apr 13 09:50:14 CEST 2012


 
Hi
 
I found free BBC-HD channell from internet and I made several capture test with exactly same setting tah I use for our inside stream. BBC-HD worked like a swiss clock, but my internal stream capture failed  again. So it's seems that my internal stream is broken but I can't find what is wrong with it. Wowza media server and AKAMAI accept my stream with no error, but tis capture seems to be a problem. Any ideas ?
 
BR,
jiiiii
 
Ps. Here is few more test cases
 
 
Free BBC-HD – this is OK:
 
root at CVod1:~# ffmpeg -i rtsp://s7.webport.tv:1935/live/z010201.stream -copyts -c:v libx264  -c:a copy -b:a 128k  -b:v 900k   -y /tmp/test.mp4
ffmpeg version N-35217-ge9dc616 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 13 2012 10:05:51 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 69.101 /  2. 69.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[rtsp @ 0x34b7080] UDP timeout, retrying with TCP
[rtsp @ 0x34b7080] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://s7.webport.tv:1935/live/z010201.stream':
  Metadata:
    title           : rtmp://s2.futubox.com:1935/s2/_definst_/z010201.stream
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: aac, 44100 Hz, stereo, s16
    Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
[buffer @ 0x34f8780] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[libx264 @ 0x34fa0a0] using SAR=1/1
[libx264 @ 0x34fa0a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x34fa0a0] profile High, level 3.1
[libx264 @ 0x34fa0a0] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=24 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=900 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/test.mp4':
  Metadata:
    title           : rtmp://s2.futubox.com:1935/s2/_definst_/z010201.stream
    encoder         : Lavf54.3.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 900 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, stereo
Stream mapping:
  Stream #0:1 -> #0:0 (h264 -> libx264)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  174 fps= 26 q=-1.0 Lsize=    1009kB time=00:00:06.88 bitrate=1201.7kbits/s dup=20 drop=0
video:893kB audio:110kB global headers:0kB muxing overhead 0.537592%
[libx264 @ 0x34fa0a0] frame I:2     Avg QP:21.12  size: 75960
[libx264 @ 0x34fa0a0] frame P:60    Avg QP:26.22  size:  8293
[libx264 @ 0x34fa0a0] frame B:112   Avg QP:31.15  size:  2363
[libx264 @ 0x34fa0a0] consecutive B-frames: 12.1%  0.0% 19.0% 69.0%
[libx264 @ 0x34fa0a0] mb I  I16..4:  6.2% 52.5% 41.3%
[libx264 @ 0x34fa0a0] mb P  I16..4:  0.7%  2.3%  0.3%  P16..4: 34.1%  9.7%  4.4%  0.0%  0.0%    skip:48.4%
[libx264 @ 0x34fa0a0] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 34.2%  2.3%  0.3%  direct: 0.6%  skip:62.4%  L0:48.8% L1:49.1% BI: 2.1%
[libx264 @ 0x34fa0a0] final ratefactor: 26.83
[libx264 @ 0x34fa0a0] 8x8 transform intra:60.0% inter:79.1%
[libx264 @ 0x34fa0a0] coded y,uvDC,uvAC intra: 67.4% 60.6% 18.3% inter: 6.7% 7.9% 0.0%
[libx264 @ 0x34fa0a0] i16 v,h,dc,p: 33% 37% 11% 19%
[libx264 @ 0x34fa0a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 23% 17%  4%  7%  8%  9%  7%  8%
[libx264 @ 0x34fa0a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 28% 10%  5%  9%  7% 12%  5%  8%
[libx264 @ 0x34fa0a0] i8c dc,h,v,p: 55% 21% 20%  4%
[libx264 @ 0x34fa0a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x34fa0a0] ref P L0: 66.6% 15.8% 13.9%  3.7%
[libx264 @ 0x34fa0a0] ref B L0: 95.1%  4.3%  0.6%
[libx264 @ 0x34fa0a0] ref B L1: 96.2%  3.8%
[libx264 @ 0x34fa0a0] kb/s:1050.77
 

 
Internal RTSP Stream – Not OK
 
root at CVod1:~# ffmpeg -i  rtsp://10.71.31.232:8554 -copyts -c:v libx264  -c:a copy -b:a 128k  -b:v 900k   -y /tmp/test.mp4
ffmpeg version N-35217-ge9dc616 Copyright (c) 2000-2012 the FFmpeg developers
  built on Apr 13 2012 10:05:51 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
  libavutil      51. 46.100 / 51. 46.100
  libavcodec     54. 14.101 / 54. 14.101
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 69.101 /  2. 69.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[h264 @ 0x31a9c60] Missing reference picture
[h264 @ 0x31a9c60] decode_slice_header error
[h264 @ 0x31a9c60] concealing 920 DC, 920 AC, 920 MV errors
[h264 @ 0x31a9c60] Missing reference picture
[h264 @ 0x31a9c60] decode_slice_header error
[h264 @ 0x31a9c60] concealing 920 DC, 920 AC, 920 MV errors
[h264 @ 0x31a9c60] Missing reference picture
[h264 @ 0x31a9c60] decode_slice_header error
[h264 @ 0x31a9c60] concealing 920 DC, 920 AC, 920 MV errors
[h264 @ 0x31a9c60] Increasing reorder buffer to 1
[rtsp @ 0x319b080] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://10.71.31.232:8554':
  Metadata:
    title           : TEST
    comment         : Foo Media
  Duration: N/A, start: 0.080000, bitrate: N/A
    Stream #0:0: Audio: aac, 44100 Hz, stereo, s16
    Stream #0:1: Video: h264 (Main), yuv420p, 640x360, 25 fps, 25 tbr, 90k tbn, 50 tbc
[buffer @ 0x31fc840] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:flags=2
[libx264 @ 0x3200fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x3200fc0] profile High, level 3.0
[libx264 @ 0x3200fc0] 264 - core 122 r2184 5c85e0a - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=24 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=900 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/tmp/test.mp4':
  Metadata:
    title           : TEST
    comment         : Foo Media
    encoder         : Lavf54.3.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 640x360, q=-1--1, 900 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, stereo
Stream mapping:
  Stream #0:1 -> #0:0 (h264 -> libx264)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264 @ 0x511d6e0] Missing reference picture
[h264 @ 0x511d6e0] decode_slice_header error
[h264 @ 0x511d6e0] concealing 920 DC, 920 AC, 920 MV errors
[h264 @ 0x5162420] Missing reference picture
[h264 @ 0x5162420] decode_slice_header error
[h264 @ 0x5162420] concealing 920 DC, 920 AC, 920 MV errors
[h264 @ 0x51c1e80] Missing reference picture
[h264 @ 0x51c1e80] decode_slice_header error
[h264 @ 0x51c1e80] concealing 920 DC, 920 AC, 920 MV errors
Application provided invalid, non monotonically increasing dts to muxer in stream 1: 75208 >= 72660
av_interleaved_write_frame(): Invalid argument
  		 	   		  


More information about the ffmpeg-devel mailing list