
Public media guide
AV1 vs HEVC vs H.264: In-Depth Codec Efficiency & Compression Benchmark
An engineering comparison of AV1, HEVC (H.265), and AVC (H.264). We analyze Bjontegaard-Delta rate (BD-rate) gains, VMAF visual fidelity scores, licensing royalties, and hardware decoding across consumer silicon.
Digital video delivery represents over 82% of all downstream internet bandwidth. At the center of this infrastructure are video compression standards—mathematical transforms designed to eliminate spatial, temporal, and psychoacoustic redundancies from raw pixel rasters.
For over two decades, Advanced Video Coding (AVC / H.264) served as the universal lingua franca of web video, delivering ubiquitous hardware playback across virtually every connected screen. However, as 4K, 8K, and high-frame-rate (HFR) streaming became mainstream, the bandwidth overhead of H.264 became unsustainable.
Today, digital video engineers primarily evaluate two successor generations: High Efficiency Video Coding (HEVC / H.265), standardized by the ITU-T and ISO/IEC, and AOMedia Video 1 (AV1), the open-source, royalty-free standard developed by the Alliance for Open Media (AOMedia). Understanding the architectural distinctions, rate-distortion curves, and silicon decoder roadmaps is essential for any modern media delivery pipeline.
In this engineering benchmark, we evaluate the algorithmic foundations of each standard, examine empirical BD-rate gains across standard 1080p and 4K sequences, analyze licensing implications, and provide production-ready FFmpeg encoding recipes.
1. Transform Block Partitioning & Prediction Architectures
The compression advantage of modern codecs originates in how they subdivide macroblocks and predict motion between adjacent video frames. While H.264 relies on fixed 16x16 macroblocks with sub-partitions down to 4x4, HEVC introduces the Coding Tree Unit (CTU) architecture supporting flexible quadtree decomposition up to 64x64 blocks. AV1 extends this further with a multi-type recursive block partitioning tree reaching 128x128 superblocks with 10 different partition shapes, including non-square 1:4 and 4:1 rectangular splits.
- H.264: Fixed 16x16 macroblock grids with limited directional intra-prediction modes (9 luma modes).
- HEVC: Dynamic Coding Tree Units (CTUs) up to 64x64 with 35 intra-prediction directions and asymmetric motion partitioning.
- AV1: 128x128 superblocks featuring 56 directional intra angles, recursive split-merge syntax, and wedge-based compound prediction.
- Result: AV1 isolates fine textures, sharp edges, and subtle gradients with significantly fewer residual transform bits.
2. In-Loop Filtering & Artifact Suppression
Transform coding inevitably produces blocking boundaries and ringing artifacts, particularly at aggressive quantizer levels. While H.264 employs a rudimentary deblocking filter, HEVC introduces Sample Adaptive Offset (SAO) to correct banding in flat regions. AV1 incorporates a sophisticated three-stage in-loop filtering pipeline: a standard deblocking filter, the Constrained Directional Enhancement Filter (CDEF) to eliminate edge ringing, and Loop Restoration based on Wiener filtering and self-guided restoration filters.
- CDEF operates along directional lines in 8x8 blocks to suppress ringing without smoothing legitimate edge details.
- Wiener restoration calculates mathematical Wiener coefficients to invert b