Librav1e AV1 Encoder Rate Control Modes

This article provides an overview of the specific rate control methods supported by the librav1e AV1 video encoder. It explains how each mode manages video quality and file size, detailing Constant Quantizer (CQ), Target Bitrate, and multi-pass encoding configurations so you can select the optimal rate control strategy for your video compression pipeline.

Librav1e is a modern, fast AV1 encoder written in Rust. To balance output quality, file size, and encoding speed, it offers two primary native rate control methods, which can be deployed in either single-pass or multi-pass configurations.

1. Constant Quantizer (CQ) / Constant Quality

The Constant Quantizer mode is the default and most efficient one-pass encoding method in librav1e. Instead of targeting a specific file size or bitrate, it maintains a consistent level of visual quality throughout the video.

2. Target Bitrate (Variable Bitrate / VBR)

When you have strict storage limitations or bandwidth constraints, the Target Bitrate mode forces librav1e to aim for a specific average bitrate.

3. One-Pass vs. Two-Pass Encoding

Both rate control methods can be optimized depending on how many passes the encoder makes over the video file: