Browser FFmpeg recipe
Loop Video Online with FFmpeg
Repeat the input video three total times using stream copy.
Command
Run this FFmpeg command
ffmpeg -stream_loop 2 -i input.mp4 -c copy looped.mp4When to use it
- short loops
- background clips
- repeated demos
How it works
- Upload the source clip.
- Change the stream loop count if needed.
- Run FFmpeg and download the looped video.
Option reference
| Option | What it does |
|---|---|
-stream_loop 2 | Repeats the input two extra times. |
-c copy | Copies streams without re-encoding. |
looped.mp4 | Writes the repeated clip output. |
Practical notes
- The loop count is extra repeats, so 2 means three total plays.
- If copy mode fails, re-encode with H.264 and AAC.
FAQ
How do I loop forever?
For file output, choose a finite count. Infinite loops are for playback, not saved files.
Can I make a GIF loop?
Yes. Use the MP4 to GIF recipe after creating or trimming a short loop.