FFmpeg Cookbook

Loop & Boomerang Video Maker

Repeat a clip several times, or make a boomerang that plays forward then reverses — perfect for short social loops.

Local processing only — your file never leaves the browser
🔁
Drag & drop a video, or tap to select
MP4 / MOV / WebM and more, up to 100 MB
🎬
Loop repeats the whole clip (output capped at 60 seconds). Boomerang plays it forward then backward, muted, and needs a short input (≤10 seconds) because reversing buffers every frame in memory.
Processing… 0%

What this tool does

  • Loop mode: repeat the whole clip 2×, 3×, or 5× (output capped at 60 seconds)
  • Boomerang mode: forward then reverse, muted, for that signature social loop
  • Keep or mute the audio in loop mode
  • H.264 MP4 output that plays everywhere
  • Runs locally with ffmpeg.wasm — your file never leaves your device

How to use

  1. 1

    Drop a video

    Use a short clip — boomerangs need 10 seconds or less.

  2. 2

    Choose a mode

    Loop repeats the clip; Boomerang plays it forward then backward.

  3. 3

    Set options

    For Loop, pick the repeat count and whether to keep audio.

  4. 4

    Make it and download

    Preview the result, then download the MP4.

What each setting means

Mode
Loop = repeat the clip end to end. Boomerang = forward then reversed.
Repeat (loop only)
How many total plays: 2×, 3×, or 5×. Output is capped at 60 seconds.
Audio (loop only)
Keep the looped audio or mute it. Boomerang is always muted.

Common pitfalls

Symptom: Boomerang fails or runs out of memory

Cause: Reversing buffers every frame in memory, which is heavy in a browser tab.

Fix: Use a clip of 10 seconds or less; trim it first if needed.

Symptom: The loop is shorter than expected

Cause: Loop output is capped at 60 seconds to stay browser-friendly.

Fix: Use a shorter source or fewer repeats if you need the full count within 60 seconds.

Symptom: Boomerang audio is missing

Cause: Boomerang is intentionally muted — reversed audio sounds unnatural.

Fix: Add a music track afterward (e.g. with the Add BGM tool) if you want sound.

Equivalent FFmpeg commands

Reference commands you can run on the desktop FFmpeg CLI.

Loop a clip 3× (capped at 60s)
ffmpeg -stream_loop 2 -i in.mp4 -t 60 -map 0:v:0? -map 0:a:0? -c:v libx264 -preset veryfast -crf 23 -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart out.mp4
Boomerang (forward + reverse, muted)
ffmpeg -i in.mp4 -filter_complex "[0:v]fps=30,scale=1280:720:force_original_aspect_ratio=decrease,setpts=PTS-STARTPTS,split[f][b];[b]reverse,setpts=PTS-STARTPTS[r];[f][r]concat=n=2:v=1:a=0,format=yuv420p[v]" -map "[v]" -an -c:v libx264 -preset veryfast -crf 24 -movflags +faststart out.mp4

Browser support & limits

  • Loop output is capped at 60 seconds; boomerang input is capped at 10 seconds (reverse is memory-heavy).
  • Boomerang is always muted.

Privacy

This tool runs ffmpeg.wasm directly in your browser. Files never leave your device — everything runs locally. Read the privacy policy →

Frequently asked questions

What is the difference between loop and boomerang?

Loop plays the whole clip again from the start, N times. Boomerang plays it forward then immediately backward, creating a back-and-forth motion.

Why is the boomerang muted?

Reversed audio sounds unnatural, so boomerang output is muted by design. Add music separately if you want sound.

Why must boomerang clips be short?

Reversing a video buffers every frame in memory. In a browser that is limited, so boomerang is capped at a 10-second input.

Are my videos uploaded?

No. Everything runs in your browser via ffmpeg.wasm; the file never leaves your device.

Related tools