A tool to batch convert video files to the AV1 codec using FFmpeg. It auto-detects available hardware encoders, verifies output quality with VMAF, and manages the full encoding pipeline through a terminal UI or a local web UI.
Features
- Interactive TUI — Browse files, configure tracks, and monitor encoding progress in the terminal
- Two operating modes — Re-encode to AV1, or demux/remux to repackage and strip tracks without recompression
- Hardware acceleration — Automatically detects and uses NVIDIA NVENC, Intel QSV, or AMD AMF; the choice can be overridden manually in Settings
- Batch processing — Convert a single file, a folder, or an entire directory tree recursively
- Smart preset selection — Automatically picks encoding parameters based on resolution and HDR type
- Dolby Vision support — Keep Dolby Vision in the AV1 output (profile 10) or convert to HDR10; profile 5 sources are tone-mapped on the GPU when converting to HDR10. True HDR10 static metadata (mastering display, MaxCLL/MaxFALL) is written for SVT-AV1 encodes; hardware encoders get PQ color tags only
- Quality presets — Low, Medium, or High shifts CRF/CQ values across every resolution tier at once; Custom leaves each tier's values manually editable
- VMAF quality verification — Scores output quality after encoding (mean and minimum sampled frame, every 10th frame); deletes the source only when both meet the threshold (never for remuxes, disabled VMAF, tone-mapped DV profile 5, or when audio was transcoded to Opus, a selected subtitle was converted or left out, cover art or attachments are not carried into the output, or the source is not 4:2:0 at 10 bits or fewer)
- Track selection — Auto-selects audio and subtitle tracks by preferred language (ISO 639-1/639-2 and BCP-47 tags like
en-USare treated as aliases, e.g.en/eng); when nothing matches, audio falls back to the first track and subtitles to none unless "select all" fallback is enabled (the default) - Audio transcoding — Copy audio tracks untouched (the default) or convert any of them to Opus at the source's own channel layout; per-track in both the TUI and the web UI
- Disc ripping — Import titles straight from a DVD or Blu-ray through MakeMKV, ripping one title while the previous one encodes (see Disc Ripping)
- Daemon mode with web UI — Run headless and manage the queue from a browser (see Daemon Mode)
- Multi-language UI — TUI and web UI available in English (default), Italian, Spanish, French, German, and Chinese; selectable in Settings
- Configurable — All key settings adjustable through the built-in configuration screen, the web settings page, or
config.toml(see Configuration)
Prerequisites
ffmpeg and ffprobe must be on your PATH. (Ripping discs additionally needs MakeMKV — see Disc Ripping; nothing else depends on it.) FFmpeg 8.0 or newer is required for Dolby Vision passthrough ("Dolby Vision profile 10 support in AV1" landed in 8.0; the tool is developed and tested against 8.1). The version is not checked at startup.
Not every FFmpeg build includes every feature this tool uses. What you need depends on which features you use:
| FFmpeg capability | Needed for | Required? |
|---|---|---|
libsvtav1 |
Software AV1 encoding; Dolby Vision passthrough (AV1 profile 10) | Yes, unless you only use hardware encoders |
libvmaf |
VMAF quality verification (and source auto-deletion, which depends on it) | Optional |
libopus |
Converting audio tracks to Opus | Optional — only if you transcode audio |
libplacebo + a working Vulkan driver |
Dolby Vision profile 5 → HDR10 tone-mapping | Optional — only for DV profile 5 conversion |
av1_nvenc / av1_qsv / av1_amf |
Hardware encoding (needs a matching GPU driver: NVIDIA driver, Intel media driver + libvpl, or AMD AMF runtime) | Optional |
Check what your build supports:
ffmpeg -version # 8.0+ required for DV passthrough
ffmpeg -h encoder=libsvtav1 | grep dolbyvision # DV passthrough
ffmpeg -filters | grep libvmaf # VMAF verification
ffmpeg -encoders | grep libopus # Opus audio transcoding
ffmpeg -filters | grep libplacebo # DV profile 5 tone-mapping
vulkaninfo --summary # Vulkan driver (DV profile 5 only)
Platform notes:
- Arch Linux —
pacman -S ffmpegincludes all of the above. For DV profile 5 tone-mapping also install your GPU's Vulkan driver (vulkan-radeon,vulkan-intel, ornvidia-utils). - Debian/Ubuntu — the distro
ffmpegincludeslibsvtav1, but is often older than 8.0 (no DV passthrough — selecting "keep Dolby Vision" will fail);libvmafandlibplaceboalso vary by release. Verify with the commands above. - Fedora — use the FFmpeg from RPM Fusion; the freeworld build includes
libsvtav1andlibvmaf. - macOS —
brew install ffmpegincludeslibsvtav1andlibvmafbut notlibplacebo/Vulkan: everything works except DV profile 5 → HDR10 tone-mapping (keeping DV still works for profile 5). - Windows — the full builds from gyan.dev or BtbN (GPL variant) include everything.
Installation
Cargo
cargo install av1converter
Nix
The flake builds the binary only; ffmpeg and ffprobe still have to be on your PATH.
Run without installing:
nix run github:framicheli/av1converter
Or install into your Nix profile:
nix profile install github:framicheli/av1converter
Homebrew
macOS (Apple Silicon and Intel) and x86_64 Linux; installs the prebuilt release binary and pulls in ffmpeg.
brew tap framicheli/tap
brew install av1converter
The formula lives in framicheli/homebrew-tap and is updated automatically by the release workflow.
Arch Linux (AUR)
After the package is published to the AUR:
git clone https://aur.archlinux.org/av1converter.git
cd av1converter
makepkg -si
Debian, Ubuntu, and Fedora
Download the package for your release from the release page, then install it:
sudo apt install ./av1converter_VERSION_amd64.deb
sudo dnf install ./av1converter-VERSION-1.x86_64.rpm
On Fedora the RPM depends on the ffmpeg package from RPM Fusion; enable RPM Fusion first (see Platform notes above).
Release binary or source
Release archives are checksummed in SHA256SUMS. Extract the target-suffixed executable, rename it to av1converter (or av1converter.exe on Windows), and put it somewhere on your PATH.
To build from source:
git clone https://github.com/framicheli/av1converter.git
cd av1converter
cargo build --release
The compiled binary will be at target/release/av1converter.
Uninstallation
Stop a background daemon before removing the binary, and drop login autostart if you enabled it:
av1converter --stop
av1converter --uninstall-service
To also delete configuration and daemon state (queue, logs, access token), run:
av1converter --purge
It refuses while the daemon is running, lists the directories (and the login service, if installed) it will remove, and asks Are you sure? [y/N]; answering anything but yes changes nothing. The binary, encoded files, and a custom disc staging directory are left alone. Package uninstall does not delete user data, so --purge has to run while the binary is still installed.
Then use the same tool that installed it:
cargo uninstall av1converter
nix profile remove av1converter
brew uninstall av1converter
sudo pacman -R av1converter
sudo apt remove av1converter
sudo dnf remove av1converter
For a manual installation, remove the binary you placed on PATH.
Usage
./av1converter
With no arguments it starts the TUI. The options below control the web-UI daemon and maintenance tasks.
Usage: av1converter [OPTION]
(no option) start the interactive TUI
--start start the web-UI daemon in the background (Unix; must be enabled in Settings)
--start-foreground start the daemon in the foreground, logging to stdout
--restart stop the daemon gracefully, then start it again (Unix)
--stop stop the background daemon (Unix)
--status show whether the daemon is running
--install-service start the daemon at login (Linux/macOS)
--uninstall-service stop starting the daemon at login
--scan-discs list optical drives and the titles on the loaded disc
--purge delete configuration and daemon state after confirmation
--help show this help
--version show the version
Legacy aliases: --daemon is --start; --daemon-foreground is --start-foreground
-h and -V are short for --help and --version. An unknown option, or any extra argument, prints the usage and exits with status 2; a near-miss such as --stpo also gets a suggestion.
--scan-discs is a diagnostic: it prints what MakeMKV reported, so a disc that lists oddly can be seen rather than guessed at.
Workflow
- Home menu — Open a single file, a folder, or a folder recursively; rip a DVD or Blu-ray; or go to Configuration. Encodes and analysis use the saved configuration; edits on the Configuration screen take effect once saved
- Selection — Navigate with arrow keys. For a file,
Enterpicks it; for a folder,Enteropens it andSpaceselects the highlighted subfolder, or the open folder when the cursor is on..or a file. For a disc, pick the drive (skipped when there is only one), or open a disc folder or.isoimage, then toggle titles withSpace; extraction feeds the same steps below - File review — Confirm the list of files found (multiple files or a folder only; a single file skips this step)
- Analysis — Each file is probed for its streams, resolution and HDR format
- Track configuration — Select audio and subtitle tracks to include, and switch the per-file mode (encode or demux/remux) with
r. Encoding starts as soon as the first file is confirmed; the others can be configured while it runs, or all at once withA - Encoding and VMAF verification — Monitor per-file and overall progress;
aadds more files, folders or a disc while work runs, andEscasks before cancelling; when a rip, analysis and encode run together,Esccancels the rip,Athe analysis andEthe encode. When analysis or encoding finishes, the TUI moves on to Track configuration or Finish only from the Queue, Track configuration or Finish screens; any other screen stays open. Cancelling during analysis stops only the analysis; files already analysed stay queued. Mean and minimum sampled-frame VMAF scores are computed after each file; the source is deleted only ifdelete_source_on_successis on and both meet the threshold (encode mode only, never when audio was transcoded, Dolby Vision set to be kept was converted to HDR10 by a hardware encoder, a selected subtitle was converted or left out, cover art or attachments are not carried over, the source has extra video or data streams, is Dolby Vision profile 7 or is not 4:2:0 at 10 bits or fewer, or the job was cancelled) - Finish — View a summary of conversions, skipped files, and space saved;
Enterstarts a new conversion after a confirmation,Escreturns to the queue
Modes
Each file in the queue is processed in one of two modes. The mode is chosen per file on the track configuration screen and can be toggled with r.
Encode Mode (Encode Video → AV1)
The default mode for non-AV1 sources. The video stream is re-encoded to AV1 using the detected hardware or software encoder, with parameters chosen automatically from the resolution and HDR format (see Encoding Presets). Selected subtitle tracks are copied when the output container supports their format, otherwise compatible text subtitles are converted; audio tracks are copied unless you convert them to Opus (see Audio Transcoding). Output is written to the configured container (mkv, mp4 or webm) with the configured suffix (default _av1), and the result is verified with VMAF before the source can be deleted. MKV output keeps attachments such as embedded fonts and cover art. Subtitles the container cannot hold (bitmap subtitles in WebM, bitmap subtitles other than DVD in MP4) are left out, and WebM output converts any audio that is not already Opus or Vorbis to Opus, which also keeps the source from being auto-deleted.
Demux/Remux Mode (Remux Only → Copy Video)
A fast, lossless repackaging mode that copies the video, audio, and subtitle streams without recompression. Use it to drop unwanted audio/subtitle tracks or clean up files that are already AV1 — no quality is lost and the operation is near-instant since nothing is re-encoded. The output keeps the source file's container extension and uses the _remux suffix. Because no video encoding happens, VMAF verification is skipped.
Audio is the one exception: tracks you convert to Opus are re-encoded even here, so an already-AV1 file with an oversized lossless track can be shrunk without touching the video.
Files that are already encoded in AV1 default to demux/remux mode automatically; everything else defaults to encode mode.
Dolby Vision Handling
When a Dolby Vision source is queued for encoding with SVT-AV1, a dialog asks how to convert it (reopen it anytime with d). Hardware encoders cannot write the RPU, so with NVENC, QSV or AMF the output is HDR10 without asking:
- AV1 with Dolby Vision (profile 10) — the DV dynamic metadata (RPU) is carried into the AV1 stream. Requires the SVT-AV1 encoder; hardware encoders (NVENC/QSV/AMF) cannot write the RPU and always produce HDR10. For cross-compatible profiles (7/8) the HDR10 base layer is preserved, so players without DV support still get correct HDR10 playback.
- AV1 with true HDR10 — the DV layer is dropped and the HDR10 static metadata (mastering display, MaxCLL/MaxFALL) from the source is written into the AV1 stream when encoding with SVT-AV1. Hardware encoders still convert to PQ HDR10 color tags, but do not currently re-attach mastering/CLL SEI.
Profile 5 sources (IPT-PQ-c2, no HDR10-compatible base layer) are special: converting to HDR10 tone-maps the video on the GPU via libplacebo (requires Vulkan), while keeping DV produces output that only plays correctly on DV-capable players. HDR10 conversion is the recommended default for profile 5; keeping DV is recommended for profiles 7/8. VMAF verification is skipped for tone-mapped profile 5 output, since the pixels are intentionally changed. Sources that carry Dolby Vision side data without a readable dv_profile are rejected at analysis so a missing profile cannot skip tonemap and produce wrong colors.
HDR10+ dynamic metadata is not preserved; only static HDR10 mastering/CLL (on SVT-AV1) and PQ/HLG color tags are carried forward.
Audio Transcoding
Audio tracks are copied untouched by default. Any track can instead be converted to Opus, and the choice is per track: a file can keep its lossless track and shrink the commentary, or the other way round.
The channel count and order are preserved — uncommon layouts use independent Opus mapping instead of being silently downmixed — and the bitrate follows the channel count, at 64 kbps per channel by default:
| Source track | Opus output |
|---|---|
| Mono | 64 kbps |
| Stereo | 128 kbps |
| 5.1 | 384 kbps |
| 7.1 | 512 kbps |
Set the allowance per channel with opus_bitrate_per_channel (16–256 kbps) to shift the whole table at once. Tracks that are already Opus are left alone rather than re-encoded, unless you turn skip_already_opus off.
In the TUI, press o on a track in the track configuration screen (O applies it to every selected track); the row shows the resulting bitrate, e.g. [~] 0: eng (DTS 5.1) → OPUS 384k. In the web UI, a centered track configuration dialog opens automatically after analysis; the Tracks button reopens it for any queued job that has not started encoding yet. audio.default_mode sets what newly queued files start out as, which is what the daemon uses when nobody configures a job by hand.
Two things worth knowing:
- Sources are never auto-deleted when something besides the video changes.
delete_source_on_successrelies on a VMAF score, and VMAF compares video only. Jobs that transcode audio, lose Dolby Vision that was set to be kept (hardware encoders cannot write it and convert to HDR10), convert or leave out a selected subtitle (bitmap subtitles in MP4/WebM, ASS styling turned intomov_textor WebVTT), drop cover art or attachments (every container except MKV drops attachments; cover art is dropped everywhere), or drop streams that cannot be selected (a second video stream, data streams such as timecode or GPS tracks, a Dolby Vision profile 7 enhancement layer), or reduce the source's chroma or bit depth (everything is encoded as 4:2:0 10-bit, so 4:2:2, 4:4:4, RGB, alpha and 12-bit sources lose detail VMAF does not measure) keep the source and say why: in the queue and Finish screens of the TUI, on the queue row in the web UI, and in the log. - Every deletion decision is written down. With
delete_source_on_successon, each VMAF-verified job appends one JSON line to$XDG_DATA_HOME/av1converter/deletions.jsonl(default~/.local/share/av1converter/deletions.jsonl), holding the time (seconds since the Unix epoch), the source and output paths and sizes, the mean and minimum VMAF scores, the threshold, whether the source wasdeletedorkept, and the reason it was kept. The line is written and flushed before the source is removed: when the ledger cannot be written, the source is kept. - Object-based audio does not survive. Converting a TrueHD Atmos or DTS:X track to Opus keeps the channel bed and discards the object metadata. Copy those tracks if you want them intact.
Keyboard Controls
| Key | Where | Action |
|---|---|---|
↑ / k, ↓ / j |
Everywhere | Navigate |
Enter |
Everywhere | Select / Confirm; on the queue, configure the next job waiting for tracks, or open the summary once nothing is running |
a |
Disc titles | Select every title, or clear them |
Space |
Selection, disc titles, track config | Select the highlighted or open folder, toggle a disc title, toggle the highlighted track |
Esc |
Everywhere | Go back; on the queue, cancel the disc rip, or else the analysis, or else the encode (asks first) |
PgUp / PgDn |
Queue, finish, disc titles | Scroll the detail pane |
K |
Queue | Move the highlighted waiting job up |
a |
Queue | Add files, folders or a disc (opens Home; Esc on Home returns to the queue) |
t |
Queue | Open the tracks of the highlighted job, if it is not being encoded |
x / Delete |
Queue | Remove the highlighted waiting or finished job (a ripped title asks first) |
C |
Queue | Clear finished jobs while nothing runs |
A / E |
Queue | Cancel the analysis / the encode while other work also runs (asks first) |
Tab / Shift+Tab |
Track config | Cycle focus forward / backward: audio → subtitles → Continue |
← / h, → / l |
Track config | Previous / next file |
r |
Track config | Switch mode: encode ↔ demux/remux |
d |
Track config | Change Dolby Vision handling (DV sources) |
a / s |
Track config | Toggle all audio / subtitle tracks |
o |
Track config, audio focused | Toggle Opus for the highlighted audio track |
O |
Track config | Convert all se |