

# Set up the video encode
<a name="creating-a-channel-step6"></a>

In [Configure outputs](creating-a-channel-step4.md), you created the output groups and outputs that you identified when you planned the MediaLivechannel. Each output section contains a **Stream settings** section. You must now create all the video encodes. 

**General procedure**  
Follow this general procedure to set up the video encode.

1. Decide how you're going to create each encode:
   + From scratch.
   + By sharing an encode that already exists in this output or another output in the channel.
   + By cloning an encode that already exists in this output or another output in the channel.

   You might have already made this decision. If not, you should decide now. For more information, see [Design the encodes](designing-encodes.md).

   You can share or clone video encodes from one output to another in the same output group, or from one output to an output in another output group.

1. Read the appropriate sections that follow.

**Topics**
+ [Creating a video encode from scratch](create-video-scratch.md)
+ [Setting up the video encodes in a Frame capture output](create-video-scratch-framecapture.md)
+ [Sharing a video encode](create-video-share.md)
+ [Creating a video encode by cloning](create-video-clone.md)

# Creating a video encode from scratch
<a name="create-video-scratch"></a>

You can create a video encode by entering values in all the appropriate fields. Follow this procedure for video in all types of outputs except for Frame capture outputs. 

1. On the **Create channel** page, find the output group that you [created](creating-a-channel-step4.md). 

1. Under that output group, find the output where you want to set up a video encode.

1. Choose the link for the video encode.

1. For **Codec settings**, choose the codec to use for this encode. More fields appear in several sections.

1. Complete each field as appropriate. For details about a field, choose the **Info** link next to the field. 

