[FFmpeg-user] Scale down if resolution is greater than given?

Moritz Barsnick barsnick at gmx.net
Wed Jul 29 17:33:36 CEST 2015


On Wed, Jul 29, 2015 at 17:27:47 +0200, vedran wrote:
> Anyway, thank you all guys. I did it like this, although i don't understand
> well what this does
> 
> ffmpeg -i myvideo001.3gp -vf scale=1024:-1 -vb 600k -ac 2 -ab 96k -ar 44100
> -f mp4 myvideo001out.mp4

Oh my, what's there not to understand? ;-)

It scales your input video to a width of 1024 (regardless of whether
the input is narrower or wider), while maintaining the aspect ratio.

Moritz


More information about the ffmpeg-user mailing list