---
title: Seamlessly Loop Videos
slug: author/seamlessly-loop-videos
docTags: 
createdAt: 2025-03-11T06:58:09.588Z
---

Seamless looping essentially puts the video file into a circular buffer and you can seamlessly loop only a single video at a time in a zone, not multiple back-to-back videos.

All tracks in the file, even non-video/audio tracks, must be exactly the same length *down to the sample,* not just the metadata length value, or there will be a gap at the loop point.
*numberOfSamples* x *sampleDuration* must be the same for all tracks.  Any difference between tracks in the file will cause the loop to not be seamless.

# Media Encoding

Files should be encoded with Fast Start (Web-Optimized/Progressive Download) enabled so the MOOV header is at the front/top of the file.

## Seamless Video-Only Looping (No Audio)

- **XCx55, XTx45, XDx35, HDx25, LS445, XTx44/43, XDx34/33, HDx24, LS424, 4Kx42**: Supports seamless looping of H.265 or H.264 *.mp4* or *.mov* files.
- **LS425, XDx32/30, HDx23/22/20, LS423/22**: Supports seamless looping of H.264 *.mp4* or *.mov* files. These models *do not* support seamless looping of transport streams.
- **HDx10**: Can seamlessly loop an H.264 transport stream (which *does not* use an *.mp4* or *.mov* container). 

## Seamless Audio and Video Looping

- **XCx55, XTx45, XDx35, HDx25, LS445, XTx44/43, XDx34/XDx33, HDx24, LS424, 4Kx42**: Supports seamless audio/video looping of *.mov* files with H.265 or H.264 encoded video and PCM SOWT encoded audio.
- **LS425, XDx32/30, HDx23/22/20, LS423/22**: Supports seamless audio/video looping of *.mov* files with H.264 encoded video and PCM SOWT encoded audio.
- **HDx10**: Does not support seamless audio/video looping.

## Seamless Video Wall Looping

We recommend using BrightWall to create a seamless-looping video wall. 

- **XCx55, XTx45, XDx35, HDx25, LS445, XTx44/43, XDx34/33, HDx24, LS424, 4Kx42:** Supports seamless video looping of *.mp4* or *.mov* files with H.265 or H.264 encoded video. If audio is included, the audio/video should be formatted as an *.mov* file and the audio should be encoded as SOWT PCM for seamless audio.
- **LS425, XDx32/30, HDx23/22/20, LS423/22**: Supports seamless video looping of *.mp4* or *.mov* files with H.264 encoded video. If audio is included, the audio/video should be formatted as an *.mov* file and the audio should be encoded as SOWT PCM for seamless audio.

## BrightSign Author

See the [Media End Event](docId\:EjCqURFtsgp5Qw--rwrAy) documentation for information about specify behavior when a video or audio file reaches the end of playback.

## Custom Script

Copy the following script to a text file and rename it *autorun.brs*. Change the filename of *video.ts* in the script to match the video you wish to loop.

:::CodeblockTabs
BrightScript

```text
v=CreateObject("roVideoPlayer")
v.SetLoopMode(true)
v.PlayFile("video.ts")
while true
  sleep(10000)
end while
```
:::

