image-processingffmpeg

Use FFmpeg to resize image


Is it possible to resize an image using FFmpeg?

I have this so far:

ffmpeg. -i 1.jpg -vf scale=360:240 > 2.jpg

I get the error message:

At least one output file must be specified

Is it possible?


Solution

  • You can try this:

    ffmpeg -i input.jpg -vf scale=320:240 output_320x240.png
    

    I got this from source

    Note: The scale filter can also automatically calculate a dimension while preserving the aspect ratio: scale=320:-1, or scale=-1:240