Cropper
Visual tool for creating FFmpeg crop filters
Visual FFmpeg Crop Filter Generator
An interactive tool for visually creating FFmpeg crop filters. Load an image, drag to adjust the crop region, and get the exact crop filter parameters you need.
Note: The cropper opens in a new tab and uses a full-screen interface optimized for desktop use. It works best on larger screens.
Features
- Visual Interface: See exactly what you're cropping
- Drag to Adjust: Click and drag the crop region to reposition
- Precise Controls: Set exact dimensions and offsets with pixel-level accuracy
- Step Alignment: Align crop dimensions to common values (2, 4, 8, 16, 32, 64 pixels) for codec compatibility
- Customizable Mask: Adjust mask color and opacity to suit your needs
- One-Click Copy: Copy the generated filter to your clipboard instantly
How to Use
- Launch the Cropper using the button at the top of the page
- Load an Image: Drag and drop a frame from your video (or any image)
- Adjust the Crop Region:
- Use the width/height inputs to set dimensions
- Use the X/Y inputs to set position
- Or click and drag the crop rectangle directly
- Set Step Size: Choose alignment (useful for codec requirements)
- Copy the Filter: Click "Copy to Clipboard" to get your
cropfilter
About the Crop Filter
The FFmpeg crop filter removes unwanted portions of video. The basic syntax is:
crop=w=WIDTH:h=HEIGHT:x=X_OFFSET:y=Y_OFFSET
Where:
w= width of the output (cropped) videoh= height of the output (cropped) videox= horizontal offset from the left edgey= vertical offset from the top edge
Example Usage
ffmpeg -i input.mp4 -vf "crop=w=1920:h=800:x=0:y=140" output.mp4
This crops the video to 1920×800, removing 140 pixels from the top.
Why Step Alignment Matters
Many video codecs work more efficiently when dimensions are divisible by certain values (typically 2, 8, or 16). Using the step alignment feature ensures your crop dimensions meet these requirements, which can:
- Improve encoding efficiency
- Prevent compatibility issues with some players
- Avoid codec warnings or errors
Tips
- Get a Frame First: Use FFmpeg to extract a frame from your video to load into the cropper:
ffmpeg -i input.mp4 -ss 00:01:00 -frames:v 1 frame.png - Check Aspect Ratio: Make sure your crop maintains the aspect ratio you want
- Test Your Filter: Always test the generated filter on a short clip before processing your full video
- Mind the Borders: Ensure the crop region doesn't include black bars or unwanted edges