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

vedran valajbeg at gmail.com
Wed Jul 29 17:39:51 CEST 2015


sorry not that one, this one

ffmpeg -i video.mov -filter_complex
"scale=iw*min(1\,min(640/iw\,360/ih)):-1"  -vb 600k -ac 2 -ab 96k -ar 44100
-f mp4 out.mp4

On Wed, Jul 29, 2015 at 5:33 PM, Moritz Barsnick <barsnick at gmx.net> wrote:

> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list