Av1an

Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding.
Prerequisites
Since Av1an is just a tool that helps with parallelization, you’ll need to have the following installed for the entire thing to work:
- Rust
- Python (Required for Vapoursynth, currently needs 3.11, this may change in the future so consult from their website)
- FFmpeg
- MKVToolNix (mkvmerge)
- Vapoursynth
- L-SMASH (Vapoursynth plugin)
- FFMS2 (Vapoursynth plugin, optional)
- VMAF (For target VMAF, optional)
- Any of the supported encoders (aomenc, rav1e, SVT-AV1, vpxenc, x264, x265)
Installation
Microsoft Windows
GUI:
- Install Nmkoder which is a GUI front-end to av1an with all dependencies installed
- You’re done!
Pre-built binary, bleeding edge [Recommended]:
MacOS
To be filled.
Linux
The Easy Way:
Install rAV1ator, a GUI frontend for Av1an & the rust-based rav1e encoder.
The compiling route:
Prerequisites:
- Vapoursynth
- FFmpeg
- MKVToolNix (mkvmerge)
- Git
- Perl
- Nasm
- Rust (Use rustup on Debian/Ubuntu, as the package manager version is horribly outdated)
- Highway (libhwy)
git clone https://github.com/master-of-zen/Av1an.gitcd Av1anRUSTFLAGS="-C target-cpu=native" cargo build --releaseafter done, the binary will be located in target/release, copy it to somewhere like /usr/bin or /usr/local/bin
Docker
The following examples assume the file you want to encode is in your current working directory.
docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}docker build -t "av1an" .Run in the root directory of the repository. The dependencies will automatically be installed into the image, no manual installations necessary.
Troubleshooting
- mkvmerge “Open file error” on Linux - Run
ulimit -n 20000 - Gray screen flashing for a single frame in output - Create a lossless intermediary with x264
-qp 0