Email us

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
MASTERMASTER lossless FFV1 · frame 72 of 144 · reference
losslessFFV1 · frame 72 of 144 · reference
MPEG-2MPEG-2 1.85 Mb/s 1.4 MB for 6 s · 38.9 dB
1.85 Mb/s1.4 MB for 6 s · 38.9 dB
H.264H.264 0.21 Mb/s 159 KB for 6 s · 40.2 dB
0.21 Mb/s159 KB for 6 s · 40.2 dB
HEVCHEVC 0.19 Mb/s 140 KB for 6 s · 48.2 dB
0.19 Mb/s140 KB for 6 s · 48.2 dB
AV1AV1 0.20 Mb/s 147 KB for 6 s · 50.6 dB
0.20 Mb/s147 KB for 6 s · 50.6 dB
ALL FOUR ASKED FOR 300 kb/s, 1080p24 · MPEG-2 COULDN'T GO BELOW 1.85 Mb/s AND IS STILL THE WORST · PSNR OVER ALL 144 FRAMES · x264 / x265 slow · SVT-AV1 preset 6
01

The box and what's in it

container ≠ codec
CONTAINER · e.g. film_v03.mov the box, the label, the sync VIDEO TRACKcodec: ProRes 422 HQ · 10-bit 4:2:2AUDIO TRACKcodec: PCM 24-bit 48 kHz (poster 05)TIMECODE01:00:00:00 · 24 fpsMETADATAcolour: Rec.709 · captions · chapters

Renaming 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.

ContainerFromUsually carries
MOVApple, 1991ProRes, H.264, HEVC, PCM audio and alpha. Most edit suites default to it.
MP4MPEG, 2001–03H.264, HEVC, AV1 and AAC. It's built on QuickTime's design and gets used for delivery everywhere.
MXFSMPTE, 2004DNxHD/HR, AVC-Intra and XDCAM. You'll see it in broadcast and on Avid.
MKVMatroska, 2002Pretty much anything, from FFV1 to VP9 and AV1, with as many audio and subtitle tracks as you like.
WebMGoogle, 2010VP8, VP9 or AV1 with Vorbis or Opus audio. Web video with no royalties.
AVIMicrosoft, 1992Old 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).
02

From gallop to AV1

a century and a half of moving pictures
film
television & tape
digital & discs
streaming
//
//
1880
1950
1970
1990
2000
2010
2020
1878The Horse in MotionEadweard Muybridge

He used 12 cameras to catch one gallop as a run of stills.

1888Roundhay Garden SceneLouis Le Prince · Leeds

It lasts about two seconds and it's the oldest film we still have.

1953NTSC colourRCA · FCC

Colour was bolted on to B&W at low detail. That's where chroma subsampling comes from.

1956VideotapeAmpex VRX-1000

For the first time TV could be recorded and shown again.

1974The DCTNasir Ahmed et al.

Nearly every codec on this poster uses this transform.

1982Rec. 601CCIR (ITU)

The standard for digital SD, and where 4:2:2 sampling was defined.

1988H.261ITU-T

The first digital video codec that really worked, built for video calls over ISDN.

1990Rec. 709ITU

HD's colour space, plus the gamma that most delivery still uses.

1991QuickTime / MOVApple

Video arrives on the desktop, and MOV ends up as the container for editing.

1993MPEG-1Moving Picture Experts Group

Made for Video CD. Its audio layer III went on to become the MP3 (poster 05).

1995MPEG-2 · DVMPEG · Sony, Panasonic et al.

Behind DVD and digital TV. DV put digital video into camcorders.

1999DivXhacked from Microsoft MPEG-4

People could fit a DVD on a CD-R, and MPEG-4 Part 2 went mainstream.

2002MatroskaSteve Lhomme et al.

An open container that'll take almost anything.

2003H.264 / AVCITU-T + MPEG (JVT)

Used by Blu-ray, YouTube, the iPhone and Zoom. It's still the safest bet for delivery.

2004DNxHD · MXFAvid · SMPTE

