Crop Video to 1:1 Square Center Using FFmpeg

This article provides a quick and direct guide on how to crop any landscape or portrait video into a perfect 1:1 square aspect ratio from the center using FFmpeg. You will learn the exact command-line syntax to automate this process regardless of your original video’s orientation.

The Universal Command

To crop any video into a center-aligned square without needing to know the input dimensions beforehand, use the following FFmpeg command:

ffmpeg -i input.mp4 -vf "crop='min(iw,ih):min(iw,ih)'" -c:a copy output.mp4

How It Works

The core of this operation is the -vf (video filter) flag using the crop filter:

Specific Examples

If you already know your video’s orientation and prefer a simplified command, you can use these targeted options: