---
title: Decode Four HD Videos at Once
slug: hardware/decode-four-hd-videos-at-once
docTags: 
createdAt: 2025-03-11T06:58:11.201Z
---

This page outlines how to decode four HD (1920x1080) videos simultaneously. This feature is currently only supported on XC4055, XTx45, XTx44, and XTx43 models and requires BOS 7.0.x or newer.

# Series 5 Players

While both Series 4 and 5 players use hardware to decode video, you don’t have to preallocate resources on Series 5 players. To play four videos, for example, just open four video players.

`GetDecoderMode()` will always return `1` on a Series 5 player, even though the player can play back multiple videos, so it’s not useful for Series 5 players. The player will decode slowly rather than failing if you request too many resources.

# Series 4 Players

## Decoder Setting

To achieve quad-HD decode, you will need to allocate video players to decoders manually using the `SetDecoderMode()` method, which is available on the [roVideoMode](docId\:QQ734nQz0hCwNI0uNSdMP) BrightScript object or [BSVideoMode](docId\:chWN7k3a18M3yEUkIs7qN) JavaScript object. If all the decoders are set to decode HD, there will be enough HD-capable video players available for quad-HD.

## Video Requirements

The video-encoding requirements for video files on all decoders are H.265 or H.264 at 1920x1080 resolution and any frame rate up to 60p.

## XT3/4 Decoder Example (JavaScript)

The following JavaScript example uses the *BSVideoMode.SetDecoderMode()* method to allocate resources for quad-HD decode. This method allows the video decoders to decode multiple HD files, and when the HTML plays, it will use whichever decoder is free.

```javascript
function setDecoders()
{
    var videomode = new BSVideoMode();
    videomode.SetDecoderMode(videomode.decoderModeList[0].decoderName, "HD", 1, "Decoder1", false);
    videomode.SetDecoderMode(videomode.decoderModeList[1].decoderName, "HD", 1, "Decoder2", false);
}
```

The decoder name is allocated automatically and does not need to be specified, so the HTML is simple:

```html
<body>
  
<div class="top-left">
    <video width="1920" height="1080">
        <source src="top-left_quadrant.mp4" type="video/mp4" >
    </video>
</div>
  
<div class="top-right">
    <video width="1920" height="1080">
        <source src="top-right_quadrant.mp4" type="video/mp4" >
    </video>
</div>
  
<div class="bottom-left">
    <video width="1920" height="1080">
        <source src="bottom-left_quadrant.mp4" type="video/mp4" >
    </video>
</div>
  
<div class="bottom-right">
    <video width="1920" height="1080">
        <source src="bottom-right_quadrant.mp4" type="video/mp4" >
    </video>
</div>
  
</body>
```

