---
title: Seamlessly Loop Videos
slug: legacy-docs/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.

## BrightAuthor Classic

You can use either a simple BrightAuthor Classic interactive playlist or a script to loop a single video.

### BrightAuthor Classic Project

If the BrightAuthor Classic project has a single video, with no Media End event connecting it to another state or to itself, it will loop seamlessly.

:::hint{type="info"}
In BrightAuthor versions 4.1.0.x and later, you will need to specify the **Loop media** option in the **Media Properties** of the video state.
:::

::Image[]{src="https://support.brightsign.biz/attachments/token/jsvzc7ukmcnk00q/?name=seamlessloop1.JPG" size="50" width="280" height="277" position="center" alt="seamlessloop1.JPG" darkWidth="280" darkHeight="277" showCaption="false"}

## 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
```
:::

