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

Category: Media & Conversion

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

Resize video to a fixed resolution

Scales the video to exactly 1280 by 720 pixels with the scale filter in -vf. Stretching an odd-shaped source distorts it, so pair it with force_original_aspect_ratio to letterbox instead. See the scale=-2 variant to keep the aspect ratio.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.