#aomenc #av1-encoders #docker #python #cross-platform #docker-container #progress-bar #av1 #vmaf

av1an-core

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding [Core library]

6 releases (3 breaking)

0.4.1 Mar 13, 2023
0.4.0 Dec 19, 2022
0.3.1 Jan 17, 2022
0.2.0 Oct 31, 2021
0.1.0 Aug 30, 2021

#121 in Video

Download history 31/week @ 2023-10-21 31/week @ 2023-10-28 23/week @ 2023-11-04 37/week @ 2023-11-11 35/week @ 2023-11-18 54/week @ 2023-11-25 20/week @ 2023-12-02 21/week @ 2023-12-09 28/week @ 2023-12-16 39/week @ 2023-12-23 21/week @ 2023-12-30 26/week @ 2024-01-06 29/week @ 2024-01-13 28/week @ 2024-01-20 47/week @ 2024-01-27 25/week @ 2024-02-03

133 downloads per month
Used in 2 crates

GPL-3.0 license

200KB
6K SLoC

Av1an

av1an fully utilizing a 96-core CPU for video encoding

Discord server CI tests

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.

For help with av1an, please reach out to us on Discord or file a GitHub issue.

Features

  • Hyper-scalable video encoding
  • Target Quality mode, using VMAF control encoders rate control to achieve the desired video quality
  • VapourSynth script support
  • Cancel and resume encoding without loss of progress
  • Minimal and clean CLI
  • Docker images available
  • Cross-platform application written in Rust

Usage

For complete reference, refer to CLI or run av1an --help

Encode a video file with the default parameters:

av1an -i input.mkv

Or use a VapourSynth script and custom parameters:

av1an -i input.vpy -v "--cpu-used=3 --end-usage=q --cq-level=30 --threads=8" -w 10 --target-quality 95 -a "-c:a libopus -ac 2 -b:a 192k" -l my_log -o output.mkv

Supported encoders

At least one encoder is required to use Av1an. The following encoders are supported:

Note that Av1an requires the executable encoder. If you use a package manager to install encoders, check that the installation includes an executable encoder (e.g. vpxenc, SvtAv1EncApp) from the list above. Just installing the library (e.g. libvpx, libSvtAv1Enc) is not enough.

Installation

av1an can be installed from package managers, cargo.io, or compliled manually. There are also pre-built Docker images which include all dependencies and are frequently updated.

For Windows users, prebuilt binaries are also included in every release, and a nightly build of the current master branch is also available.

Package managers

Arch Linux & Manjaro: pacman -S av1an Cargo: cargo install av1an

Manual installation

Prerequisites:

Optional:

  • L-SMASH VapourSynth plugin for better chunking (recommended)
  • DGDecNV Vapoursynth plugin for very fast and accurate chunking, dgindexnv executable needs to be present in system path and an NVIDIA GPU with CUVID
  • ffms2 VapourSynth plugin for better chunking
  • bestsource Vapoursynth plugin for slow but accurate chunking
  • mkvmerge to use mkvmerge instead of FFmpeg for file concatenation
  • VMAF to calculate VMAF scores and to use target quality mode

VapourSynth plugins on Windows

If you want to install the L-SMASH or ffms2 plugins and are on Windows, then you have two installation options. The easiest way is using the included plugin script:

  1. Open your VapourSynth installation directory
  2. Open a command prompt or PowerShell window via Shift + Right click
  3. Run python3 vsrepo.py install lsmas ffms2

Support the developer

Bitcoin - 1GTRkvV4KdSaRyFDYTpZckPKQCoWbWkJV1

Dependencies

~24–41MB
~733K SLoC