FFmpeg recipe
FFmpeg: Loop a Video 3× (or any number)
For exact-N loops with one input, -stream_loop is faster and simpler than concat. Use 2 to play 3 times total (initial + 2 loops).
Command
ffmpeg -stream_loop 2 -i input.mp4 -c copy -y output_looped.mp4Prefer no terminal?
Use the Video Looper in your browser
What each flag does
| -i | Input file. Can be a video, audio, or image. Repeat for multiple inputs. |
|---|---|
| -c copy | Stream-copy: no re-encoding. Output is bit-identical between cut points. Fastest possible. |
| -y | Overwrite output file without confirmation. |
| -stream_loop 2 | Loop the input 2 additional times → input plays 3 times total. |
Notes & gotchas
- For perfect seamless loops, the first frame should match the last. Trim with the Video Trimmer first.
- For boomerang motion, append a reversed copy via concat instead.
Related recipes
Resize to 1080p · Any video
Resize any video to 1080p (1920×1080) with FFmpeg scale filter. Preserves aspect ratio with -1 trick.
Crop to 9:16 · Any video
Crop a 16:9 video to 9:16 vertical with FFmpeg crop filter. Centered crop for TikTok, Reels, Shorts.
Change frame rate · Any video
Change the frame rate of any video with FFmpeg fps filter. Simple drop / duplicate for safe FPS conversion.
Speed up 2x · Any video
Speed up a video 2× (or any factor) with FFmpeg. Uses setpts for video and atempo for audio without pitch shift.