Resize a Video Without Distortion Using ffmpeg scale
Shrink any video to a smaller resolution while keeping its aspect ratio with the ffmpeg scale filter.
01Command
$ ffmpeg -i input.mp4 -vf "scale=1280:-2" -c:a copy output.mp402What it does
Resizing by hand risks a stretched picture, but the scale filter accepts expressions: in scale=1280:-2 the -2 tells ffmpeg to compute the height automatically while keeping the aspect ratio (rounded to even numbers, which most codecs require). -c:a copy streams the audio through untouched so quality and timing are preserved. This is the standard way to turn a 4K clip into a 1080p file or fit a screen recording into a smaller frame.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- FFmpeg Filters DocumentationEvidence: The scale filter accepts width/height expressions; scale=1280:-2 resizes to width 1280 with the height auto-computed preserving aspect ratio.
- Scaling - FFmpeg wikiEvidence: The wiki documents the scale filter with width/height expressions such as scale=1280:-2 to auto-compute height preserving aspect ratio.
Last verified: 2026-09-19 · Category: Media
06Related solutions
Turn any PNG into JPEG, BMP into PNG, and more using .NET's built-in imaging library — scriptable, batchable, zero third-party tools.
A script-driven screenshot: grab the entire virtual desktop (all monitors) and write it to a timestamped PNG — useful for monitoring, unattended tasks, and scheduled captures.