Powered by WebAssembly

Crop Video via API

Crop video to remove unwanted borders, reframe content, or change the aspect ratio. Specify exact pixel coordinates or use auto-detection for black bar removal.

Try it in your browser

Loading FFmpeg engine... (~31 MB)

Use the API

curl -X POST https://renderio.dev/v1/commands \
  -H "X-API-KEY: ffsk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "ffmpeg_command": "-i {in_video} -vf \"crop=1280:720:320:180\" {out_video}",
  "input_files": {
    "in_video": "https://example.com/input.mp4"
  },
  "output_files": {
    "out_video": "output.mp4"
  }
}'

Need an API key? Get your free API key to start processing files programmatically.

Common Variations

Crop to center square
-i input.mp4 -vf "crop=min(iw\,ih):min(iw\,ih)" output.mp4
Remove black bars (auto-detect)
-i input.mp4 -vf "cropdetect" -f null - && -i input.mp4 -vf "crop=1920:800:0:140" output.mp4
Crop to 9:16 portrait
-i input.mp4 -vf "crop=ih*9/16:ih" output.mp4
Crop 10% from all sides
-i input.mp4 -vf "crop=iw*0.8:ih*0.8:iw*0.1:ih*0.1" output.mp4

Related Operations

Need to process at scale?

Automate this with the RenderIO FFmpeg API. Process thousands of files programmatically or through no-code video automation.