Video codecs · 3 min read
H.264, H.265 and AV1: understanding video codecs
Compare the roles of H.264, H.265 and AV1, with clear guidance on compatibility, encoding effort and keeping original recordings.
By VidFetch · Updated · Published
Download a TikTok video as MP4
H.264, H.265 and AV1 are video compression formats. They describe how pictures are encoded, rather than the name of the file containing them. H.264 is a common compatibility choice. H.265 and AV1 can be useful when supported by the destination and the encoding workflow. There is no universal percentage by which one will shrink every video.
Separate codec from container
An MP4 file can contain different video codecs. A player that opens MP4 containers may still lack support for the particular track inside. The audio track has its own codec and requirements too.
When diagnosing playback, identify the complete combination. That is why MP4 versus WebM is a different question from H.264 versus AV1. An extension is useful information, but it is not a complete compatibility test.
H.264 as a practical baseline
H.264, also called AVC, is widely used for delivery and recording. Many devices can decode common H.264 profiles efficiently. Unusual profiles, high levels or very demanding frame sizes can still exceed a device's capabilities.
If you need a file to work on varied devices, an MP4 containing a compatible H.264 video track and AAC audio can be a reasonable starting point. Try the actual file on the target device instead of assuming any H.264 label will work.
Where H.265 and AV1 fit
H.265, also called HEVC, and AV1 are newer compression designs. They may deliver useful compression savings for a given visual result, but the comparison depends on the encoder, settings and content. A fast encode and a carefully tuned encode can produce different tradeoffs even with the same codec.
Check software and hardware decoder support. Efficient hardware decoding can matter for phone battery use and smooth high-resolution playback. A device that relies on software decoding may struggle with a file another device plays easily.
Encoding effort is a separate cost
Producing a compressed file can require substantial computation. A format that is economical to transmit is not necessarily quick to encode. Your hardware and encoder implementation determine the practical cost.
For one delivery copy, waiting longer may be acceptable. For a collection, test a representative clip and estimate the time before starting. Keep the original, and avoid converting already compressed copies repeatedly. The size-reduction guide explains a cautious local workflow.
Choosing from a source's formats
VidFetch exposes formats an accessible platform returns; it does not guarantee a choice of all three codecs or offer arbitrary video re-encoding. A smaller available rendition may fit your device better, but only if its codecs are supported.
When you are unsure, consult the smartphone guide and test a short authorized clip. Select for the destination first, then compare size and appearance.
Common question
Is AV1 always better quality than H.264?
No. Codec capability does not guarantee the quality of a particular file. Source detail, bitrate and encoder decisions determine what you actually see.