JA EN
LearnVideo Codecs
·★ MEMBER·7 min read

From H.264 to AV1 — What a Codec Generation Change Really Involves

H.264 has ruled video for two decades; AV1 arrived promising royalty-free efficiency. We unpack the transition along three axes — coding efficiency, compute cost, and licensing — and end with a practical framework for deciding which codec to ship, starting from zero background.

ModalityimageTaskcompression

Video cannot be sent raw

Start with a back-of-the-envelope calculation. Uncompressed Full HD video is 1920×1080 pixels, 3 bytes per pixel, 30 frames per second. Multiply it out and you get roughly 190 megabytes per second — a two-hour movie would exceed a terabyte. Even fiber connections cannot stream that. The only reason we watch video casually is that a video codec shrinks it by a factor of several hundred.

A codec is like a language. The sender (the encoder) and the receiver (the decoder) must share the same grammar before anything gets through. That is why an established language is so hard to displace — the grammar is baked into every phone and TV on the planet. A generation change is not just a technical upgrade; it means overturning that enormous web of installed compatibility.

The lineage: twenty years from H.264 to AV1

Each generation is designed to deliver the same quality at a bitrate several tens of percent below its predecessor. For a streaming service, bitrate savings translate directly into lower delivery cost — which is exactly what makes those percentage points worth betting a generation change on.

Every generation shares the same skeleton

It may be surprising, but H.264 and AV1 have the same basic structure — the four-stage pipeline covered in Video Compression Basics:

  1. Prediction: guess each block from nearby pixels (intra prediction) or from neighboring frames (inter prediction with motion compensation), and keep only the difference from reality
  2. Transform: decompose that difference into frequency components with a DCT-family transform
  3. Quantization: round away the components the human eye barely notices — this is where information is irreversibly discarded
  4. Entropy coding: assign shorter codes to likelier values and pack everything tight

A generation change means adding more tools and finer-grained choices at every stage of this skeleton. It is not a revolution; it is accumulated refinement.

One equation drives every decision

More tools require a criterion for choosing among them. The criterion shared by every modern codec is rate–distortion optimization (RDO).

J=D+λRJ = D + \lambda R
(1)

In plain words: pick whichever option minimizes the cost JJ, which balances how bad the picture looks against how many bits it takes. Here DD (distortion) is the error against the original image, RR (rate) is the number of bits the option costs, and λ\lambda (lambda) is the exchange rate that says how much quality one bit is worth. For every candidate — block split, prediction mode, transform type — the encoder estimates JJ and keeps the cheapest.

The fastest way to feel how quantization trades quality for bits is to watch it happen on a still image:

FIG 1Slide the quality factor and watch coefficients vanish in exchange for block artifacts. A video codec optimizes exactly this trade, block by block, frame by frame

Here are the headline additions relative to H.264.

What's behind this

§

Members-only from here

371 walkthroughs, 26 textbook chapters, 48 student units and 6 close readings — all included for $4.99/mo, with three new explainers every day. Cancel any time; access runs to the end of the period.

Already a member? Sign in to keep reading

Comments

Sign in to comment