[FFmpeg-user] ... invalid, non monotonically increasing dts... with yadif=1

Andy Furniss andyqos at ukfsn.org
Fri Apr 20 19:28:01 CEST 2012


Apologies in advance if I am doing something stupid or no one else can 
recreate.

This (19meg) possibly broken (but plays OK) mpeg2 transport stream will 
fail transcoding if I try to make 50fps with yadif=1, but works OK with 
yadif=0. Full output of both below.

http://www.andyqos.ukfsn.org/non-mon-dts-with-yadif1.ts


bash-3.2$ ffmpeg  -i non-mon-dts-with-yadif1.ts -sn -loglevel verbose 
-vf yadif=1  -acodec copy  -vcodec libx264 -crf 23 -threads 1  -r 50 
test.mkv
ffmpeg version N-40006-g4a80ebe Copyright (c) 2000-2012 the FFmpeg 
developers
   built on Apr 20 2012 17:55:51 with gcc 4.5.1
   configuration: --prefix=/usr --enable-gpl --enable-libx264 
--enable-libfaac --enable-nonfree
   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. 71.101 /  2. 71.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 11.100 /  0. 11.100
   libpostproc    52.  0.100 / 52.  0.100
[mpegts @ 0xa62b380] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0xa62b380] PES packet size mismatch
     Last message repeated 2 times
Input #0, mpegts, from 'non-mon-dts-with-yadif1.ts':
   Duration: 00:00:40.14, start: 94437.027178, bitrate: 3836 kb/s
   Program 1
     Stream #0:0[0x44](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, mono, s16, 64 kb/s
     Stream #0:1[0x45](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, stereo, s16, 192 kb/s
     Stream #0:2[0x46]: Video: mpeg2video (Main) ([2][0][0][0] / 
0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 15000 kb/s, 25 fps, 25 
tbr, 90k tbn, 50 tbc
     Stream #0:3[0x47](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[buffer @ 0xa631560] w:704 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/11 
sws_param:flags=2
[yadif @ 0xa6736c0] mode:1 parity:-1 auto_enable:0
[libx264 @ 0xa630b00] using SAR=16/11
[libx264 @ 0xa630b00] using cpu capabilities: MMX2 SSE2Fast FastShuffle 
SSEMisalign LZCNT
[libx264 @ 0xa630b00] profile High, level 3.1
[libx264 @ 0xa630b00] 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=1 
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=crf mbtree=1 crf=23.0 qcomp=0.60 
qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'test.mkv':
   Metadata:
     encoder         : Lavf54.3.100
     Stream #0:0: Video: h264, yuv420p, 704x576 [SAR 16:11 DAR 16:9], 
q=-1--1, 1k tbn, 50 tbc
     Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, 192 kb/s
Stream mapping:
   Stream #0:2 -> #0:0 (mpeg2video -> libx264)
   Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
non-strictly-monotonic PTS size=    5228kB time=00:00:10.46 
bitrate=4094.3kbits/s
Application provided invalid, non monotonically increasing dts to muxer 
in stream 0: 11380 >= 11380
av_interleaved_write_frame(): Invalid argument
bash-3.2$
bash-3.2$
bash-3.2$
bash-3.2$
bash-3.2$ ffmpeg  -i non-mon-dts-with-yadif1.ts -sn -loglevel verbose 
-vf yadif=0  -acodec copy  -vcodec libx264 -crf 23 -threads 1  -r 25 
test.mkv
ffmpeg version N-40006-g4a80ebe Copyright (c) 2000-2012 the FFmpeg 
developers
   built on Apr 20 2012 17:55:51 with gcc 4.5.1
   configuration: --prefix=/usr --enable-gpl --enable-libx264 
--enable-libfaac --enable-nonfree
   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. 71.101 /  2. 71.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 11.100 /  0. 11.100
   libpostproc    52.  0.100 / 52.  0.100
[mpegts @ 0x92f3380] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x92f3380] PES packet size mismatch
     Last message repeated 2 times
Input #0, mpegts, from 'non-mon-dts-with-yadif1.ts':
   Duration: 00:00:40.14, start: 94437.027178, bitrate: 3836 kb/s
   Program 1
     Stream #0:0[0x44](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, mono, s16, 64 kb/s
     Stream #0:1[0x45](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 
