Two hours of uncompressed 4K film is about 5.4 TB. Streaming delivers it at about 15 Mbps, roughly 400:1. Work through the bitrate math step by step.
To wrap up Chapter 1, let's calculate it ourselves. Knowing these numbers in your bones makes a big difference.
Resolution 3840 × 2160 = 8,294,400 pixels
Frame rate 24 fps
Color 4:4:4, 10 bit → 30 bits per pixel
Bits per second = 8,294,400 × 24 × 30
= 5,971,968,000 bit/s
≈ 5.97 Gbps (about 746 MB/s)
2-hour film = 5.97 Gbps × 7200 s
≈ 43,000 Gbit ≈ 5.4 TB5.4 TB. Downloading it over gigabit internet (1 Gbps) would take about 12 hours. Real-time playback is impossible. Yet Netflix delivers the same film at about 15 Mbps. That's a compression ratio of about 400:1.
These numbers are rough rules of thumb from practice. They vary greatly with content complexity.
Most of the compression happens in the lossy stage. Lossless compression gets 2–5× at best. In other words, the essence of codec engineering is 'how to throw things away with less pain.' All of Chapter 2 is the answer to that question.
Conversely, "what bitrate do I need to fit a video of this length into this file size?" can be calculated with the video size and bitrate calculator.
[t][y][x][c] array of numbers, and the unit is not the pixel but the sample.Chapter 2 covers the theory of 'how 400:1 is possible.' You'll learn entropy, rate-distortion theory, the Lagrangian λ, how to measure quality as a number (PSNR, SSIM, VMAF), and the lingua franca of codec performance, BD-rate.
What produces most of the compression ratio in video compression?
What is the approximate bitrate of uncompressed 3840×2160, 60 fps, 4:2:0, 10-bit video? (15 bits per pixel)