VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Video design

Check the join between the last and first frames of a video loop

The repeat function restarts the film. Whether the transition appears smooth also depends on the material. Two separate motion clips separate the player control from the transition design.

Two distinct motion models: The linear circular motion jumps back by 235.2 source pixels at the seam. The cyclic motion has a step of approximately 6.91 source pixels at the seam, as well as between other adjacent positions.
Source coordinates for your own synthetic clips; no guarantee of uninterrupted playback on every device.Image: Vioneto · original illustration

A short clip repeats, but each time the video restarts, the scene visibly jumps back. The repeat function may be working as intended—it restarts the file, but it does not create a smooth transition from the end to the beginning.

Therefore, two separate tasks must be addressed for a video loop: the content itself must have a deliberate seam, and the target player must support the desired repetition and a usable pause point. Start with a short test before finalizing a longer animation or recording.

What the repeat switch actually does

For an HTML media element, MDN describes the loop property as a control that indicates whether the media restarts after it ends. This property offers no information about whether the last and first frames visually align or whether playback occurs smoothly without visible pauses on every device.

MDN: Repeating an HTML media element

Our own local test starts both videos with a deliberate click. Automatic playback is not necessary for checking a loop seam. Additionally, do not blindly transfer settings from a simple HTML example to an embedded provider player: there, you need the actual controls and options provided.

Two independent motion clips for comparison

We created two silent clips, each consisting of 50 original images at a rate of 25 images per second. Both clips last two seconds and show a circle on a dark background. The image resolution is 320 by 180 pixels. All images in both encoded files were fully decoded, and the number of images along with their timestamps were extracted.

In the linear model, the circle center moves 4.8 source pixels to the right per frame. It starts at x = 40 and ends at x = 275.2 in the last frame. Upon repetition, it jumps back 235.2 source pixels to its initial position. The player can correctly repeat the file, but this content jump is clearly visible.

In the cyclic model, the center moves along a circular path with a radius of 55 source pixels. The 50 positions evenly divide one full cycle. The distance between the last and first position is approximately 6.91 source pixels, the same as between any other adjacent positions. The first and last frames are not identical; they represent consecutive steps in the continuous motion.

This is a calculation based on actually used source coordinates, not a measurement of perceived smoothness. A short geometric distance alone does not guarantee a smooth video: motion direction, speed, changing light, background, and audio can still be noticeable at a join. Our clips contain no audio and do not check these additional factors.

Treat the seam as its own interface

  1. Compare the last visible frame directly with the first: position, orientation, image composition, and background.
  2. Think beyond the transition. Should it continue, reverse, or be deliberately restarted?
  3. For a filmed scene, record the beginning and end with sufficient buffer space, and cut a short test run.
  4. If audio is present, separately check the boundary. A suitable image sequence does not prove a suitable audio track.
  5. Play the delivered file multiple times in the actual target player and test the transition from the last frame to the first frame.

For a technical demonstration, a deliberate restart can be appropriate. If an object returns to its initial position after the action ends, the repetition should remain understandable. A seemingly invisible seam should not be an afterthought. A fade-in or a pause can serve as a consciously designed new beginning more effectively than a forced continuous loop.

Verify actual repetition and stopping

In standard local Chrome, both clips ran for five observed rebounds after manual start, then both paused when the stop button was pressed. This confirms the repetition and interruption observed in this specific test. This is not a test of the Vioneto loop feature, of any browser, or of slower devices.

The duration of a single clip can be misleading: a two-second file may run longer than two seconds when repeated. The W3C explanation for Pause, Stop, and Hide covers automatically initiated motion that lasts longer than five seconds and appears in parallel with other content; under these conditions, pause, stop, or hide options are available. A short file on its own does not address this issue.

W3C: Explanation of Pause, Stop, Hide

Therefore, a feasible break is worth taking even if the initial start is intentional. Check this functionality along the intended user path, including keyboard input. A loop is only practical when both the intended join point and the end of the repetition are clearly understandable.

Check video player using keyboard

Evaluate the separate automatic start

Topics

Sources and further reading

  1. https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop
  2. https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html