

# Using video rotation in AWS Elemental MediaConvert
Video rotationFind information about the new rotate feature.

For most inputs, you can now use the rotate feature to specify how the service rotates your video from input to output. You can also specify whether the service follows any rotation metadata in the input. Find information and instructions for setting rotation. 

For most inputs, you can choose how AWS Elemental MediaConvert rotates your video. You can either specify the rotation or set the rotation to automatic. Automatic rotation uses any rotation metadata contained in the input files. Some cameras, often those in smartphones, record this rotation metadata when you turn the camera before you begin recording your video. This rotation metadata, sometimes referred to as rotation atoms or boxes, provides rotation metadata to the player device that is used for viewing the video. MediaConvert can automatically detect this rotation metadata and rotate your video during transcoding so that it appears correctly on all players.

**Tip**  
If your video outputs are rotated in a way that you don't expect, a likely cause is that your input video has rotation metadata but your job settings don't specify that the service should use it. Try setting **Rotate** to **Automatic**. Find this setting on the **Create job** page, under **Input**, in the **Video selector** section.

**Topics**
+ [

# Configuring manual video rotation
](manually-specified-rotation.md)
+ [

# Configuring automatically detected rotation
](automatic-rotation.md)
+ [

# Input file requirements for video rotation
](auto-rotate-requirements.md)

# Configuring manual video rotation
Configuring manual rotation

When you specify the rotation for your input, AWS Elemental MediaConvert rotates the video from your input clockwise the amount that you specify. This rotation applies to all outputs in the job. You can rotate clockwise by 90, 180, or 270 degrees. The following image shows a video output from a job that specifies a 90-degree rotation.

**Note**  
AWS Elemental MediaConvert doesn't pass through rotation metadata. Regardless of how you set **Rotate**, job outputs don't have rotation metadata.

![\[The video is rotated so that the top of the pre-rotation image is parallel to the right edge of the post-rotation video frame. Black vertical bars on the right and left accommodate the difference between the aspect ratio of the original video and the rotated video.\]](http://docs.aws.amazon.com/mediaconvert/latest/ug/images/auto-rotate-example.jpg)


**To specify the rotation of your video**

1. On the **Create job** page, in the **Job** pane on the left, in the **Inputs** section, choose the input that you want to rotate.

1. In the **Video selector** section on the left, for **Rotate**, choose the amount of clockwise rotation that you want.

If you use the API or an SDK, you can find this setting in the JSON file of your job. The setting name is `rotate`. Find the [rotate](https://docs.aws.amazon.com/mediaconvert/latest/apireference/jobs.html#jobs-prop-videoselector-rotate) property in the AWS Elemental MediaConvert API Reference.

**Note**  
AWS Elemental MediaConvert doesn't rotate images and motion images that you overlay. If you use the image inserter feature or the motion image inserter feature with the rotate feature, rotate your overlay before you upload it. Specify the position of your overlays as you want them to appear on the video after rotation.

# Configuring automatically detected rotation
Configuring automatic rotation

If your video has embedded rotation metadata, AWS Elemental MediaConvert can detect it and automatically rotate your video content so that it's oriented correctly in your outputs.

**Note**  
AWS Elemental MediaConvert doesn't pass through rotation metadata. Regardless of how you set **Rotate**, job outputs don't have rotation metadata.

**To enable automatic rotation**

1. Check that your input container is .mov or .mp4 and that your input has rotation metadata.

1. On the **Create job** page, in the **Job** pane on the left, in the **Inputs** section, choose the input that has rotation metadata.

1. In the **Video selector** section on the left, for **Rotate**, choose **Automatic**.

**Note**  
AWS Elemental MediaConvert doesn't rotate images and motion images that you overlay. If you use the image inserter feature or the motion image inserter feature with the rotate feature, rotate your overlay before you upload it. Specify the position of your overlays as you want them to appear on the video after rotation.

# Input file requirements for video rotation
Requirements

You can use rotation for inputs that have the following video characteristics:
+ Progressive video
+ Chroma subsampling scheme 4:2:2 or 4:2:0

In addition to the general input restrictions for the rotate feature, to use *automatic* rotation your input file must conform to these limitations:
+ Input container: .mov or .mp4
+ Rotation metadata specifying 90, 180, or 270-degree rotation

  If your rotation metadata is within one degree less or more than the values listed here, the service will round to a supported value.

**Note**  
If your input file has rotation metadata that specifies a rotation other than those listed here, the service defaults to no rotation.