

# Details for specific output formats
<a name="captions-outputs-details-specific-formats"></a>

The following sections provide information that applies only to specific captions formats.

Topics

# Font styles for Burn-in or DVB-Sub
<a name="font-styles-for-burn-in"></a>

This section applies if you are [setting up Burn-in or DVB-Sub captions](output-embedded-and-more.md) in a MediaLive channel. You might decide to specify the look of the captions. The following rule applies.

If you are using the same captions source in several outputs and all those outputs use the same format, then you must set up the font style information identically in each output. If you don't, you get an error when you save the channel. For example, you have an Archive output that includes DVB-Sub captions converted from captions selector "embedded". And you have a UDP output that also includes DVB-Sub captions converted from the same captions selector. 

Note that you must set up the font style information separately in each output. But you must enter the same information in each output. 

For example, output A might use **Captions Selector 1** with the **Destination Type** set to **Burn-in**. And output B might also use **Captions Selector 1** with the **Destination Type** set to **Burn-in**. You set the font information once in output 1 and again in output 2. But you must set up all the font information identically in both outputs.

# PIDs for ARIB
<a name="complete-the-pids-for-arib"></a>

This section applies if you are [setting up ARIB captions](output-embedded-and-more.md) in an  output group that supports a transport stream. For example, UDP or SRT. You must specify the output PID.
+ In the relevant output group, choose the output that has the ARIB captions.
+ For **PID settings**, complete **ARIB captions PID control **and **ARIB captions PID** as shown in the following table.


|  ARIB Captions PID Control  |  ARIB Captions PID  |  Result  | 
| --- | --- | --- | 
|  Auto  |  Ignore  |  A PID is automatically assigned during encoding. This value could be any number.  | 
|  Use Configured  |  Enter a decimal or hexadecimal  |  This PID is used for the captions.  | 

# PIDs for DVB-Sub
<a name="complete-the-pids-for-dvb-sub"></a>

This section applies if you are [setting up DVB-Sub captions](output-embedded-and-more.md) in an output group that supports a transport stream. For example, UDP or SRT. You must specify the output PID.
+ In the relevant UDP output group, choose the output that has the DVB-Sub captions.
+ For **PID settings**, in **DVB-Sub PIDs**, enter the PID for the DVB-Sub captions in this output. Or keep the default.

# PIDs for Teletext
<a name="complete-the-pids-for-teletext"></a>

This section applies if you are [setting up Teletext captions](output-embedded-and-more.md) in an output group that supports a transport stream. For example, UDP or SRT. You must specify the output PID.
+ In the relevant UDP output group, choose the output that has the Teletext captions.
+ For **PID settings**, in **DVB Teletext PID**, enter the PID for the Teletext captions in this output. Or keep the default.

# Language information in HLS manifests
<a name="set-up-the-hls-manifest"></a>

This section applies if you are [setting up captions in an HLS output group](output-embedded-and-more.md) in a MediaLive channel. You must include captions language information in the manifest.

If the captions are embedded captions and the output is HLS, you must include captions language information in the manifest. If you don't include this information, the downstream player won't have information about the embedded captions. To include language information in the manifest: 

1. In the HLS output group in Output groups, go to the **Captions** section. In **Captions language setting**, choose **Insert**. Choosing this option inserts lines in the manifest for each embedded captions language. It inserts as many lines as the mappings that you will add in the next step. 
**Note**  
This **Captions** section is in the output group. Don't confuse this section with the the captions encode sections in the individual outputs.

1. Still in the HLS output group, for **HLS settings**, in **Captions language mappings**, choose **Add captions language mappings**.

1. Choose **Add captions language mappings** again to add more mapping groups, one for each embedded captions asset, to a maximum of four groups. For example, if the output embedded languages contain English, French, and Spanish, you need three mapping groups.

1. Complete each mapping group to identify the CC (caption channel) number and its language. Specify the language as a three-letter ISO language code, as per ISO 639-2. For example, if captions channel 1 is French, then set up the three fields with "1", "fre", and "French". 

   The order in which you enter the languages must match the order of the captions in the source. For example, if the captions are in the order French, then English, then Spanish, then Portuguese, then set up CC1 as French, CC2 as English, and so on. If you don't order them correctly, the captions in the manifest will be tagged with the wrong languages.

# Font styles for EBU-TT-D
<a name="ebu-tt-font-styles"></a>

This section applies if you are [setting up EBU-TT-D captions](output-sidecar-and-smptett-mss.md) from source captions that are embedded or Teletext captions. You can optionally specify some of the font style information. 

An EBU-TT-D caption encode consists of an XML file that the downstream system reads and processes. This XML file includes a section for font style information. You can specify some of this information.

1. In the output that has the EBU-TT-D captions, display the section for the captions.

1. Complete these fields. For details about a field on the MediaLive console, choose the **Info** link next to the field.
   + **Style control**
   + **Fill line gap**
   + **Font family**

This setup results in one of the following options:

The XML file for the captions includes the following style information:


| Style information | Value in XML file for Include option | Value in XML file for Exclude option | 
| --- | --- | --- | 
| Font style information (position, alignment, italics, and so on) | Set to match the source captions. | Left blank. | 
| Font color and background color | Set to match the source captions. | Set to white font and black background. | 
| Font size  | Set to 100%. | Set to 100%. | 
| Font family | Set to the value that you specified in Font family. | Set to monospaced. | 
| Line gap  | Set up to match the value that you specified in Fill line gap.  | Set up to leave the gap unfilled. | 

# Font styles for TTML
<a name="ttml-font-styles"></a>

This section applies if you are [setting up TTML captions](output-sidecar-and-smptett-mss.md) from source captions are embedded or Teletext captions. You can optionally specify some of the font style information. 

1. In the output that has the TTML captions, display the section for the captions. 

1. Set **Style control** to **Passthrough** or **Use\$1configured**.

   Note that when **User\$1configured** is selected, there are actually no fields that you can configure.

The XML file for the captions will include the following style information:


| Style information | Value in XML file for Passthrough option | Value in XML file for User-configured option | 
| --- | --- | --- | 
| Font style information (position, alignment, italics, and so on) | Set to match the source captions. | Left blank. | 
| Font color and background color | Set to match the source captions. | Set to white font and black background. | 
| Font size  | Match size of source captions, if specified. Otherwise, set to 80% of the available height available for captions. | Left blank. | 
| Font family | Match family of source captions, if specified. Otherwise, set to monospaceSansSerif. | Left blank. | 
| Line gap  | Set to leave the line gap unfilled. | Set to leave the gap unfilled. | 

# Font styles for WebVTT
<a name="webvtt-font-styles"></a>

This section applies if you are [setting up a MediaLive channel with WebVTT captions](output-sidecar-and-smptett-mss.md) from source captions that are embedded or Teletext captions. You can optionally pass through some of the style information.

1. In the output that has the WebVTT captions, display the section for the captions. 

1. Set **Style control**:
   + **No\$1Style\$1Data**: Includes only text and timestamp information for the caption encode. 
   + **Passthrough**: Passes through position and color style data from the source, and includes the text and timestamp information. 