Choosing an Encoder: H.264, HEVC, VP9 and AV1
Every encode starts with the same question: which codec. The answer is not in the codec’s spec sheet — it is in who will watch the file, where, and for how long it must live.
Compatibility first, or size first
Choosing an encoder is trading compatibility against efficiency. H.264 is the king of compatibility: a ten-year-old TV and the newest phone both play it, at the cost of the largest files per quality. HEVC saves 30-50 percent at equal quality but older devices and some web environments cannot decode it. VP9 lives mostly in web platforms; AV1 is the most efficient of the new generation but the slowest to encode, with playback support concentrated in recent devices and browsers.
One-line decision: sending to unknown devices — H.264, never wrong. Personal long-term archives where size matters — HEVC or AV1. Uploading to a platform — follow the platform’s own guidance, since its transcoder will flatten your choice anyway.
The matrix, plus two equal-weight variables
Map the scenarios: messaging a friend, H.264; family video for grandparents, H.264; a growing home library, HEVC (archives can take a small compatibility risk for the size); web assets headed for platform distribution, platform spec. Resolution and bitrate carry the same weight as the codec: savings from a newer codec can be eaten by a generous bitrate, and H.264 with sensible settings can match a badly-configured HEVC encode on size.
So before switching codecs, check whether bitrate and resolution are already right — many want-to-change-codec moments are actually bitrate-set-too-high moments.
Slow to encode, cheap to play
New-generation efficiency comes from more complex search and prediction, paid directly in encode time: software AV1 commonly takes several times longer than H.264. The asymmetry is usually worth it — encode once, play forever — but weigh the scenario: a one-off short clip is not worth half an hour of encoding; a daily-growing archive amortizes the cost across every future playback.
Hardware encoding cuts encode time by multiples at slightly softer equal-bitrate quality; size-critical archives still favor software encoding.
Two common misjudgments
One, HEVC has better picture: codecs do not add quality, they spend fewer bits on the same quality. An HEVC file decoded back matches H.264’s ceiling; only the size differs. Two, AV1 is universally playable: software decoding is heavy for older phones and some environments black-screen outright. In 2026, distribution content should still be H.264-first, with AV1 as the archive and platform option.
When unsure, run a 30-second test: plays on the target device, size on target, quality acceptable — then commit to the full encode.