Use **Input stream selection** to define which streams the encoder selects from an input file.

## Edit input stream selection parameters

1. Select `Edit` icon to edit the service. The input categories are **Video**, **Audio**, **Subtitle**, and **Metadata**.
2. Configure the [input parameters](/traditional-products-and-appliances/components/on-demand-encoder/parameters/input) and select **Apply**.
3. Select **Mandatory** for any required audio, subtitle, or metadata stream. Every new service has a mandatory video input that cannot be removed. A job completes only if the asset contains streams matching the required criteria. For example, a mandatory **ARIB B24** subtitle input requires a matching subtitle stream.
4. Save the configuration.
5. Add other input streams as needed. To remove an optional stream, select `Delete` icon.

## Edit video input

1. Select `Edit` icon for the default video input to open **Video selection**.
2. Expand the sections for [video pre-filtering, adjustment, colorimetry, and closed captions](/traditional-products-and-appliances/components/on-demand-encoder/parameters/input#video). Configure the parameters and select **Apply**.
3. Add [audio](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/input-stream#add-an-audio-input), [DVB subtitles](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/input-stream#add-a-subtitle-input), or [metadata](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/input-stream#add-a-metadata-input) as needed. Use `Delete` icon to remove an optional input.
4. Save the configuration.

## Add an audio input

1. Select `Edit` icon for the service.
2. Select **Add audio...** to open **Audio selection**.
3. Configure the [audio parameters](/traditional-products-and-appliances/components/on-demand-encoder/parameters/input#audio) and select **Apply**. Check that the stream appears in the list.
4. [Configure the audio encoding](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/encoding#add-an-audio-encoding).
5. Save the configuration.

## Edit an audio input

1. Select `Edit` icon for the service.
2. On **Input stream selection**, select `Edit` icon for the audio input to open **Audio selection**.
3. Configure the [audio parameters](/traditional-products-and-appliances/components/on-demand-encoder/parameters/input#audio) and select **Apply**.

## Add a subtitle input

1. Select `Edit` icon for the service.
2. Select **Add subtitle...** to open **Subtitle media processing**.
3. Select the **Type** that matches the file. The choices are DVB, ARIB B24, SCTE-27, Teletext, and Subtitle file (`.srt`). For [closed captions](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/closed-caption) or [caption burn-in](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/closed-caption-burn-in), use the video selection settings.
4. Configure the [subtitle parameters](/traditional-products-and-appliances/components/on-demand-encoder/parameters/input#subtitle) and select **Apply**. Check that the stream appears in the list.
5. [Configure the subtitle encoding](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/encoding#add-a-subtitle-encoding).
6. Save the configuration.

## Add a metadata input

1. Select `Edit` icon for the service.
2. Select **Add metadata...** to open **Metadata selection and processing**.
3. Configure the [metadata parameters](/traditional-products-and-appliances/components/on-demand-encoder/parameters/input#metadata) and select **Apply**. The processing settings depend on **Type**. Check that the stream appears in the list.
4. [Configure the metadata encoding](/traditional-products-and-appliances/components/on-demand-encoder/configure-service/encoding#add-metadata-encoding).
5. Save the configuration.
