FFmpeg · Video

Resize a video

Scale to 1280 pixels wide and keep the aspect ratio. -2 keeps the height divisible by two.

ffmpeg -i input.mp4 -vf scale=1280:-2 output.mp4

Official FFmpeg documentation

More video commands

All video commands · FFmpeg cheatsheet

Was this page helpful?