[FFmpeg-user] WMV to H264 resulting in size change

Claudiu Rad jazzman at misalpina.net
Thu Apr 9 18:01:38 CEST 2015



On 4/9/2015 6:29 PM, Benjamin Black wrote:
> 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?
[...]
>    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
>

Not an expert but you have SAR 8:9 DAR 4:3 and this may be the cause. I 
think SAR is actually the one.
If you want to force the real resolution, you could use setsar/setdar 
filters: https://ffmpeg.org/ffmpeg-filters.html#setdar_002c-setsar

E.g.: -vf 'setsar=1'

Experiment with that.

-- 
Claudiu



More information about the ffmpeg-user mailing list