

# Output codecs in MediaLive
<a name="supported-containers-and-codecs-output"></a>

This section provides information about the output audio and video codecs that MediaLive can produce.

**Topics**
+ [Codecs supported in MediaLive outputs](outputs-list-codecs.md)
+ [Supported codecs by output type](outputs-supported-codecs.md)
+ [Supported sampling rate and bitrate for AAC output](aac-four-characteristics.md)
+ [Encoding schemes supported in video outputs in MediaLive](video-characteristics-encoding-schemes.md)
+ [Resolutions supported in video outputs in MediaLive](video-characteristics-resolution.md)

# Codecs supported in MediaLive outputs
<a name="outputs-list-codecs"></a>

MediaLive supports the following video codecs in outputs.
+ AV1
+ H.264 (AVC)
+ H.265 (HEVC)
+ MPEG-2

MediaLive supports the following audio codecs in outputs.
+ AAC
+ Dolby Digital (AC3)
+ Dolby Digital Plus (EAC3)
+ Dolby Digital Plus with Atmos
+ MPEG-1 Layer II (MP2)

# Supported codecs by output type
<a name="outputs-supported-codecs"></a>

The following table lists the video and audio codecs that each type of MediaLive output container (output group) supports.


| Container (output group) | Video codecs | Audio codecs | 
| --- | --- | --- | 
| Archive | H.264 (AVC)H.265 (HEVC) |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos MPEG-1 Layer II (MP2)  | 
| CMAF Ingest | AV1H.265 (AVC)H.265 (HEVC) |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos  | 
| Frame Capture | JPEG | None. A Frame capture output doesn't include audio. | 
| HLS with a standard container | H.264 (AVC)H.265 (HEVC) |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos  | 
| HLS with an fMP4 container |  H.264 (AVC) H.265 (HEVC)  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos  | 
| MediaPackage |  H.264 (AVC) H.265 (HEVC)  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos  | 
| MediaConnect Router |  AV1 H.264 (AVC) H.265 (HEVC) MPEG-2  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos MPEG-1 Layer II (MP2)  | 
| Microsoft Smooth |  H.264 (AVC) H.265 (HEVC)  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3)  | 
| Multiplex |  H.264 (AVC) H.265 (HEVC) MPEG-2  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos  | 
| RTMP or RTMPS |  H.264 (AVC)  |  AAC  | 
| SRT |  H.264 (AVC) H.265 (HEVC)  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos MPEG-1 Layer II (MP2)  | 
| UDP |  H.264 (AVC) H.265 (HEVC)  |  AAC Dolby Digital (AC3) Dolby Digital Plus (EAC3) Dolby Digital Plus with Atmos MPEG-1 Layer II (MP2)  | 

# Supported sampling rate and bitrate for AAC output
<a name="aac-four-characteristics"></a>

This section explains how to set the following four properties of the AAC audio codec when you are setting up an audio encode in MediaLive:
+ Profile
+ Coding mode
+ Sample rate
+ Bitrate

In the console, these properties are in four fields in the **Codec configuration** section for the AAC codec. To get here, go to the **Create channel** page and choose the appropriate output in the output group. In **Output settings**, go to the **Audio** section. In Codec settings, choose Aac, then expand **Codec configuration**. To review the step where you complete these fields, see [Set up the audio encodes](creating-a-channel-step7.md). 

**Note**  
You can set all four fields. Or you can leave all the fields with their defaults.  
If you change only one or two fields, you might create a combination that is not valid. See the tables in the following sections to verify that the combination you have created is valid.

**To set these four fields**

1. Choose a **Coding mode**.

1. Choose a **Profile** that is valid with that profile. See the tables that follow this procedure.

1. Choose a **Sample rate** that is valid for that combination of profile and coding mode.

1. Choose a **Bitrate** that falls within the range that is supported for that sample rate.

## Coding mode 1.0
<a name="aac_mode_10_combinations"></a>

