FFmpeg Aspect Ratio vs Scale Filter

This article explains the fundamental differences between using the -aspect option and the scale filter in FFmpeg. While both tools are used to control the visual proportions of a video, they operate on entirely different levels. Understanding when to use metadata manipulation versus physical pixel resizing will help you choose the right method for your video processing workflow.

The -aspect Option: Metadata Manipulation

The -aspect option changes the Display Aspect Ratio (DAR) of a video by modifying the metadata in the container or video stream header. It does not alter the actual pixels of the video frames.

Example Command:

ffmpeg -i input.mp4 -aspect 16:9 -c copy output.mp4

The scale Filter: Pixel Manipulation

The scale filter physically alters the video resolution by changing the actual width and height of the video frames (the Storage Aspect Ratio or SAR).

Example Command:

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

Summary of Key Differences

Feature -aspect Option scale Filter
Primary Action Changes playback metadata (DAR) Changes physical resolution (SAR)
Re-encoding Not required (can use -c copy) Required
Processing Speed Extremely fast (instantaneous) Slower (dependent on CPU/GPU)
Quality Loss None (lossless if stream copied) Potential loss (depends on encoder)
Compatibility May be ignored by some players Universally compatible

When to Use Which

Use -aspect when you have an anamorphic video (like a DVD rip) that is playing back with the wrong proportions and you want a quick, lossless fix without waiting for a full re-encode.

Use the scale filter when you need to resize a video for a specific device, reduce the file size, or prepare a video for upload to web platforms (like YouTube or social media) that rely strictly on physical pixel dimensions.