Codec Reference
Codec reference
A codec compresses the picture or the sound; a container carries it. Confusing the two causes most "my file will not play" problems, so each page here is explicit about which is which.
Video
H.264 (AVC)
1–8H.264 is the codec that made HD video ordinary. It is still the safest choice for delivery because essentially every device built in the last fifteen years can decode it in hardware.
Codec ReferenceH.265 (HEVC)
0.6–5HEVC halves the bitrate of H.264 at the same quality, which is why 4K streaming depends on it. The catch is licensing complexity and uneven support outside Apple devices and modern TVs.
Codec ReferenceAV1
0.4–3AV1 is the royalty-free successor to VP9 and the strongest competitor to HEVC: better compression than both, backed by every major browser vendor and streaming service.
Codec ReferenceVP9
0.8–4VP9 is Google's royalty-free codec and the default inside WebM. It compresses better than H.264 and is widely supported for playback, but encoding is slow and hardware support is uneven.
Codec Reference
Audio
AAC
96–256AAC is the default audio codec of MP4, phones and streaming: better than MP3 at the same bitrate, and supported by effectively every device that plays video.
Codec ReferenceOpus
32–128Opus is the best general-purpose audio codec available today and it is royalty-free. It handles speech and music, adapts its bitrate to the network, and beats MP3 and AAC at low bitrates.
Codec Reference