Video codecs.
A video file is two things: a container (the box: MOV, MP4, MKV, MXF) and the codecs inside it (the maths: ProRes, H.264, AV1). The codec is what sets the size and the quality, and it's why some files scrub smoothly in an edit and others crawl. To show the difference we took one 6-second camera move across the Controls Kit render and encoded it every way worth knowing, then measured each one.
- an I-frame vs a B-frame
- 176×
- MPEG-2 bytes vs HEVC
- 10×
- Mb/s · ProRes 4444
- 302
- the oldest surviving film
- 1888





The box and what's in it
container ≠ codecRenaming the file won't change a thing. If someone says “it's an MP4” they've told you about the box, but you still don't know if it's 8-bit H.264 for a phone or a 10-bit HEVC master. Ask for the codec, bit depth, chroma and frame rate every time.
| Container | From | Usually carries |
|---|---|---|
| MOV | Apple, 1991 | ProRes, H.264, HEVC, PCM audio and alpha. Most edit suites default to it. |
| MP4 | MPEG, 2001–03 | H.264, HEVC, AV1 and AAC. It's built on QuickTime's design and gets used for delivery everywhere. |
| MXF | SMPTE, 2004 | DNxHD/HR, AVC-Intra and XDCAM. You'll see it in broadcast and on Avid. |
| MKV | Matroska, 2002 | Pretty much anything, from FFV1 to VP9 and AV1, with as many audio and subtitle tracks as you like. |
| WebM | Google, 2010 | VP8, VP9 or AV1 with Vorbis or Opus audio. Web video with no royalties. |
| AVI | Microsoft, 1992 | Old now, and it struggles with modern codecs and timecode. Best avoided. |
| Image sequence | — | EXR, PNG or DPX, with one file for every frame and no codec at all. It's what VFX and renders use (poster 03). |
From gallop to AV1
a century and a half of moving picturesHe used 12 cameras to catch one gallop as a run of stills.
It lasts about two seconds and it's the oldest film we still have.
Colour was bolted on to B&W at low detail. That's where chroma subsampling comes from.
For the first time TV could be recorded and shown again.
Nearly every codec on this poster uses this transform.
The standard for digital SD, and where 4:2:2 sampling was defined.
The first digital video codec that really worked, built for video calls over ISDN.
HD's colour space, plus the gamma that most delivery still uses.
Video arrives on the desktop, and MOV ends up as the container for editing.
Made for Video CD. Its audio layer III went on to become the MP3 (poster 05).
Behind DVD and digital TV. DV put digital video into camcorders.
People could fit a DVD on a CD-R, and MPEG-4 Part 2 went mainstream.
An open container that'll take almost anything.
Used by Blu-ray, YouTube, the iPhone and Zoom. It's still the safest bet for delivery.
Avid's intra-frame editing codec, and the wrapper broadcast uses.
You could upload anything and the platform re-encoded it, so the specs started coming from platforms.
A 10-bit intra-frame codec for editing. 4444 with alpha came along in 2009.
Google bought On2 and released web video with no royalties.
Meant to need half the bits of H.264, but patent pools held it back.
A group set up to build a successor with no royalties.
No royalties, and as good as HEVC or better. It won the test above.
Halves HEVC's bits again on paper, but hardware has been slow to catch up.
How a codec sees time
every frame of the H.264 encode · keyframe every 48 · log scaleIntra: a whole picture
A still image compressed a lot like a JPEG. Every edit, seek and loop has to start on one, and this clip has one every 2 seconds.
Predicted: what moved
It stores how things moved since the frame before, plus a small correction. 34× smaller than an I-frame here.
Bi-directional: both sides
It borrows from the frames either side, which is why it's tiny (176× under an I-frame) but must be decoded out of order.
Long-GOP codecs (H.264, HEVC, AV1) keep files small, but they're hard work to scrub because the decoder has to rebuild each frame from the last I-frame. Intra-frame codecs like ProRes and DNx turn every frame into an I-frame. You pay for it in bytes, often many times over, but the edit stays smooth.
Colour gets half the pixels
chroma subsampling · J:a:b4:4:4full colour

Each pixel keeps its own colour. You get it in ProRes 4444, EXR and UI screen recordings, and you need it for clean keys and red-on-blue graphics.
4:2:2half across

Pairs of pixels side by side share one colour sample. It's what ProRes 422, DNx and broadcast use, and it softens vertical edges a little.
4:2:0a quarter