**Topics**
+ [Width and height (resolution)](#video-encode-resolution)
+ [Rate control](#video-encode-ratecontrol-fields)
+ [Framerate](#video-encode-framerate)
+ [Codec details](#video-encode-codec-details)
+ [Timecode](#video-encode-timecode)
+ [Color space](#video-encode-colorspace)
+ [Additional encoding settings](#video-encode-additional-settings)

## Width and height (resolution)
<a name="video-encode-resolution"></a>

For information about the **Width** and **Height** fields (which define the video resolution), choose the **Info** link for each field. The frame rate affects the output charges for this channel. For more information about charges, see [the MediaLive price list](https://aws.amazon.com/medialive/pricing/).

## Rate control
<a name="video-encode-ratecontrol-fields"></a>

For information about the **Rate control** fields, see [Setting the rate control mode](video-encode-ratecontrol.md). There are fields in this section that affect the output charges for this channel. For more information about charges, see [the MediaLive price list](https://aws.amazon.com/medialive/pricing/).

## Framerate
<a name="video-encode-framerate"></a>

For information about the **Framerate** fields, choose the **Info** link for each field. The frame rate affects the output charges for this channel. For more information about charges, see [the MediaLive price list](https://aws.amazon.com/medialive/pricing/).

## Codec details
<a name="video-encode-codec-details"></a>

### Profile field for H.264
<a name="video-encode-codec-details-h264-"></a>

The **Profile** field sets the profile, chroma sampling, and bit depth. 


|  Value in **Profile** field  |  Profile   |  Chroma Sampling   |  Bit Depth   | 
| --- | --- | --- | --- | 
|  **Baseline**   |  Baseline   |  4:2:0   |  8-bit   | 
|  **Main**   |  Main   |  4:2:0   |  8-bit   | 
|  **High**   |  High   |  4:2:0   |  8-bit   | 
|  **High 10bit**   |  High   |  4:2:0   |  10-bit   | 
|  **High 422**   |  High   |  4:2:2   |  8-bit   | 
|  **High 422 10bit**  |  High   |  4:2:2   |  10-bit   | 

### Profile field for H.265
<a name="video-encode-codec-details-h265-profile"></a>

The **Profile** field sets the profile, chroma sampling, and bit depth. 


| Value in Profile field |  Profile   |  Chroma Sampling   |  Bit Depth   | 
| --- | --- | --- | --- | 
| Main |  Main   |  4:2:0   |  8-bit   | 
| Main\$110BIT |  Main   |  4:2:0   |  10-bit   | 

### Bit depth and level fields for AV1
<a name="video-encode-codec-details-av1"></a>

The **Bit Depth** field sets the bit depth for the AV1 output encode. Choose **DEPTH\$18** for 8-bit output or **DEPTH\$110** for 10-bit output. If you don't specify a value, the default is 8-bit.

The **Level** field sets the level. Other encoding schemes (profile, chroma sampling, and tier) are hard-coded. For more information, see [Encoding schemes for the AV1 codec](video-characteristics-encoding-schemes.md#video-characteristics-encoding-schema-av1).

## Timecode
<a name="video-encode-timecode"></a>

For information about the **Timecode** fields, see [Working with timecodes and timestamps](timecode.md).

## Color space
<a name="video-encode-colorspace"></a>

For information about the **Color space** fields, see [Handling complex color space conversions](color-space.md).

## Additional encoding settings
<a name="video-encode-additional-settings"></a>

For information about the **Additional encoding setting**s fields, see [Setting up enhanced VQ mode](video-enhancedvq.md)

# Setting up the video encodes in a Frame capture output
<a name="create-video-scratch-framecapture"></a>

You can create a video encode by entering values in all the appropriate fields. Follow this procedure for video in a Frame capture output. 

1. On the **Create channel** page, find the output group that you [created](creating-a-channel-step4.md). 

1. Under that output group, find the output and choose the link for the video encode.

1. Complete each field as appropriate. For details about a field, choose the **Info** link next to the field.

1. When you are ready, go to [save the channel](creating-a-channel-step9.md).

# Sharing a video encode
<a name="create-video-share"></a>

You can create one video encode and share it among several outputs. Follow the [earlier procedure](create-video-scratch.md) to create the encode once. Then set up the encode for the other outputs using the following steps.

Note that the procedure for sharing a video encode is nearly identical to the procedure for sharing an audio encode or captions encode.

1. On the **Create channel** page, find the output group that you [created](creating-a-channel-step4.md). 

1. Under that output group, find the output where you want to set up a video encode.

1. If the output already contains a video encode, choose that video and then choose **Remove video**.

1. Choose **Add video**. A menu appears that includes the option **Use an existing video description**, followed by a list of the videos that currently exist in the entire channel.

1. Choose the video that you want to use. On the dialog that appears, choose **Share the existing settings**.

   The fields for this encode appear. Above the first field is an information message that lists all the outputs that share this encode. 

   You might want to change the video description to include the term *shared*, as a reminder to yourself.

   Keep in mind that there is only one instance of this encode in the channel. Therefore, if you change a field, you will change the field in all the other outputs that use this encode. 

   Remember this rule if you change the **Video selector name** field. If you specify a different selector in the encode in one output, you change it in all the outputs that share this encode. If you actually want to specify a different selector, you might need to clone the encode instead of sharing it.

## To stop sharing an encode
<a name="create-video-stop-sharing"></a>

You might need to stop sharing an encode. For example, you might have outputs A, B, and C that all share the encode H.264-hi-resolution. You want to remove output C from the shared setup and set up output C with its own (unshared) encode.

To stop sharing an encode follow these steps.

1. On the **Create channel** page, find the output group that has the output that contains the video that you want to remove from the shared setup. 

1. Select the output group, then select the output that contains the video encode. The name of the shared video encode appears, and the names of all the outputs that share that encode.

1. Make a note of the video encode, in case you need to refer to it again.

1. Select **Remove video**.

You can now create a new video encode for this output, either by [creating from scratch](create-video-scratch.md), by sharing a different encode, or by [cloning](create-video-clone.md) the encode that you just unshared (cloning isn't the same as sharing).

# Creating a video encode by cloning
<a name="create-video-clone"></a>

You can create one video encode and clone it among several outputs. The *source* encode could be an encode that you created from scratch, or it could be an encode that was itself created by cloning. For example, create *video-1*, then clone it to *video-2*, then clone *video-2* to *video-3*.

Note that the procedure for cloning a video encode is nearly identical to the procedure for cloning an audio encode or captions encode.

1. On the **Create channel** page, find the output group that you [created](creating-a-channel-step4.md). 

1. Under that output group, find the output where you want to set up a video encode.

1. If there is a **Video** button on the left, choose that button and then choose **Remove video**.

1. Choose **Add video**. A menu appears that includes the option **Use an existing video description**, followed by a list of the videos that currently exist in the entire channel.

1. Choose the video encode that you want to use as the source for the new video encode. 

1. On the dialog that appears, choose **Clone the existing settings**. The fields for the encode appear, with the fields showing the values from the source encode.

1. Change any fields, as appropriate.

   Keep in mind that this cloned encode is a new encode instance. If you change fields, you don't affect the source encode.