Powered by WebAssembly

Overlay Video via API

Composite one video on top of another for picture-in-picture effects, reaction videos, or multi-camera layouts. Control position, size, and timing of the overlay.

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} -i {in_video} -filter_complex \"[1:v]scale=320:-1[ov];[0:v][ov]overlay=W-w-10:10\" {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

Center overlay
-i input.mp4 -i overlay.mp4 -filter_complex "overlay=(W-w)/2:(H-h)/2" output.mp4
Timed overlay (5s to 15s)
-i input.mp4 -i overlay.mp4 -filter_complex "overlay=10:10:enable='between(t,5,15)'" output.mp4
Side-by-side layout
-i input1.mp4 -i input2.mp4 -filter_complex "[0:v]scale=960:540[l];[1:v]scale=960:540[r];[l][r]hstack" 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.