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.mp4
Prefer no terminal?
Use the Video Looper in your browser
Open Video Looper

What each flag does

-iInput file. Can be a video, audio, or image. Repeat for multiple inputs.
-c copyStream-copy: no re-encoding. Output is bit-identical between cut points. Fastest possible.
-yOverwrite output file without confirmation.
-stream_loop 2Loop 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