This example creates an over-the-top (OTT) service with five video profiles and two stereo audio tracks. The output is a manifest and one transport stream (TS) file per video layer for MediaKind Packager. A new service can run with its default settings.

## Video profiles

<table>
  <thead>
    <tr>
      <th style="text-align: left">Target bitrate (kbps)</th>
      <th style="text-align: left">Frame rate (fps)</th>
      <th style="text-align: left">Resolution</th>
      <th style="text-align: left">Codec</th>
      <th style="text-align: left">Expected quality</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left">20000</td>
      <td style="text-align: left">60</td>
      <td style="text-align: left">3840x2160</td>
      <td style="text-align: left">HEVC 10 bit</td>
      <td style="text-align: left">Best</td>
    </tr>
    <tr>
      <td style="text-align: left">8600</td>
      <td style="text-align: left">60</td>
      <td style="text-align: left">1920x1080</td>
      <td style="text-align: left">HEVC 10 bit</td>
      <td style="text-align: left">Best</td>
    </tr>
    <tr>
      <td style="text-align: left">4000</td>
      <td style="text-align: left">60</td>
      <td style="text-align: left">1080x720</td>
      <td style="text-align: left">HEVC 10 bit</td>
      <td style="text-align: left">Good</td>
    </tr>
    <tr>
      <td style="text-align: left">2200</td>
      <td style="text-align: left">30</td>
      <td style="text-align: left">960x540</td>
      <td style="text-align: left">HEVC 10 bit</td>
      <td style="text-align: left">Satisfactory</td>
    </tr>
    <tr>
      <td style="text-align: left">500</td>
      <td style="text-align: left">15</td>
      <td style="text-align: left">480x270</td>
      <td style="text-align: left">HEVC 10 bit</td>
      <td style="text-align: left">Satisfactory</td>
    </tr>
  </tbody>
</table>

For each of the two stereo audio tracks, use HE-AAC at 48 kbps with a 44.1 kHz sampling rate.

## Configure and start the service

1. Go to **Services** > **Add service** > **On-Demand Encoding**. A new service has one audio and one video stream.

2. Enter a service name.

3. In **Input Stream Selection**, select **Add audio...**, configure the audio processing parameters, and select **Apply**. Check that the list shows one video and two audio streams.

4. Open **Encoding** and select **Add video...** to add four video streams. Use `Edit` icon to configure each of the five encodings with the video profiles above. Select **Apply** for each.

5. In **Encoding**, select **Add audio...**. Configure and apply the audio settings, then add and configure the second encoding. Check that you have five video encodings and two audio encodings.

6. Open **Output** and enter the base publishing point. Select `Edit` icon on **output\_x** to edit the output.

7. Select `Edit` icon on **output\_x\_x.ts**. In **Stream selection**, select one video stream and the audio streams, configure their packet identifiers (PIDs), and select **Apply**. You can set the PID only for a selected stream.
   ![Stream selection for one TS file, with one video encoding and both audio encodings selected.](/images/atlas-guide/output-stream-selection.png)

8. Select **Add TS file** and repeat the stream selection for each remaining video layer.

9. Select **Save and exit**. Check that the service appears in the services list.

10. [Assign the service to a server](/traditional-products-and-appliances/components/controller/services#assign-a-server-to-run-the-service).

11. Select `Play outline` icon to start the service.

12. Select its name to open **Jobs** and [add a job](/traditional-products-and-appliances/components/on-demand-encoder/manage-jobs#create-a-job). Service names appear as links when service-specific information is available. The page that opens depends on the processing type.

A newly added job starts on the running service. Its TS files appear in the configured output folder. Jobs with equal priority start in creation order.

## Configuration topics

- [Select input streams](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/input-stream)
- [Configure encoding](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/encoding)
- [Configure outputs](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/output)
- [Configure post-processing](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/post-processing)
- [Configure closed captions](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/closed-caption)
- [Burn subtitles into video](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/closed-caption-burn-in)
- [Apply inverse telecine](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/telecine-ntsc)
- [Convert HDR signaling](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/hdr-conversion)
- [Configure iTV conditioning](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/itv-conditioning)