Avid's intra-frame editing codec, and the wrapper broadcast uses.

2005YouTubeHurley · Chen · Karim

You could upload anything and the platform re-encoded it, so the specs started coming from platforms.

2007Apple ProResFinal Cut Studio 2

A 10-bit intra-frame codec for editing. 4444 with alpha came along in 2009.

2010WebM · VP8Google, from On2

Google bought On2 and released web video with no royalties.

2013HEVC / H.265ITU-T + MPEG

Meant to need half the bits of H.264, but patent pools held it back.

2015AOMediaGoogle · Netflix · Amazon · Mozilla…

A group set up to build a successor with no royalties.

2018AV1Alliance for Open Media

No royalties, and as good as HEVC or better. It won the test above.

2020VVC / H.266ITU-T + MPEG

Halves HEVC's bits again on paper, but hardware has been slow to catch up.

the codecs you'll use mostdelivery codecedit codeccontainer / standardhistory
03

How a codec sees time

every frame of the H.264 encode · keyframe every 48 · log scale
1 KB10 KB100 KB0s1s2s3s4s5s6s
184 KBI-frame

Intra: 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.

5.5 KBP-frame

Predicted: what moved

It stores how things moved since the frame before, plus a small correction. 34× smaller than an I-frame here.

1.0 KBB-frame

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.

04

Colour gets half the pixels

chroma subsampling · J:a:b

4:4:4full colour

4:4:4 full 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 a

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

4:2:2 half across Pairs of pixels side by side share one colour sample. It's what ProRes 422, DNx and broadcast use, and it softens vertical

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

4:2:0 a quarter Four pixels share a single colour. Most H.264, HEVC and AV1 delivery works like this, on nearly every phone and stream. The

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.

05

Data rates, measured

the same 6 s clip · 1920×1080 · 24 fps
Edit & master codecs · Mb/s · storage per hour
ProRes 4444302 Mb/s · 136 GB/hProRes 422 HQ184 Mb/s · 83 GB/hDNxHR HQX176 Mb/s · 79 GB/hProRes 422121 Mb/s · 54 GB/hFFV1 (lossless)117 Mb/s · 52 GB/hDNxHR SQ116 Mb/s · 52 GB/hProRes 422 LT82 Mb/s · 37 GB/hProRes 422 Proxy30 Mb/s · 14 GB/h

FFmpeg'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.

Delivery codecs · same 300 kb/s target · log scale
MPEG-21.85 Mb/s · 0.83 GB/hH.2640.21 Mb/s · 0.09 GB/hHEVC0.19 Mb/s · 0.09 GB/hAV10.20 Mb/s · 0.09 GB/h
CodecPSNRVerdict
MPEG-238.9 dB6× the bitrate, still blocks
H.26440.2 dBplays everywhere, softest at this rate
HEVC48.2 dBbig step up; licensing is messy
AV150.6 dBbest, royalty-free, slowest to encode
06

Pick one

by the job, not by habit

Edit · camera originals

ProRes 422 HQ

On Avid or Windows, use DNxHR HQX instead. Both are 10-bit and intra-frame, so they scrub nicely.

VFX · graphics with alpha

ProRes 4444

If 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 Proxy

Small enough to cut on a laptop. Relink to the masters when it's time to finish.

Web & social delivery

H.264 MP4

Plays pretty much anywhere. If the platform accepts AV1 or HEVC, add those too, but check their spec first.

Loops on a site

MP4 + WebM

Muted 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 MXF

DPP AS-11 at 100 Mb/s. The broadcaster's delivery spec always wins over anything on a poster, this one included.

Archive

FFV1 MKV

It'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/s

Keep the bitrate high, burn in the timecode and use the same colour tags as the master.

07

Before you export

the boundary decides the codec
Set the boundary firstfrom article 01 · Subdivide
  1. 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.
  2. 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.
  3. Will anyone need alpha, or clean colour edges for keys and graphics? That means 4: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.
  5. 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.
  6. 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.

The top of the Video codecs poster.

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.