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.mp4

When to use it

  • social clips
  • square exports
  • thumbnail videos

How it works

  1. Upload the video.
  2. Adjust crop and scale dimensions for your target.
  3. Run FFmpeg and download the cropped and scaled MP4.

Option reference

OptionWhat it does
crop=1080:1080:0:0Selects a square crop region.
scale=720:720Resizes the crop to 720px square.
-crf 23Sets 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.