## Configure video decoding

Before you start, ensure:

- inputs are configured.
- at least one **Receiver** service is configured.

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

3. Select a service from the **Service** drop-down list to decode. The first video and audio as listed in the service PMT are automatically decoded.

4. Check **Service Status**.

   The first video and audio as listed in the service PMT are automatically decoded. The service name and associated PCR PID are displayed in the Service status window.

5. Check the **Video Status**. The video PID, component bit rate, codec being used, resolution, picture aspect ratio and frame rate are displayed in the **Video Status** window.

6. Check the **Input Monitor**. A thumbnail of the decoded video is displayed in the **Input Monitor** window. The thumbnail is updated every 5 seconds.

7. Check the **Audio Status**. The audio PID, status and codec are displayed in the **Audio Status** window.

   ![Audio Status showing each audio PID, status and codec](/images/legacy-receiver/view-status-service-audio-cp.webp)

<blockquote data-callout="note"><strong>Note</strong><p>Hover your cursor over the audio status to display the channel mode, language and component bit rate.</p></blockquote>

## Audio decoding

### Audio formats and decoding standards

<table>
  <thead>
    <tr>
      <th style="text-align: left">Codec</th>
      <th style="text-align: left">Sample Rate</th>
      <th style="text-align: left">Bit Depth</th>
      <th style="text-align: left">Output format</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">MPEG1-LII</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">n/a</td>
      <td style="text-align: left">Decode</td>
    </tr>
    <tr>
      <td style="text-align: left">Dolby Digital</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">n/a</td>
      <td style="text-align: left">Decode</td>
    </tr>
    <tr>
      <td style="text-align: left">Dolby Digital +</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">n/a</td>
      <td style="text-align: left">Decode</td>
    </tr>
    <tr>
      <td style="text-align: left">MPEG-H</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">24</td>
      <td style="text-align: left">Contribution Decode</td>
    </tr>
    <tr>
      <td style="text-align: left">MPEG-H</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">16</td>
      <td style="text-align: left">Pass-through</td>
    </tr>
    <tr>
      <td style="text-align: left">LPCM</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">16/20/24</td>
      <td style="text-align: left">Pass-through</td>
    </tr>
    <tr>
      <td style="text-align: left">Dolby-E</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">16/20/24</td>
      <td style="text-align: left">Pass-through</td>
    </tr>
    <tr>
      <td style="text-align: left">Dolby Digital</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">16</td>
      <td style="text-align: left">Pass-through</td>
    </tr>
    <tr>
      <td style="text-align: left">Dolby Digital+</td>
      <td style="text-align: left">48kHz</td>
      <td style="text-align: left">16</td>
      <td style="text-align: left">Pass-through</td>
    </tr>
  </tbody>
</table>

### Configure audio decoding

Before you start, ensure:

