[FFmpeg-user] WMV to H264 resulting in size change
Benjamin Black
benblack86 at gmail.com
Thu Apr 9 17:29:09 CEST 2015
Hello,
I’m trying to convert a WMV video with original dimensions 720x480 to H264, but the output changes to 640x480. And ffprobe claims that the output video is 720x480, but all the video players I’ve tried report that it is 640x480. I’ve tried version 2.6.1 and the latest. Am I missing something obvious or is this a bug?
Original: https://www.dropbox.com/s/kr063bofzqvry4f/original.wmv?dl=0
Output: https://www.dropbox.com/s/iky46jpu0gzt517/output.mp4?dl=0
> bin/ffmpeg -y -i original.wmv -c:v libx264 -profile:v baseline -b:v 3072k -r:v 30 -preset medium -c:a libfdk_aac -profile:a aac_low -ac 2 -b:a 128k -r:a 44100 -movflags faststart output.mp4
ffmpeg version git-2015-04-09-98d0c42 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
configuration: --prefix=/home/benblack/ffmpeg_build --extra-cflags=-I/home/benblack/ffmpeg_build/include --extra-ldflags=-L/home/benblack/ffmpeg_build/lib --bindir=/home/benblack/bin --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libx264
libavutil 54. 22.101 / 54. 22.101
libavcodec 56. 34.100 / 56. 34.100
libavformat 56. 30.100 / 56. 30.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 13.101 / 5. 13.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[wmv3 @ 0x3264ba0] Extra data: 8 bits left, value: 0
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, asf, from 'original.wmv':
Metadata:
Application : Windows Movie Maker 6.0.6002.18273
WM/ToolVersion : 6.0.6002.18273
WM/ToolName : Windows Movie Maker
WMFSDKVersion : 11.0.6002.18049
WMFSDKNeeded : 0.0.0.0000
Buffer Average : 755
VBR Peak : 5498136
IsVBR : 1
DeviceConformanceTemplate: MP at ML
Duration: 00:00:23.77, start: 0.000000, bitrate: 6767 kb/s
Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels, fltp, 192 kb/s
Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 720x480, 6634 kb/s, SAR 8:9 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc
[libx264 @ 0x3265720] using SAR=8/9
[libx264 @ 0x3265720] using cpu capabilities: MMX2 SSE2Fast LZCNT
[libx264 @ 0x3265720] profile Constrained Baseline, level 3.0
[libx264 @ 0x3265720] 264 - core 146 r2 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=3072 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[wmv3 @ 0x3265060] Extra data: 8 bits left, value: 0
Output #0, mp4, to 'output_dev.mp4':
Metadata:
Application : Windows Movie Maker 6.0.6002.18273
WM/ToolVersion : 6.0.6002.18273
WM/ToolName : Windows Movie Maker
WMFSDKVersion : 11.0.6002.18049
WMFSDKNeeded : 0.0.0.0000
Buffer Average : 755
VBR Peak : 5498136
IsVBR : 1
DeviceConformanceTemplate: MP at ML
encoder : Lavf56.30.100
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=-1--1, 3072 kb/s, 30 fps, 15360 tbn, 30 tbc
Metadata:
rotate : 0
encoder : Lavc56.34.100 libx264
Stream #0:1(eng): Audio: aac (libfdk_aac) (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.34.100 libfdk_aac
Stream mapping:
Stream #0:1 -> #0:0 (wmv3 (native) -> h264 (libx264))
Stream #0:0 -> #0:1 (wmav2 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[libfdk_aac @ 0x3266680] Queue input is backward in time
[mp4 @ 0x3286060] Non-monotonous DTS in output stream 0:1; previous: 27648, current: 26592; changing to 27649. This may result in incorrect timestamps in the output file.
[mp4 @ 0x3286060] Non-monotonous DTS in output stream 0:1; previous: 27649, current: 27616; changing to 27650. This may result in incorrect timestamps in the output file.
[mp4 @ 0x3286060] Starting second pass: moving the moov atom to the beginning of the file
frame= 712 fps= 22 q=-1.0 Lsize= 9362kB time=00:00:23.76 bitrate=3227.1kbits/s
video:8968kB audio:373kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.229650%
[libx264 @ 0x3265720] frame I:14 Avg QP:26.74 size: 27026
[libx264 @ 0x3265720] frame P:698 Avg QP:28.50 size: 12613
[libx264 @ 0x3265720] mb I I16..4: 26.3% 0.0% 73.7%
[libx264 @ 0x3265720] mb P I16..4: 2.1% 0.0% 5.0% P16..4: 55.0% 26.4% 7.8% 0.0% 0.0% skip: 3.7%
[libx264 @ 0x3265720] final ratefactor: 23.59
[libx264 @ 0x3265720] coded y,uvDC,uvAC intra: 70.3% 87.8% 31.0% inter: 48.4% 57.5% 2.5%
[libx264 @ 0x3265720] i16 v,h,dc,p: 29% 23% 24% 24%
[libx264 @ 0x3265720] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 18% 19% 6% 7% 7% 6% 6% 5%
[libx264 @ 0x3265720] i8c dc,h,v,p: 49% 26% 18% 7%
[libx264 @ 0x3265720] ref P L0: 88.4% 7.2% 4.4%
[libx264 @ 0x3265720] kb/s:3095.11
> ffprobe -v error -select_streams v:0 -show_entries stream=width,height output.mp4
[STREAM]
width=720
height=480
[/STREAM]
Thanks,
Ben
More information about the ffmpeg-user
mailing list