In this table, read down the rows to find the profile that you want. Then read across to find a valid combination of sample rate and bitrate. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/aac-four-characteristics.html)

## Coding mode 1\$11
<a name="aac_mode_11_combinations"></a>

In this table, read down the rows to find the profile that you want. Then read across to find a valid combination of sample rate and bitrate. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/aac-four-characteristics.html)

## Coding mode 2.0
<a name="aac_mode_20_combinations"></a>

In this table, read down the rows to find the profile that you want. Then read across to find a valid combination of sample rate and bitrate. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/aac-four-characteristics.html)

## Coding mode 5.1
<a name="aac_mode_51_combinations"></a>

In this table, read down the rows to find the profile that you want. Then read across to find a valid combination of sample rate and bitrate. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/aac-four-characteristics.html)

## Coding mode ad receiver mix
<a name="aac_mode_ad_receiver_mix_combinations"></a>

Choose this coding mode if you have an AD (audio description) audio track that you want to include in the output.

In this table, read down the rows to find the profile that you want. Then read across to find a valid combination of sample rate and bitrate. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/aac-four-characteristics.html)

# Encoding schemes supported in video outputs in MediaLive
<a name="video-characteristics-encoding-schemes"></a>

**Topics**
+ [Encoding schemes for the AV1 codec](#video-characteristics-encoding-schema-av1)
+ [Encoding schemes for the AVC (H.264) codec](#video-characteristics-encoding-scheme-avc)
+ [Encoding schemes for the HEVC (H.265) codec](#video-characteristics-encoding-scheme-hevc)
+ [Encoding schemes for MPEG-2](#video-characteristics-encoding-scheme-mpeg2)

This section provides information about the encoding schemes that MediaLive supports in the different codecs that are supported in outputs.

## Encoding schemes for the AV1 codec
<a name="video-characteristics-encoding-schema-av1"></a>

The AV1 codec encoding schemes for output video include profile, bit depth, chroma sampling, tier, and level. You can configure the bit depth by setting the **Bit Depth** field to **DEPTH\$18** (8-bit) or **DEPTH\$110** (10-bit). If you don't specify a value, the default is 8-bit. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/video-characteristics-encoding-schemes.html)

## Encoding schemes for the AVC (H.264) codec
<a name="video-characteristics-encoding-scheme-avc"></a>

The AVC (H.264) codec encoding schemes for output video include profile, bit depth, and chroma sampling. In the following table, each row is a different scheme. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/video-characteristics-encoding-schemes.html)

## Encoding schemes for the HEVC (H.265) codec
<a name="video-characteristics-encoding-scheme-hevc"></a>

The HEVC (H.265) codec encoding schemes for output video include profile, bit depth, chroma sampling, tier, and level. In the following table, each row is a different scheme. 

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/medialive/latest/ug/video-characteristics-encoding-schemes.html)

## Encoding schemes for MPEG-2
<a name="video-characteristics-encoding-scheme-mpeg2"></a>

The MPEG-2 codec encoding schemes for output video include profile, bit depth, and chroma sampling. 


|  Profile   |  Bit Depth   |  Chroma Sampling   | 
| --- | --- | --- | 
|  Main   |  8-bit   |  4:2:0   | 

# Resolutions supported in video outputs in MediaLive
<a name="video-characteristics-resolution"></a>

In the following table, each row defines the video resolutions that apply to the terms SD, HD, and UHD. The table also specifies the resolutions that are supported with each codec.


| Resolution | Definition | Supported in AV1 outputs | Supported in AVC outputs | Supported in HEVC outputs | Supported in MPEG-2 codec | 
| --- | --- | --- | --- | --- | --- | 
| SD | Vertical resolution under 720 | Yes | Yes | Yes | Yes | 
| HD | Vertical resolution over 720, up to and including 1080 | Yes | Yes | Yes |  | 
| UHD or 4K | Vertical resolution over 1080, up to and including 2160  |  | Yes | Yes |  | 