H.264 (AVC)
H.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.
At a glance
- Media type
- Video
- Family
- MPEG-4 AVC / ITU-T H.264
- Frame model
- Inter-frame (P/B frames)
- Hardware decoding
- Broad (phones, TVs, GPUs)
- Royalty status
- Licensed pool or per-unit fees
- Typical bitrate
- 1–8 Mbps at 720p–1080p
How it compresses
Each frame is predicted from previously decoded frames, then the residual is transformed and entropy-coded. Motion compensation, multiple reference frames and adaptive deblocking are what let it keep quality at a fraction of the raw bitrate. Encoding is fast enough on a laptop CPU for short clips, which is why browser-side tools use it.
Where it plays
Universal. Windows, macOS, Android, iOS, every smart TV, every browser, every social platform. Hardware decoding is present on phones, GPUs and TV chipsets, so a 1080p file plays without heating the device.
Licensing
Not free. H.264 sits in the MPEG-LA and Via LA patent pools, with fees on encoders and, historically, on some distribution models. For a website that encodes in the user's browser this is a grey area rather than a clear obligation, but it is not royalty-free and should not be described as such.
Common misconceptions
- H.264 is not a file format: an .mp4 or .mkv is a container, and either can carry H.264, HEVC or AV1.
- A file can be H.264 and still fail on old devices if its profile or level is too high (for example 10-bit 4:2:2).
- Renaming a HEVC .mov to .mp4 does not make it H.264, and Windows will still refuse to play it.