# Formats and files

Azot downloads streams directly and muxes them into standard containers without re-encoding your video. You can set global defaults, override them per extension, or adjust them for a single link in the download panel.

## Containers and formats

### Video containers

- **MP4** is the default and works on every plan.
- **MKV**, **MOV**, and **TS** require Azot Pro. Set your default in **Settings > Processing > Output**, per extension, or per download in the download panel.

If you choose **TS** for tracks whose codecs MPEG-TS cannot store (such as VP9 or AV1), Azot automatically switches the container to **MKV**. Because MPEG-TS does not hold subtitle tracks, the download panel unchecks subtitles for **TS** unless **Keep subtitles external** is enabled.

### Audio-only containers

When you download audio without video, Azot picks the standard container for the audio codec automatically:

| Audio codec                                                               | Default container | Alternative (Pro) |
| ------------------------------------------------------------------------- | ----------------- | ----------------- |
| AAC, ALAC, AC-3, E-AC-3                                                   | M4A               | MKA               |
| MP3                                                                       | MP3               | MKA               |
| Opus                                                                      | Opus              | MKA               |
| Vorbis                                                                    | Ogg               | MKA               |
| FLAC                                                                      | FLAC              | MKA               |
| Other codecs, or multiple tracks no preferred container can hold together | MKA               |                   |

## Default track preferences

Configure which tracks Azot selects automatically in **Settings > Formats**:

- **Video quality:** `Best`, `4K` (2160p), `1440p`, `1080p`, `720p`, `576p`, `540p`, `480p`, `360p`, `240p`, or `144p`. Azot picks the closest match available. If your chosen quality is missing, Azot asks before falling back to the highest available quality unless you turn off **Quality fallback** in **Settings > General > Confirmations**.
- **Video codec:** `Any`, `AVC` (H.264), `HEVC` (H.265), `VP8`, `VP9`, `AV1`, or `VC-1`.
- **Audio codec:** `Any`, `AAC`, `AC-3`, `E-AC-3`, `Opus`, `Vorbis`, `MP3`, `DTS`, `ALAC`, or `FLAC`.
- **Audio language:** one or more preferred languages, in priority order.
- **Number of channels:** `Any`, `1.0`, `2.0`, `2.1`, `4.1`, `5.1`, `10.2`, or `13.1`.
- **Subtitle language:** one or more preferred subtitle languages, in priority order.

Preferences apply in order from most specific to least specific:

1. Tracks picked in the download panel (or CLI flags) for one download.
2. Per-extension overrides configured on an extension's page.
3. Global defaults in **Settings > Formats**.

## Metadata, thumbnails, and extra files

Control what Azot writes inside and next to your downloaded files:

- **Embed metadata** (**Settings > Processing > Output**, on by default): writes title, description, author, year, and source page link into the file tags.
- **Embed thumbnail** (**Settings > Processing > Output**, on by default): uses the video thumbnail or poster as cover art.
- **Save thumbnail** (**Settings > Files > Extra files**): saves the thumbnail or poster as a separate image next to the video.
- **Save metadata file** (**Settings > Files > Extra files**): saves title, description, chapters, and other details as `<name>.info.json` next to the file.

## Separate tracks and external subtitles (Pro)

In **Settings > Processing > Output**:

- **Skip muxing:** saves video, audio, and subtitle tracks as separate files instead of merging them into one container.
- **Keep subtitles external:** keeps video and audio merged, while saving subtitles as separate files beside the video.

## Custom processing modules (Pro)

Azot uses its built-in muxer and processors by default. If you install extensions that provide custom processing modules (such as FFmpeg, MKVToolNix, format converters, or packet transforms), Pro users can assign them in **Settings > Processing**:

- **Muxer:** choose which module merges tracks into the output container, and whether to fall back to the built-in muxer if the module does not support an input.
- **Processor:** choose a module for processing media.
- **Conversions:** assign a processor for specific format conversions (such as `ASS -> SRT`).
- **Packet transforms:** add and reorder packet transforms applied to tracks.

If your Pro access lapses, your saved processing selections stay stored and resume if you renew, while Azot uses built-in processing in the meantime.

## Folders and filename templates

Configure folders and naming in **Settings > Files**:

- **Save files to folder:** your default download directory.
- **A folder for each season or playlist:** places episodes inside `Show/Season 01` instead of a single show folder (on by default).
- **Overwrite existing files:** replaces a file with the same name instead of saving a numbered copy like `Title (1).mp4` (off by default).

### Filename templates (Pro)

Editing filename templates requires Azot Pro. The default templates are:

- **Regular videos:** `{title}.{year}.{quality}.{codec}.{audioType}.{tag}`
- **Episodes:** `{title}.S{s}E{e}.{episodeTitle}.{quality}.{codec}.{audioType}.{tag}`

Empty fields are dropped automatically along with their surrounding separators and empty brackets, so `{title} ({year})` becomes `Title` when no year is present.

| Field            | Meaning                        |
| ---------------- | ------------------------------ |
| `{title}`        | Video or show title            |
| `{year}`         | Release year                   |
| `{author}`       | Creator or channel name        |
| `{s}`            | Season number (episodes only)  |
| `{e}`            | Episode number (episodes only) |
| `{episodeTitle}` | Episode title (episodes only)  |
| `{quality}`      | Resolution, such as `1080p`    |
| `{codec}`        | Video codec                    |
| `{audioType}`    | Audio stream format            |
| `{format}`       | Source type                    |
| `{tag}`          | Service or extension tag       |

You can also choose the **Separator between words and template fields**: `dot` (default), `space`, `underscore`, or `dash`.
