Edit tool

Crop Video with FFmpeg

Build FFmpeg crop filter commands for dimensions, offsets, and common aspect ratios.

FFmpeg.Run generates commands only. Your media files stay on your computer and are never uploaded.

Command options

Generated command

Common uses

  • Crop to 16:9
  • Remove borders
  • Center crop a video

Related articles

  • How to Crop a Video Using FFmpeg

    Crop videos with FFmpeg using exact dimensions, center crops, 16:9 crops, and square crops. Includes commands, crop syntax, and common troubleshooting tips.

Related command recipes

Command notes

The crop filter uses `crop=width:height:x:y`.

Use centered expressions like `(in_w-out_w)/2` when you want an automatic center crop.

Cropping changes the video frame, so FFmpeg must re-encode the video stream.

FAQ

Can cropping avoid re-encoding?

No. Cropping is a video filter, and filtered video must be re-encoded.

How do I crop from the center?

Use x and y expressions based on input and output dimensions, such as `(in_w-1280)/2` and `(in_h-720)/2`.

How do I remove black borders?

Set crop dimensions and offsets so only the visible content remains. The cropdetect filter can help find values in a later workflow.