Hz, stereo, s16, 192 kb/s
     Stream #0:2[0x46]: Video: mpeg2video (Main) ([2][0][0][0] / 
0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 15000 kb/s, 25 fps, 25 
tbr, 90k tbn, 50 tbc
     Stream #0:3[0x47](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
File 'test.mkv' already exists. Overwrite ? [y/N] y
w:704 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/11 sws_param:flags=2
[yadif @ 0x933b6c0] mode:0 parity:-1 auto_enable:0
[libx264 @ 0x92f8b00] using SAR=16/11
[libx264 @ 0x92f8b00] using cpu capabilities: MMX2 SSE2Fast FastShuffle 
SSEMisalign LZCNT
[libx264 @ 0x92f8b00] profile High, level 3.0
[libx264 @ 0x92f8b00] 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=1 
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=crf mbtree=1 crf=23.0 qcomp=0.60 
qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'test.mkv':
   Metadata:
     encoder         : Lavf54.3.100
     Stream #0:0: Video: h264, yuv420p, 704x576 [SAR 16:11 DAR 16:9], 
q=-1--1, 1k tbn, 25 tbc
     Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, 192 kb/s
Stream mapping:
   Stream #0:2 -> #0:0 (mpeg2video -> libx264)
   Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
PES packet size mismatch.0 size=   15239kB time=00:00:37.96 
bitrate=3288.7kbits/s
[mpegts @ 0x92f3380] PES packet size mismatch
[mpeg2video @ 0x932ee00] ac-tex damaged at 38 14
[mpeg2video @ 0x932ee00] Warning MVs not available
[mpeg2video @ 0x932ee00] concealing 968 DC, 968 AC, 968 MV errors
AV Filter told us it has a frame available but failed to output one
frame=  979 fps= 14 q=28.0 Lsize=   15783kB time=00:00:40.00 
bitrate=3232.4kbits/s
video:14827kB audio:937kB global headers:0kB muxing overhead 0.123132%
[libx264 @ 0x92f8b00] frame I:6     Avg QP:23.30  size: 58220
[libx264 @ 0x92f8b00] frame P:493   Avg QP:26.00  size: 23950
[libx264 @ 0x92f8b00] frame B:480   Avg QP:30.44  size:  6303
[libx264 @ 0x92f8b00] consecutive B-frames:  1.9% 98.1%  0.0%  0.0%
[libx264 @ 0x92f8b00] mb I  I16..4:  6.9% 61.3% 31.8%
[libx264 @ 0x92f8b00] mb P  I16..4:  1.5%  5.6%  1.3%  P16..4: 41.8% 
25.3% 16.1%  0.0%  0.0%    skip: 8.4%
[libx264 @ 0x92f8b00] mb B  I16..4:  0.2%  0.5%  0.1%  B16..8: 45.4% 
9.0%  2.4%  direct: 5.3%  skip:37.1%  L0:41.5% L1:40.6% BI:17.9%
[libx264 @ 0x92f8b00] 8x8 transform intra:65.4% inter:68.6%
[libx264 @ 0x92f8b00] coded y,uvDC,uvAC intra: 71.8% 53.1% 19.3% inter: 
39.2% 18.0% 3.1%
[libx264 @ 0x92f8b00] i16 v,h,dc,p: 33% 34% 23% 10%
[libx264 @ 0x92f8b00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16% 27%  4%  6% 
  7%  6%  6%  5%
[libx264 @ 0x92f8b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 12%  5%  9% 
10%  8%  7%  6%
[libx264 @ 0x92f8b00] i8c dc,h,v,p: 56% 20% 21%  3%
[libx264 @ 0x92f8b00] Weighted P-Frames: Y:4.3% UV:1.6%
[libx264 @ 0x92f8b00] ref P L0: 62.3% 16.2% 14.2%  7.1%  0.2%
[libx264 @ 0x92f8b00] ref B L0: 77.2% 22.8%
[libx264 @ 0x92f8b00] kb/s:3101.60


More information about the ffmpeg-user mailing list