<p>Within an editor each frame is complete in itself, but in the output formats you mention, the video is almost always compressed in such a way that only certain frames (called I-frames) are complete and independent. The rest are 'difference' frames that rely on information from surrounding frames. </p>

<p>At a loop point there's often a need for the player to start over, to refill its buffers and prime the engine. You can often help out by ending your segment with a I-frame. But the only sure way to replicate what you see in the editor is to output only I-frames. MJPEG is an example of a codec that always does this, but there are other codecs that can be instructed to. The downside is that the video will be considerably larger. </p>

<p>Try MJPEG and see if it does what you need.</p>

CC BY-SA 3.0
2015-04-21T00:41:48.363Z
Thanks, @jim-mack, and thanks for the thoroughness of your answer. Without knowing what was happening behind the scenes I've been using MJPEG files when playing out with VDMX. It's the only format that performs/functions.

Unfortunately in this case I need to keep the file sizes as small as possible as they'll live out their lives embedded on the web. Need all the bandwidth I can get.

Thanks again.
mechaneyes
CC BY-SA 3.0
2015-04-21T06:27:16.327Z
Another workaround is to have a few of the loops in the video, so that if there is any stuttering it will happen less frequently. Of course, this will increase your file size too. I do this for video that gets used in a large public venue. A lot of times the video is played back using devices like Roku boxes that can stutter on each loop. I edit the loops into as long a video as I can fit on the card, so there'll only be a stutter once every hour or so.
stib
CC BY-SA 3.0
2015-04-21T06:28:42.390Z
It could be fiddly, but another way to workaround the problem would be to remove a few frames from the beginning or end of the loop. This would only work for certain content, but it might may the transition less noticeable.
stib
CC BY-SA 3.0
2015-04-20T18:08:22.013Z
2015-04-20T18:08:22.013Z
Jim Mack
<p>If you are in Linux, install totem.</p>

<pre><code>sudo apt-get install totem
</code></pre>

<p>I found that vlc player pauses, but totem ("videos") loops seamlessly.</p>

CC BY-SA 4.0
2019-12-08T00:04:42.090Z
2019-12-08T00:04:42.090Z
JosephFG
<p>I've got a short video that I'd like to export as an mp4 and use in a seamless loop.</p>

<p>The content of the video is very abstract so it doesn't really matter where the loop occurs/what parts of the clip are butting against each other. In practice with the same file, within editors and elsewhere, edits are always seamless.</p>

<p>While working within both Premiere CS6 and After Effects CS6 the clip loops seamlessly. It's when I export and view the media that the short pause/stutter is visible.</p>

<p>I've tried to output the video in many file formats (H.264, Quicktime, MPEG4, etc.) using various export settings. The resulting file always has a short pause at the beginning of the loop when viewed on OS X Quicktime and VLC, as well as when embedded as HTML5 video (but don't get distracted by the web component.)</p>

<p>An example mp4 file is embedded here: <a href="http://mechaneyes.com/vid/" rel="nofollow">http://mechaneyes.com/vid/</a> . It's slight, but the video is 2 seconds long, so you'll repeatedly see the hiccup. If needed you can right click on the video and save it to view elsewhere.</p>

<p>Thanks in advance for any assist you can give!</p>

<after-effects><premiere>
'Seamless' loop hangs/pauses at beginning of clip
mechaneyes
# 'Seamless' loop hangs/pauses at beginning of clip

(Asked by: username_0 on 2015-04-20)

I've got a short video that I'd like to export as an mp4 and use in a seamless loop.

The content of the video is very abstract so it doesn't really matter where the loop occurs/what parts of the clip are butting against each other. In practice with the same file, within editors and elsewhere, edits are always seamless.

While working within both Premiere CS6 and After Effects CS6 the clip loops seamlessly. It's when I export and view the media that the short pause/stutter is visible.

I've tried to output the video in many file formats (H.264, Quicktime, MPEG4, etc.) using various export settings. The resulting file always has a short pause at the beginning of the loop when viewed on OS X Quicktime and VLC, as well as when embedded as HTML5 video (but don't get distracted by the web component.)

An example mp4 file is embedded here: <http://username_0.com/vid/> . It's slight, but the video is 2 seconds long, so you'll repeatedly see the hiccup. If needed you can right click on the video and save it to view elsewhere.

Thanks in advance for any assist you can give!

**Tags:** after-effects, premiere


---

## 2 answers

### Answer by username_1 on 2015-04-20. Score: 2

Within an editor each frame is complete in itself, but in the output formats you mention, the video is almost always compressed in such a way that only certain frames (called I-frames) are complete and independent. The rest are 'difference' frames that rely on information from surrounding frames.

At a loop point there's often a need for the player to start over, to refill its buffers and prime the engine. You can often help out by ending your segment with a I-frame. But the only sure way to replicate what you see in the editor is to output only I-frames. MJPEG is an example of a codec that always does this, but there are other codecs that can be instructed to. The downside is that the video will be considerably larger.

Try MJPEG and see if it does what you need.

> **Comments:**
> **username_0**: Thanks, @jim-mack, and thanks for the thoroughness of your answer. Without knowing what was happening behind the scenes I've been using MJPEG files when playing out with VDMX. It's the only format that performs/functions.  Unfortunately in this case I need to keep the file sizes as small as possible as they'll live out their lives embedded on the web. Need all the bandwidth I can get.  Thanks again.  
> **username_2**: Another workaround is to have a few of the loops in the video, so that if there is any stuttering it will happen less frequently. Of course, this will increase your file size too. I do this for video that gets used in a large public venue. A lot of times the video is played back using devices like Roku boxes that can stutter on each loop. I edit the loops into as long a video as I can fit on the card, so there'll only be a stutter once every hour or so.  
> **username_2**: It could be fiddly, but another way to workaround the problem would be to remove a few frames from the beginning or end of the loop. This would only work for certain content, but it might may the transition less noticeable.  

---

### Answer by username_3 on 2019-12-08. Score: 0

If you are in Linux, install totem.
sudo apt-get install totem

I found that vlc player pauses, but totem ("videos") loops seamlessly.


---

