> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/content-management/formats/adding-a-new-format.md). Agents can also search and read this documentation through its [MCP server](https://docs.toomuchmedia.com/~gitbook/mcp).

# Adding a new Format

*Article Topics:* [*Formats*](https://docs.toomuchmedia.com/getting-started/common-topics/formats.md)*,* [*Worker*](https://docs.toomuchmedia.com/getting-started/common-topics/worker.md)

Each Format you add becomes a new version of your videos, such as a 720p file or a vertical 1080p file. This article walks through adding a Format and explains each of its settings.

***

## Before You Start

Decide on three things before you add a Format:

* **The orientation it's for.** Videos are horizontal, vertical, or square, and a Format only applies to the orientations you turn on for it.
* **Its height in pixels.** This is the Format's **Y Resolution**. For a vertical Format, the height is the long side of the video, so a vertical 1080p Format has a Y Resolution of 1920.
* **Its name.** The Name is added to the end of each file's name, for example `video-720p.mp4`, so choose something short.

See [A Typical Setup](https://docs.toomuchmedia.com/content-management/formats.md#a-typical-setup) for a common set of Formats and their Y Resolutions.

## Adding a Format

1. Navigate to the **Formats** section of the Content Management Admin.
2. Click the **Add New** button at the top right of the page.
3. Enter a **Name** and a **Display Name**.
4. Choose the Format's video settings, orientations, and **Y Resolution of Video**.
5. If you use HLS, set the Format's HLS settings.
6. Click **Add**.

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2FESLe9g2G5LhIpiwEeEwI%2Fcms-formats-addnewformat.png?alt=media&amp;token=47de89ce-e6a8-4a6a-87bc-eb6ab327be97" alt=""><figcaption></figcaption></figure>

The new Format appears in your list of Formats and is used for videos you process from now on. Adding a Format doesn't create files for videos you've already processed.

## Format Settings

Fields marked with a red asterisk in the admin are required.

### Name and Display

* **Name** - The Format's internal name, used in file names. It must be unique, can be up to 128 characters, and can't contain dashes or spaces. Use underscores instead, for example `1080p_vertical`.
* **Display Name** - The name members see in your Member Areas, for example "1080p".

### Video and Audio

* **File Container** - The type of file to create: **mp4** or **webm**. The container is also the file extension, so a 720p Format with the mp4 container expects files named `video-720p.mp4`.
* **Video Codec** - **h264** (the most common format), **h265**, or **VP9** (open source, used for webm).
* **Video Preset** - Trades encoding speed for file size. Slower presets take longer to transcode but make smaller files at the same quality. Choose **None** to use the default (medium).
* **Video Tune** - Adjusts encoding for a type of content, such as **film** or **animation**. Choose **None** for most videos.
* **Video Bitrate** - The video bitrate for the Format. Leave blank for the default.
* **CRF** - Constant Rate Factor, used with h264 and h265 to set quality. The higher the value, the lower the quality and the smaller the file. Leave blank for the default.
* **Audio Codec** - **aac**, **mp3**, or **Copy directly from source video with no changes**.
* **Audio Bitrate** - The audio bitrate for the Format. Leave blank for the default.

{% hint style="info" %}
**Please Note:** If you're not sure which settings to use, choose the **mp4** container, the **h264** video codec, and the **aac** audio codec. These play in every modern browser.
{% endhint %}

### Orientation

Set each of these to **Enabled** or **Disabled**:

* **Vertical** - Videos taller than they are wide.
* **Horizontal** - Videos wider than they are tall.
* **Square** - Videos with the same width and height.

A video only gets files for the Formats that have its orientation enabled. NATS works out a video's orientation from the source file, so a vertical video never gets a horizontal-only Format.

### Y Resolution of Video

The height of the Format's videos in pixels, for example 1080 for a 1080p horizontal video or 1920 for a 1080p vertical video.

When the CMS Worker transcodes a video, it scales the video to this height and keeps its shape. A Format with no Y Resolution is never transcoded, and by default the CMS Worker never makes a Format taller than the source video.

{% hint style="warning" %}
**Please Note:** If you enable both Horizontal and Vertical on one Format, both orientations are scaled to the same height. A 1080 Format makes horizontal videos 1920 x 1080, but vertical videos only 608 x 1080. Create separate Formats for each orientation instead.
{% endhint %}

### HLS

These settings control how the Format is used in [HLS](https://docs.toomuchmedia.com/content-management/formats/hls.md) adaptive streaming. Leave **Include in HLS** disabled if you don't use HLS.

* **Include in HLS** - Includes this Format as a quality level in each video's HLS stream.
* **HLS Master Playlist Order** - The Format's position in the HLS playlist. The lowest number is listed first and is the quality players load first.
* **HLS: Allow Transcode Fallback** - Lets the CMS Worker encode this Format from the source video for HLS when a video's existing file can't be used.
* **HLS BANDWIDTH (bits/sec)** - *Optional.* Leave blank to have NATS calculate it.
* **HLS AVERAGE-BANDWIDTH (bits/sec)** - *Optional.* Leave blank to leave it out.
* **HLS CODECS string** - *Optional.* Leave blank to leave it out.

See [HLS](https://docs.toomuchmedia.com/content-management/formats/hls.md#format-settings) for more on each setting and on choosing a playlist order.

## Creating Files for the New Format

A new Format only applies to videos processed after you add it. To create files for it, either:

* **Let the CMS Worker transcode it.** Process your videos as usual and the CMS Worker creates a file for each matching Format.
* **Upload your own file.** Export the video at the Format's size and name it after the Format, for example `video-720p.mp4` for a 720p mp4 Format. When the set is processed, NATS uses your file instead of transcoding. See [File Naming Convention](https://docs.toomuchmedia.com/content-management/formats/managing-formats.md#file-naming-convention).

{% hint style="info" %}
**Please Note:** Transcoding only happens when it's turned on. If **Disable CMS Video Transcoding** is enabled in the CMS section of the Configuration Admin, you'll need to upload a file for each Format yourself.
{% endhint %}

## Related Articles

{% content-ref url="/pages/tgvYsMoOtxZHIkVdz1o1" %}
[Formats](https://docs.toomuchmedia.com/content-management/formats.md)
{% endcontent-ref %}

{% content-ref url="/pages/YfA4xQFBay431lRYqS3Y" %}
[Managing Formats](https://docs.toomuchmedia.com/content-management/formats/managing-formats.md)
{% endcontent-ref %}

{% content-ref url="/pages/5IurA6NJmf4cSnKcGrc2" %}
[HLS](https://docs.toomuchmedia.com/content-management/formats/hls.md)
{% endcontent-ref %}

{% content-ref url="/pages/uyBP7ZIo9MDavQVQBkzj" %}
[CMS Worker](https://docs.toomuchmedia.com/content-management/processing/cms-worker.md)
{% endcontent-ref %}
