What is a Video Loop?
A video loop is a clip that starts again from the beginning as soon as it ends, playing continuously. On a web page, the loop attribute of the HTML video element does this.
How Video Loops work
In HTML, <video autoplay loop muted playsinline> gives a clip that starts by itself and repeats. The muted part matters: browsers generally block autoplay for video with sound. playsinline stops iPhones from opening the clip in full screen. A loop looks seamless only when the last frame leads naturally into the first, so loops are often filmed or edited for that.
Key facts
- Browsers generally autoplay video only when it is muted or has no audio track, so background loops should be silent.
- To bake repeats into a file,
ffmpeg -stream_loop 2 -i clip.mp4 -c copy out.mp4plays the clip three times in a row without re-encoding. - Short loops keep pages fast: a few seconds at a modest resolution is often under 1 MB.
When Video Loops matter
Use short, silent loops for hero backgrounds, product spins and animated previews. A looping MP4 or WebM is usually far smaller than the same animation as a GIF, and looks better.