Four pixels share a single colour. Most H.264, HEVC and AV1 delivery works like this, on nearly every phone and stream. The purple bleed is colour being averaged over a 2×2 block.
Brightness (luma, Y) always stays at full resolution because our eyes pick up detail in brightness far better than in colour. NTSC was already using the same trick back in 1953. The crops here are 100×60 px of a red and blue test card, blown up 5× with no smoothing.
Data rates, measured
the same 6 s clip · 1920×1080 · 24 fpsFFmpeg's prores_ks and dnxhd encoders. Apple's published ProRes targets are for 29.97 fps (Proxy 45, LT 102, 422 147, HQ 220, 4444 330 Mb/s), so at 24p you'll land at roughly 80% of those. FFV1 is properly lossless, and it only comes in at 116 Mb/s here because the clip is clean CG with no grain.
| Codec | PSNR | Verdict |
|---|---|---|
| MPEG-2 | 38.9 dB | 6× the bitrate, still blocks |
| H.264 | 40.2 dB | plays everywhere, softest at this rate |
| HEVC | 48.2 dB | big step up; licensing is messy |
| AV1 | 50.6 dB | best, royalty-free, slowest to encode |
Pick one
by the job, not by habitEdit · camera originals
ProRes 422 HQOn Avid or Windows, use DNxHR HQX instead. Both are 10-bit and intra-frame, so they scrub nicely.
VFX · graphics with alpha
ProRes 4444If it's going into comp, an EXR sequence works too. You keep full chroma and a proper alpha, so keys come out without fringes.
Offline · remote review
ProRes ProxySmall enough to cut on a laptop. Relink to the masters when it's time to finish.
Web & social delivery
H.264 MP4Plays pretty much anywhere. If the platform accepts AV1 or HEVC, add those too, but check their spec first.
Loops on a site
MP4 + WebMMuted and on autoplay, with a poster frame. Don't use a GIF, it'll be anywhere from 10 to 100× bigger.
UK HD broadcast
AVC-Intra MXFDPP AS-11 at 100 Mb/s. The broadcaster's delivery spec always wins over anything on a poster, this one included.
Archive
FFV1 MKVIt's lossless and open, and national archives use it. Keeping the ProRes 4444 master is fine too.
Proof to a client
H.264 8–20 Mb/sKeep the bitrate high, burn in the timecode and use the same colour tags as the master.
Before you export
the boundary decides the codec- Is this the final step, or is someone going to edit, grade or comp it after you? If so, go intra-frame and 10-bit.
- Where's it going to play? An edit suite and a social feed want very different things, and so do broadcast and a web page with a byte budget.
- Will anyone need alpha, or clean colour edges for keys and graphics? That means 4:4:4.
- Which frame rate and colour space was it shot and graded in? Check before you export so you don't convert it by mistake.
- What's going to decode it, a phone, a smart TV or an Avid? Whether you can use HEVC or AV1 comes down to hardware support.
- Once you count every version, how much storage per hour can the project actually afford?
Sources and method
Measured: a 6 s, 1920×1080, 24 fps camera move across products/Subdividers_Controls_Kit/hero/CROP_CLASSIC.png, mastered losslessly (FFV1, 4:2:0).
Then FFmpeg 8 with mpeg2video, libx264 (slow), libx265 (slow), libsvtav1 (preset 6) at 300 kb/s, plus prores_ks profiles 0–4 and dnxhd (dnxhr_sq, dnxhr_hqx).
PSNR is averaged over all frames, aligned by frame number. GOP: libx264 CRF 20, keyint 48, 3 B-frames, frame sizes from ffprobe. Chroma: a test card round-tripped through yuv444p/422p/420p. Script: labs/video_lab.py.
History: Muybridge 1878. Le Prince 1888. FCC NTSC colour standard 1953. Ampex 1956. Ahmed et al. 1974. CCIR 601 (1982). ITU-T H.261 (1988). ITU-R BT.709 (1990). QuickTime 1.0 (1991). Video for Windows (1992). ISO/IEC 11172 (1993) and 13818 (1995). Matroska (2002). H.264 (2003). SMPTE 377M (2004). ProRes (2007). WebM (2010). H.265 (2013). AOMedia (2015). AV1 1.0 (2018). H.266 (2020). Apple ProRes white paper.

Take the poster with you
Everything on this page as one tall poster, made to print or keep on a second screen. Free to use for your own learning and teaching.
Download the poster (PDF, 1.6 MB)
All nine posters are on the Academy page. They’re the start of The Subdividers Handbook, a printed boxset of our notes that we’re working on.