Skip to content

Av1an

Av1an with 96 workers

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:

Installation

Microsoft Windows

GUI:

  1. Install Nmkoder which is a GUI front-end to av1an with all dependencies installed
  2. You’re done!

Pre-built binary, bleeding edge [Recommended]:

  • Download Av1an from here, select “Latest” and click the “Assets” dropdown. Put it in PATH

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)
Terminal window
git clone https://github.com/master-of-zen/Av1an.git
cd Av1an
RUSTFLAGS="-C target-cpu=native" cargo build --release

after 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.

Terminal window
docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}

Troubleshooting

  1. mkvmerge “Open file error” on Linux - Run ulimit -n 20000
  2. Gray screen flashing for a single frame in output - Create a lossless intermediary with x264 -qp 0