A codec is the method used to compress video. The three you will meet most often are H.264, H.265 and AV1. Each newer one makes smaller files at the same quality, and each is supported by fewer devices and takes longer to encode.
The three at a glance
| H.264 (AVC) | H.265 (HEVC) | AV1 | |
|---|---|---|---|
| Released | 2003 | 2013 | 2018 |
| Data needed for similar quality | Baseline | Roughly 40% less | Roughly 50% less |
| Plays on | Almost everything | Most devices made since about 2017 | Recent phones, TVs and browsers |
| Encoding speed | Fast | Slower | Slowest without hardware support |
| Licence | Patent pool | Several patent pools | Royalty-free |
The savings are typical figures. The real number depends on the footage and the encoder settings.
H.264: the safe choice
H.264 plays on nearly every phone, computer, TV and browser in use, and every editing program exports it quickly. It is the format YouTube asks for in its upload recommendations. If you do not know where a file will be played, or you are sending it to a client, use H.264.
H.265: smaller files, especially for 4K
H.265, also called HEVC, was designed for 4K and HDR. It reaches similar quality with far less data, which is why phones and cameras use it for recording. The trade-offs are slower exports and patchier playback: older computers and some browsers cannot play it without extra software. It is a good choice for archiving your own footage and for 4K delivery to devices you know support it.
AV1: the efficient newcomer
AV1 was built by a group that includes Google, Netflix, Amazon and Apple, and it is free of royalties. It is the most efficient of the three, and YouTube and Netflix already use it to send video to viewers. Encoding it in software is slow, but recent graphics cards from Intel, NVIDIA and AMD can encode AV1 in hardware. Use it when your hardware supports it and the place you are sending the video accepts it.
Which should you use?
- Uploading to YouTube or social platforms: H.264. The platform re-encodes the file, so compatibility matters more than efficiency.
- Live streaming: H.264 is accepted everywhere. Use H.265 or AV1 only where the platform says it supports them.
- Archiving your own footage: H.265, to roughly halve the storage.
- Sending a file to someone else: H.264, unless you know what they will play it on.
What it means for bitrate
Because the newer codecs are more efficient, the same bitrate number means better quality. If 8 Mbps looks right in H.264, about 5 Mbps in H.265 should look similar. The video bitrate calculator adjusts its suggestions for each codec, and what video bitrate is explains the idea from the start.