- At least one **Receiver** service is configured.
- [Video decoding](/traditional-products-and-appliances/components/receiver/decoding#configure-video-decoding) is configured.

<blockquote data-callout="caution"><strong>Caution</strong><ul>&#10;<li><strong>A maximum of 8 audio components (stereo pairs)</strong> can be decoded simultaneously for each <strong>Receiver</strong> service.</li>&#10;<li>Decoding MPEG-H audio requires using all 8 audio output components.</li>&#10;</ul></blockquote>

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

3. Select **Audio** to display audio decode settings. The first decoded audio is automatically given the reference name **Audio 1**. This reference is used when configuring the audio outputs.

4. Select an audio **Input** from the drop-down menu. The PID and language of the audio being decoded are shown in the **Input** column once the configuration is saved.

5. Enter a PID value to be decoded.

   - You can choose to manually enter a PID.
   - If the selected PID is present in the PMT then the receiver attempts to decode any available audio on the PID.

6. [Add an audio](/traditional-products-and-appliances/components/receiver/decoding#configure-audio-decoding) to decode.

7. Select a **Decode channel configuration** for each audio from the following options:

<table>
  <thead>
    <tr>
      <th style="text-align: left">Option</th>
      <th style="text-align: left"></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">Stereo</td>
      <td style="text-align: left">Decode stereo, dual mono, mono, joint stereo. Decode any audio using up to 2 channels.</td>
    </tr>
    <tr>
      <td style="text-align: left">5.1</td>
      <td style="text-align: left">Decode 5.1 channels.</td>
    </tr>
    <tr>
      <td style="text-align: left">16</td>
      <td style="text-align: left">Use this for MPEG-H (see note below)</td>
    </tr>
    <tr>
      <td style="text-align: left">Pass-Through</td>
      <td style="text-align: left">No decode. Use this option for compressed audio output.</td>
    </tr>
  </tbody>
</table>

```
-   If the audio being decoded is an **MPEG-H audio component then the decode channel configuration must be set to 16**. Otherwise all audio channels associated with the audio component are output as silence.
-   Setting the decode channel configuration also sets the number of embedded channels required for the SDI output. You can see the incoming audio stereo or 5.1 layout from the **Audio Status** window.
```

<blockquote data-callout="caution"><strong>Caution</strong><ul>&#10;<li>1 embedded channel for a Stereo pair.</li>&#10;<li>3 embedded channels for a 5.1 service.</li>&#10;<li>If the audio being decoded is a <strong>5.1 service</strong> and <strong>Stereo</strong> is selected, then the audio will be down mixed to a Stereo pair.</li>&#10;</ul></blockquote>

#### Audio auto select decoding

Auto decode applies to audio components for a selected service. The audio components are automatically decoded and embedded into the output SDI that are configured as stereo channels. Components are decoded and embedded in the output in the order that they appear in the PMT.

<blockquote data-callout="note"><strong>Note</strong><p>** Audio auto select can be <strong>applied for a maximum of 16 audio components per service</strong>.</p></blockquote>

Components are decoded and embedded in the output in the order that they appear in the PMT.

<blockquote data-callout="note"><strong>Note</strong><p>Audio auto select should not be configured when using SMPTE ST-2110 outputs, this may produce either too many or too few audio channels in the ST-2110 audio stream output.</p></blockquote>

##### New audio components

- New audio components appearing in the incoming service are decoded and embedded in the output in the order that they appear in the PMT.
- If a new component is presented in the PMT before any existing components then all existing components after the new component in the PMT are embedded into a different audio channel on the SDI output.
- If the number of channels exceeds 16, then the last existing component in the PMT is no longer be decoded and removed from the output SDI.

##### Removed audio components

- Any audio component that is removed from the incoming service will be deleted from the SDI output.
- Any audio components presented after a removed component in the PMT are embedded into a different audio channel on the SDI output.

##### Set "Auto Select" mode for audio decoding

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. Select the **Decoding** tab in the **Parameters** window.

3. Select the **Audio** tab.

4. Select the **Auto select** check box. All the audio components present on the incoming service are automatically decoded and output as stereo components.

#### Add an audio to decode (optional)

Before you start, ensure:

- At least one **Receiver** service is configured.
- [Video decoding](/traditional-products-and-appliances/components/receiver/decoding#configure-video-decoding) is configured.

<blockquote data-callout="note"><strong>Note</strong><p><strong>A maximum number of 8 audio components (stereo pairs)</strong> can be decoded simultaneously for a single receiver service. Across multiple receiver services a maximum of 20 total audio services are allowed.</p></blockquote>

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

3. Select **Audio** to display audio decoding parameters. The first decoded audio is automatically given the reference name **Audio 1**. This reference is used when configuring the audio components.

<blockquote data-callout="note"><strong>Note</strong><p>See <a href="/traditional-products-and-appliances/components/receiver/parameters#decoding-parameters-and-statuses">Decoding parameters</a> descriptions for additional information.</p></blockquote>

4. Select an **Input**. The PID and language of the audio being decoded are shown in the **Input** column.

5. Select a **Decode channel configuration**.

#### Decode all input audio (optional)

Before you start, ensure:

- At least one **Receiver** service is configured.
- At least one audio component is configured.

<blockquote data-callout="note"><strong>Note</strong><p><strong>A maximum number of 8 audio components (stereo pairs)</strong> can be decoded simultaneously for each decoded video service. Across multiple receiver services a maximum of 20 total audio services are allowed.</p></blockquote>

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

3. Select **Audio** to display audio decoding parameters.

4. Click **Decode all input audio**. The audio components that are not currently being decoded are added in the order that they are listed in the PMT (**up to a maximum of 16 decodes per service**). The defaults channel configuration is **Stereo**.

   See [Decoding parameters](/traditional-products-and-appliances/components/receiver/parameters#decoding-parameters-and-statuses) descriptions for additional information.

#### Delete an audio from a decode configuration (optional)

Before you start, ensure:

- At least one **Receiver** service is configured.
- [Video decoding](/traditional-products-and-appliances/components/receiver/decoding#configure-video-decoding) is configured.

<blockquote data-callout="note"><strong>Note</strong><p><strong>A maximum number of 8 audio components (stereo pairs)</strong> can be decoded simultaneously for each decoded video service. Across multiple receiver services a maximum of 20 total audio services are allowed.</p></blockquote>

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

3. Select the **Audio** tab to display audio decoding parameters.

4. Click `Delete` icon to delete an audio component or click **Remove all decoded audio**. The audio decode is now removed from both the list of decoded components and from any output configurations.

### Phase-aligned audio

<blockquote data-callout="note"><strong>Note</strong><p>Currently the receiver does not support GUI selection of phase-aligned audio components from the input multi audios. Therefore, standard phased aligned audio language codes must be pre-configured for each audio group input (see note below for language codes).</p></blockquote>

To set up phase-aligned audio, follow these steps:

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

3. After selecting the decode service, select **Add audio decode** to add each audio component of the PAA group.

   The ordering of decoding is not important but assists in getting the embedding order correct.

   For the first group, the ordering is by language descriptor:

   - aaa - Original channels 1-2
   - aac - Original channels 3-4
   - aae - Original channels 5-6
   - aag - Original channels 7-8 (if present)

   For a second PAA group, the language descriptors are:

   - bba - Original channels 1-2
   - bbc - Original channels 3-4
   - bbe - Original channels 5-6
   - bbg - Original channels 7-8 (if present)

4. Select the **Output** tab.

5. Under the **Audio** tab, click **Add component** to add the audio components.

<blockquote data-callout="note"><strong>Note</strong><ul>&#10;<li>The components are numbered as per the ordering of the decode.</li>&#10;<li>The order of the items in the list is unimportant, the assignment of Component to Embedding determines the output ordering. i.e., if <strong>Audio 1</strong> on the <strong>Decoding</strong> tab was assigned language <strong>aaa</strong>, then that is <strong>Audio 1</strong> on the <strong>Output-&gt;Audio</strong> tab.</li>&#10;<li>Here the channel mapping should match the assigned decoders, for each language, to recreate the original channel ordering.</li>&#10;</ul></blockquote>

<table>
  <thead>
    <tr>
      <th style="text-align: left">Decoding name</th>
      <th style="text-align: left">Decoding input</th>
      <th style="text-align: left">Output component</th>
      <th style="text-align: left">Output embedding</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">Audio 1</td>
      <td style="text-align: left">Aaa</td>
      <td style="text-align: left">Audio 1</td>
      <td style="text-align: left">Embedded 1</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 2</td>
      <td style="text-align: left">Aac</td>
      <td style="text-align: left">Audio 2</td>
      <td style="text-align: left">Embedded 2</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 3</td>
      <td style="text-align: left">Aae</td>
      <td style="text-align: left">Audio 3</td>
      <td style="text-align: left">Embedded 3</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 4</td>
      <td style="text-align: left">Aag</td>
      <td style="text-align: left">Audio 4</td>
      <td style="text-align: left">Embedded 4</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 5</td>
      <td style="text-align: left">bba</td>
      <td style="text-align: left">Audio 5</td>
      <td style="text-align: left">Embedded 5</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 6</td>
      <td style="text-align: left">bbc</td>
      <td style="text-align: left">Audio 6</td>
      <td style="text-align: left">Embedded 6</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 7</td>
      <td style="text-align: left">bbe</td>
      <td style="text-align: left">Audio 7</td>
      <td style="text-align: left">Embedded 7</td>
    </tr>
    <tr>
      <td style="text-align: left">Audio 8</td>
      <td style="text-align: left">bbg</td>
      <td style="text-align: left">Confirm with MediaKind Support</td>
      <td style="text-align: left">Embedded 8</td>
    </tr>
  </tbody>
</table>

## Data decoding

### Data formats

<table>
  <thead>
    <tr>
      <th style="text-align: left">Format</th>
      <th style="text-align: left">Output format</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">AFD/BAR data</td>
      <td style="text-align: left">SMPTE 2016</td>
    </tr>
    <tr>
      <td style="text-align: left">Teletext</td>
      <td style="text-align: left">OP47/SMPTE 2031</td>
    </tr>
    <tr>
      <td style="text-align: left">Closed Captions</td>
      <td style="text-align: left">SMPTE 334M for EIA–708-B</td>
    </tr>
    <tr>
      <td style="text-align: left">Time code</td>
      <td style="text-align: left">SMPTE 12M + RP188</td>
    </tr>
    <tr>
      <td style="text-align: left">Generic VANC</td>
      <td style="text-align: left">SMPTE 2038</td>
    </tr>
    <tr>
      <td style="text-align: left">SCTE-35</td>
      <td style="text-align: left">SCTE-104</td>
    </tr>
  </tbody>
</table>

The **Receiver** service currently supports the following data types:

- Closed Captions
- Teletext
- Time code
- AFD
- Generic data

Data is carried within the transport stream in 1 or 2 possible ways, depending on the type of data.

1. Encapsulated in the video component as SEI (H.264 / H.265) or USER data (MPEG2)
2. On a separate data PID

<blockquote data-callout="note"><strong>Note</strong><p>A maximum of 8 data components can be decoded at any one time for each decode type <strong>Receiver</strong> service.</p></blockquote>

### Configure data decoding

The section explains how to decode data that is carried on a separate PID.

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

   See [Decoding parameters](/traditional-products-and-appliances/components/receiver/parameters#data) descriptions for additional information.

3. Select **Data** to display data decoding parameters.

   ![Data tab with Add data decode and Decode all input data](/images/legacy-receiver/view-edit-service-decode-data-cp.webp)

4. Add an additional data component to decode.

5. Select an **Input PID**. If the selected PID is present in the PMT then the receiver attempts to decode any data on that PID. You can choose to manually enter a PID.

6. Select a **Data type**.

### Add a data decoding

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

   See [Decoding parameters](/traditional-products-and-appliances/components/receiver/parameters#decoding-parameters-and-statuses) descriptions for additional information.

3. Select **Data** to display data decoding parameters.

   ![Data tab with Add data decode and Decode all input data](/images/legacy-receiver/view-edit-service-decode-data-cp.webp)

4. Click **Add data decode**. A new data displays in the list.

5. [Configure data decoding](/traditional-products-and-appliances/components/receiver/parameters#data) parameters.

### Decode all input data

Before you start, ensure:

- At least one **Receiver** service is configured.
- [Video decoding](/traditional-products-and-appliances/components/receiver/decoding#configure-video-decoding) is configured.

<blockquote data-callout="note"><strong>Note</strong><p><strong>A maximum number of 8 audio components (stereo pairs)</strong> can be decoded simultaneously for each decoded video service.</p></blockquote>

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section, select the **Decoding** tab.

   ![Data tab with Add data decode and Decode all input data](/images/legacy-receiver/view-edit-service-decode-data-cp.webp)

   See [Decoding parameters](/traditional-products-and-appliances/components/receiver/parameters#decoding-parameters-and-statuses) descriptions for additional information.

3. Select **Data** to display parameters.

4. Click **Decode all input data**. All the data components for the selected service that are not currently being decoded are added in the order that they are listed in the PMT (a **maximum of 8 decodes per service**). The default **Data type** is set to **Ancillary**.

### Delete data from a decoding configuration

Before you start, ensure:

- At least one **Receiver** service is configured.
- At least one data input is configured for decoding.

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the **Parameters** section select the **Decoding** tab.

   ![Data tab with Add data decode and Decode all input data](/images/legacy-receiver/view-edit-service-decode-data-cp.webp)

3. Select **Data** to display data decoding parameters.

4. Click `Delete` icon to delete a data from the decoding or click **Remove all input data**.

## Use of Multiple Receiver Service Types

Receiver services can be set to either an HD or a UHD service type (other service types also exist). Multiple Receiver services may be configured depending upon the requirement (e.g. Up to 4 for HD decode services).

<blockquote data-callout="caution"><strong>Caution</strong><p>When decoding UHD only a single receiver service is possible.</p></blockquote>

### Functional description:

- Each service is independently configured, and can be started, stopped, and edited without impacting other services.
- Any combination of HD video codec, frame rates or resolutions can be decoded (up to a maximum of 4 services).
- For a list of supported video standards see the [**supported decoding formats**](/traditional-products-and-appliances/products/rx1/decoding#video-decoding) section of the RX1 decoding guide.

### Edit a service type for an existing service.

You can edit the service type for an existing Receiver service.

1. From the **Home** page, select the RECEIVER item from the required feed then click `Edit` icon.

2. From the [**Configuration type**](/traditional-products-and-appliances/components/receiver/parameters#service-parameters) value, select an option.

   <blockquote data-callout="note"><strong>Note</strong><p>If a receiver is running multiple HD services, and one of the services is changed to UHD, then the UHD service will be stopped and blocked from restarting until all of the other HD services have been stopped.</p></blockquote>
