# Media Converter

**Audio > Media converter** converts audio and video files to other formats. It scales pictures up or down, changes codecs and containers, and uses the graphics card to encode video when it can.

![Media converter](images/window-converter.png)

## Converting files

1. Add files with **Add files**, **Add folder** (every media file in the folder and its sub-folders), or drag them onto the window.
2. Choose **Convert to** (see the list below), then the other settings.
3. Choose an **Output folder**, or leave it empty to save next to each source file. Audio X never overwrites a file; it adds *(1)* to the name if needed.
4. Press **Convert**. Each file shows its progress, the encoder used and the output name. **Cancel** stops the job and removes unfinished files.

Several files are converted at the same time (see [Hardware Acceleration](Hardware-Acceleration)). The summary line at the bottom gives the total time.

## Formats

| Group | Choices |
|---|---|
| Audio | WAV (16, 24 or 32-bit float), FLAC (16 or 24-bit), MP3, AAC (m4a), Ogg Vorbis, Opus |
| Video | MP4 H.264 + AAC, MP4 H.265 (HEVC) + AAC, MKV H.264 + AAC, MKV H.265 + AAC, MKV AV1 + Opus, WebM VP9 + Opus, MOV ProRes 422 HQ + PCM, MOV H.264 + AAC |
| Re-wrap | MP4 copy video + AAC: the picture is not re-encoded, so there is no loss and it is fast |

A video source converted to an audio format keeps only the audio (the first audio track).

## Up, down and across

* **Picture size** scales the picture up or down to 4K (2160p), 1440p, 1080p, 720p, 576p, 480p or 360p. The width follows, so the shape is kept.
* **Frame rate** keeps the source rate or sets 24, 25, 30, 50 or 60.
* **Quality** from *draft (small)* to *best (large)* sets the video quality for H.264, H.265, AV1 and VP9.
* **Sample rate**, **Channels**, **Audio bitrate** and **Bit depth** apply to the audio.
* Converting between codecs and containers (for example H.264 MP4 to H.265 MKV, or MOV to WebM) is just a choice of **Convert to**.

## Using the graphics card

Tick **Use the graphics card (GPU) where possible** (it appears for video formats). H.264, H.265 and AV1 are encoded on the GPU when this PC has a card that can do it; the line next to the tick shows what was found, and the **Encoder** column shows what each file used (for example `hevc_nvenc`). If the card cannot do a job, the CPU does it. **Hardware settings** opens [Hardware Acceleration](Hardware-Acceleration).

## FFmpeg

The converter uses FFmpeg, and **FFmpeg is included with Audio X** (the installer and the zip have it in the `tools` folder next to `AudioX.exe`), so nothing needs installing. Audio X looks for it in the path you set with **Set ffmpeg**, then the Audio X folder and its `tools` folder, then the system PATH, then the WinGet links folder. The included build is licensed under the GNU General Public License v3; see `tools\FFMPEG-INFO.txt`.

AAC (**m4a**) files can be converted to and from every format here, and can be added to the cue list, the soundboard and the radio as they are.
