Side Read: How Video Compression Works, in Plain Terms

Start with the raw numbers

A 1080p frame has 1920 × 1080 ≈ 2 million pixels. At a full 3 bytes per pixel (red, green, blue) that's about 6 MB per frame. Video skips part of that for free. It keeps brightness for every pixel but color at a quarter of the resolution (called 4:2:0), because your eyes notice brightness detail far more than color detail. That works out to about 1.5 bytes per pixel, so roughly 3 MB per raw frame. At 30 fps, that's about 90 MB every second. No home connection can carry that.

Step 1: shrink each picture on its own

The encoder cuts the frame into blocks (for example 16×16) and describes each block as a mix of simple patterns: a flat color, a gradual fade, fine stripes. It keeps the strong patterns and drops the weak, fine-detail ones. This step is called quantization.

It's not literally "these 1,000 pixels are the same color." It's closer to "this block is mostly blue with a slight fade, and the tiny details are gone." The less detail you keep, the smaller the file. When too little survives, you see blocking and smearing.

Step 2: don't re-send what didn't change (the big win)

Most frames look almost exactly like the one before. So the encoder uses three kinds of frames:

Frame typeWhat it storesTypical size at 1080p
I-frame (keyframe)A full picture, compressed on its own like a JPEG~100–200 KB
P-frame"Take the previous frame, move these blocks here, plus small fixes"~10–30 KB
B-frameSame idea, but can borrow from the frame before and the frame aftera few KB

How a P-frame is built, block by block:

  1. Search the previous frame for the best-matching block.
  2. Store a motion vector, for example "this block came from 4 pixels up and 2 to the left."
  3. Store the residual: only the small difference between that prediction and the real block.

A still shot of someone talking is mostly "same as before, no change," which costs almost nothing. A handheld chase scene changes everywhere, so the prediction misses and the residuals get big. That's the same cheap-vs-expensive split the Per-title encoding part’s intuition box describes.

Putting numbers on it

Per secondPer frame (avg)
Raw 1080p (4:2:0, 30 fps)~90 MB/s~3 MB
Typical 1080p stream at 5 Mbps~0.6 MB/s~20 KB

That's about 150× smaller, and most of it comes from P- and B-frames, not from compressing single pictures. Those ~20 KB per frame are "what survives compression." That's the bitrate.

Why resolution and bitrate are separate numbers

Resolution is the canvas size: how many pixels there are. Bitrate is how much paint you get to fill them. A 4K stream at 3 Mbps can look worse than 1080p at 8 Mbps, because so little data survives that the extra pixels are mostly smeared guesses. Per-title encoding (see Per-title encoding) exists because different content needs very different amounts of paint to look good.