Browser FFmpeg recipe
Crop and Scale Video Online with FFmpeg
Crop a square region and resize it to 720 by 720.
Command
Run this FFmpeg command
ffmpeg -i input.mp4 -vf crop=1080:1080:0:0,scale=720:720 -c:v libx264 -crf 23 -c:a copy cropped-scaled.mp4When to use it
- social clips
- square exports
- thumbnail videos
How it works
- Upload the video.
- Adjust crop and scale dimensions for your target.
- Run FFmpeg and download the cropped and scaled MP4.
Option reference
| Option | What it does |
|---|---|
crop=1080:1080:0:0 | Selects a square crop region. |
scale=720:720 | Resizes the crop to 720px square. |
-crf 23 | Sets H.264 quality. |
Practical notes
- Crop runs before scale in this filter chain.
- Use crop video or resize video alone for simpler tasks.
FAQ
Can I make vertical video?
Yes. Use a vertical crop and scale, such as crop=720:1280:x:y,scale=720:1280.
Why combine crop and scale?
It saves a step when you need a specific framed output size.