AV1 Tile-Based Encoding: Multi-Threading Explained

Tile-based encoding is a structural video compression technique that divides individual video frames into independent rectangular grids, allowing multiple CPU or GPU cores to process distinct areas of a frame simultaneously. In the AV1 video codec, which requires significant computational power to achieve its industry-leading compression ratios, tile-based encoding is the primary mechanism for parallel processing. By breaking inter-block data dependencies across specified boundaries, this architecture enables scalable multi-threading during both encoding and decoding, substantially reducing processing times on modern multi-core hardware without a significant loss in compression efficiency.

What Is Tile-Based Encoding?

Traditional video encoders process frames in a continuous raster-scan order (from top-left to bottom-right). In this conventional approach, adjacent blocks depend heavily on spatial and statistical data from previously encoded blocks within the same frame to predict motion and compress pixels. These data dependencies create a strict sequential pipeline, making it difficult to distribute a single frame across multiple processing threads.

Tile-based encoding resolves this bottleneck by partitioning each frame into a grid of independent rectangular regions called tiles. Each tile contains an integer number of Superblocks (typically 64x64 or 128x128 pixels in AV1). Within a tile, intra-prediction and entropy coding operate entirely independently from neighboring tiles. Because a tile does not rely on pixel data or probability models from adjacent tiles in the same frame, each tile functions as an isolated sub-image during processing.

How Tiles Facilitate Multi-Threading in AV1

AV1 relies on tile partitioning to enable thread-level parallelism across encoding and decoding pipelines in several distinct ways:

Efficiency and Performance Trade-Offs

While tile-based encoding drastically improves encoding and decoding throughput, it introduces a slight trade-off in compression efficiency. Because prediction across tile boundaries is restricted, the encoder cannot exploit spatial redundancies that span across those borders, resulting in a marginal increase in bitrate (typically 1% to 3%) to achieve identical visual quality.

To mitigate visual artifacts, AV1 permits loop filtering—such as the deblocking filter, the Constrained Directional Enhancement Filter (CDEF), and Loop Restoration—to optionally operate across tile boundaries. This maintains visual continuity and eliminates visible grid seams while preserving the multi-threaded speed benefits of the core encoding process.