[FFmpeg-user] Transcode wmv->mp4 fails with latest version
Jon Drukman
jsd at cluttered.com
Wed Apr 4 23:42:38 CEST 2012
I am attempting to upgrade an older ffmpeg system I have to the latest and
greatest. However, I am unable to get certain files to transcode with the
latest version.
test file: http://tmeast.s3.amazonaws.com/demo/paristest.wmv
old command line (works correctly):
$ ffmpeg -y -i paristest.wmv -s 480x352 -sample_fmt s16 -acodec libfaac -ab
64k -ac 2 -ar 44100 -async 0 -vcodec libx264 -vpre fast -b 300k -bt 300k
-threads 0 -vsync 1 test.mp4
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on May 25 2011 22:23:12 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-pthreads --enable-static --disable-shared
--disable-network --enable-nonfree
libavutil 51. 2. 2 / 51. 2. 2
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 11. 0 / 2. 11. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0
[wmv3 @ 0x9a79e80] Extra data: 8 bits left, value: 0
Seems stream 1 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'ParisTravelVideo.wmv':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
Duration: 00:03:21.00, start: 0.000000, bitrate: 7403 kb/s
Stream #0.0(eng): Audio: wmav2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0.1(eng): Video: wmv3 (Main), yuv420p, 1440x1080, 8196 kb/s,
PAR 4:3 DAR 16:9, 29.97 tbr, 1k tbn, 1k tbc
[buffer @ 0x9a79be0] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3
sws_param:
[scale @ 0x9a79960] w:1440 h:1080 fmt:yuv420p -> w:480 h:352 fmt:yuv420p
flags:0x4
[libx264 @ 0x9a772c0] using SAR=4/3
[libx264 @ 0x9a772c0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x9a772c0] profile High, level 2.1
[libx264 @ 0x9a772c0] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft
2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=2
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=3 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=1 weightp=1 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1
bitrate=300 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
[wmv3 @ 0x9a79e80] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'test.mp4':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
encoder : Lavf53.2.0
Stream #0.0(eng): Video: libx264, yuv420p, 480x352 [PAR 4:3 DAR 20:11],
q=2-31, 300 kb/s, 30k tbn, 29.97 tbc
Stream #0.1(eng): Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1$ ffmpeg -y -i ParisTravelVideo.wmv -s 480x352
-sample_fmt s16 -acodec libfaac -ab 64k -ac 2 -ar 44100 -async 0 -vcodec
libx264 -vpre fast -b 300k -bt 300k -threads 0 -vsync 1 test.mp4
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on May 25 2011 22:23:12 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-pthreads --enable-static --disable-shared
--disable-network --enable-nonfree
libavutil 51. 2. 2 / 51. 2. 2
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 11. 0 / 2. 11. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0
[wmv3 @ 0x9a79e80] Extra data: 8 bits left, value: 0
Seems stream 1 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'ParisTravelVideo.wmv':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
Duration: 00:03:21.00, start: 0.000000, bitrate: 7403 kb/s
Stream #0.0(eng): Audio: wmav2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0.1(eng): Video: wmv3 (Main), yuv420p, 1440x1080, 8196 kb/s,
PAR 4:3 DAR 16:9, 29.97 tbr, 1k tbn, 1k tbc
[buffer @ 0x9a79be0] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3
sws_param:
[scale @ 0x9a79960] w:1440 h:1080 fmt:yuv420p -> w:480 h:352 fmt:yuv420p
flags:0x4
[libx264 @ 0x9a772c0] using SAR=4/3
[libx264 @ 0x9a772c0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x9a772c0] profile High, level 2.1
[libx264 @ 0x9a772c0] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft
2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=2
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=3 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=1 weightp=1 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1
bitrate=300 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
[wmv3 @ 0x9a79e80] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'test.mp4':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
encoder : Lavf53.2.0
Stream #0.0(eng): Video: libx264, yuv420p, 480x352 [PAR 4:3 DAR 20:11],
q=2-31, 300 kb/s, 30k tbn, 29.97 tbc
Stream #0.1(eng): Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
frame= 6024 fps= 39 q=-1.0 Lsize= 8627kB time=200.93 bitrate=
351.7kbits/s /s
video:6932kB audio:1536kB global headers:0kB muxing overhead 1.879083%
frame I:76 Avg QP:24.53 size: 10024
[libx264 @ 0x9a772c0] frame P:2517 Avg QP:28.82 size: 2119
[libx264 @ 0x9a772c0] frame B:3431 Avg QP:31.86 size: 292
[libx264 @ 0x9a772c0] consecutive B-frames: 13.9% 27.3% 9.3% 49.5%
[libx264 @ 0x9a772c0] mb I I16..4: 21.9% 60.0% 18.1%
[libx264 @ 0x9a772c0] mb P I16..4: 3.0% 5.6% 1.0% P16..4: 31.3% 7.6%
4.1% 0.0% 0.0% skip:47.4%
[libx264 @ 0x9a772c0] mb B I16..4: 0.5% 0.7% 0.0% B16..8: 10.4% 1.4%
0.1% direct: 3.9% skip:83.0% L0:35.7% L1:57.0% BI: 7.3%
[libx264 @ 0x9a772c0] final ratefactor: 26.26
[libx264 @ 0x9a772c0] 8x8 transform intra:58.1% inter:72.8%
[libx264 @ 0x9a772c0] coded y,uvDC,uvAC intra: 46.1% 44.7% 16.4% inter:
8.9% 7.6% 0.5%
[libx264 @ 0x9a772c0] i16 v,h,dc,p: 53% 20% 10% 17%
[libx264 @ 0x9a772c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 14% 25% 5% 7%
8% 7% 7% 6%
[libx264 @ 0x9a772c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 13% 17% 6% 8%
9% 7% 6% 4%
[libx264 @ 0x9a772c0] i8c dc,h,v,p: 61% 18% 17% 4%
[libx264 @ 0x9a772c0] Weighted P-Frames: Y:21.3% UV:14.5%
[libx264 @ 0x9a772c0] ref P L0: 74.9% 25.1%
[libx264 @ 0x9a772c0] ref B L0: 84.1% 15.9%
[libx264 @ 0x9a772c0] ref B L1: 95.9% 4.1%
[libx264 @ 0x9a772c0] kb/s:282.51
With the latest and greatest ffmpeg (checked out and built today), the same
command fails like so:
$ ffmpeg -y -i paristest.wmv -s 480x352 -sample_fmt s16 -acodec libfaac -ab
64k -ac 2 -ar 44100 -async 0 -vcodec libx264 -preset fast -b:v 300k -bt
300k -threads 0 -vsync 1 test.mp4
ffmpeg version 0.10.2.git Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 4 2012 17:47:11 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-pthreads --enable-static --disable-shared
--disable-network --enable-nonfree
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 66.101 / 2. 66.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100
[wmv3 @ 0x9984a60] Extra data: 8 bits left, value: 0
Input #0, asf, from 'ParisTravelVideo.wmv':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
Duration: 00:03:21.00, start: 0.000000, bitrate: 7403 kb/s
Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2
channels, s16, 192 kb/s
Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p,
1440x1080, 8196 kb/s, SAR 4:3 DAR 16:9, 29.97 tbr, 1k tbn, 1k tbc
[buffer @ 0x9986020] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3
sws_param:flags=2
[scale @ 0x99a8680] w:1440 h:1080 fmt:yuv420p sar:4/3 -> w:480 h:352
fmt:yuv420p sar:176/135 flags:0x4
[libx264 @ 0x999a580] using SAR=176/135
[libx264 @ 0x999a580] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x999a580] profile High, level 2.1
[libx264 @ 0x999a580] 264 - core 122 - H.264/MPEG-4 AVC codec - Copyleft
2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=2
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 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=3 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=1 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1
bitrate=300 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
[wmv3 @ 0x9984a60] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'test.mp4':
Metadata:
SfOriginalFPS : 299
WMFSDKVersion : 12.0.7601.17514
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
encoder : Lavf54.3.100
Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 480x352
[SAR 176:135 DAR 16:9], q=-1--1, 300 kb/s, 30k tbn, 29.97 tbc
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2
channels, s16, 64 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (wmv3 -> libx264)
Stream #0:0 -> #0:1 (wmav2 -> libfaac)
Press [q] to stop, [?] for help
Application provided invalid, non monotonically increasing dts to muxer in
stream 1: 6144 >= 5296
av_interleaved_write_frame(): Invalid argument
Is there a workaround?
More information about the ffmpeg-user
mailing list