New submission from Erwan <[email protected]>:
Using -vf "scale=-1:360", I get this:
[scale @ 0x8c40480] w:720 h:576 fmt:yuv420p -> w:450 h:360 fmt:yuv420p
flags:0xa0000004
I expected that using -1 for the width would keep the 16:9 aspect ratio and that
something like 737:360 would be the new size.
Here is the full output:
ffmpeg -y -i input.flv -ab 128k -ar 44100 -b 800k -vf "scale=-1:360" output.flv
FFmpeg version SVN-r25756-snapshot, Copyright (c) 2000-2010 the FFmpeg
developers
built on Nov 16 2010 04:51:15 with gcc 4.1.2 20070925 (Red Hat 4.1.2-33)
configuration: --prefix=/webtv/bin/tools --enable-nonfree --enable-static
--disable-shared --enable-gpl --enable-pthreads --disable-ffplay
--disable-ffserver --enable-postproc --enable-swscale --enable-libfaac
--enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264
--enable-libspeex
libavutil 50.33. 0 / 50.33. 0
libavcore 0.12. 1 / 0.12. 1
libavcodec 52.96. 0 / 52.96. 0
libavformat 52.84. 0 / 52.84. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.62. 0 / 1.62. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpeg @ 0x8c394c0] max_analyze_duration reached
Input #0, mpeg, from 'input.mpg':
Duration: 00:01:29.56, start: 0.193178, bitrate: 6443 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR
16:9], 8500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 224 kb/s
[buffer @ 0x8c3ff30] w:720 h:576 pixfmt:yuv420p
[scale @ 0x8c40480] w:720 h:576 fmt:yuv420p -> w:450 h:360 fmt:yuv420p
flags:0xa0000004
Output #0, flv, to 'output.flv':
Metadata:
encoder : Lavf52.84.0
Stream #0.0: Video: flv, yuv420p, 450x360 [PAR 64:45 DAR 16:9], q=2-31, 800
kb/s, 1k tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 44100 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
----------
messages: 12553
priority: normal
status: new
substatus: new
title: -vf "scale=-1:360" doesn't seems to maintain aspect ratio
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2360>
________________________________________________