FFmpeg command for Resizing and Scaling Video

The width and height of the output video can be set with -s option preceding the output filename. The video resolution is entered in the form wxh, where w is the width in pixels and h is the height in pixels.

For example, to resize the input from initial resolution to 320×240 value, we can use the command

ffmpeg -i input_file -s 320×240 output_file

Leave a Comment