Powered by WebAssembly

Loop Video via API

Create looping video by repeating the input a specified number of times. Ideal for digital signage, background videos, social media loops, and animated displays.

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": "-stream_loop 3 -i {in_video} -c copy {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

Infinite loop (for GIF-like output)
-stream_loop -1 -i input.mp4 -t 60 -c copy output.mp4
Loop 5 times
-stream_loop 5 -i input.mp4 -c copy output.mp4
Loop with re-encode for smooth join
-stream_loop 3 -i input.mp4 -c:v libx264 -crf 23 -c:a aac 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.