- Resources
- Video codecs explained: H.264, HEVC, VP9, AV1 and ProRes
Guide · Updated
Video codecs explained: H.264, HEVC, VP9, AV1 and ProRes
A codec is the method that compresses the picture; a container (MP4, MOV, MKV, WebM) is the file that holds the compressed video, audio and subtitles. H.264 plays almost everywhere, HEVC and AV1 make much smaller files but need newer devices, VP9 is the open codec of the web, and ProRes is a large editing format rather than one for sharing.
Codec or container: what the file extension tells you
Raw video is huge. A 1080p picture at 30 frames per second with 8-bit 4:2:0 colour is 1,920 × 1,080 pixels × 1.5 bytes × 8 bits × 30 frames, about 746 Mbps before any compression. A codec such as H.264 or AV1 shrinks that by throwing away detail the eye is unlikely to miss and by storing only what changes between frames.
The container is the wrapper: it stores one or more video, audio and subtitle streams plus timing and metadata. The extension names the container, not the codec, so two .mp4 files can hold different codecs, and one may play on a device while the other does not.
| Container | Video codecs | Audio codecs | Best for |
|---|---|---|---|
| MP4 (.mp4) | H.264, HEVC, AV1, VP9 | AAC, MP3, Opus | Sharing, phones, TVs, uploads |
| MOV (.mov) | H.264, HEVC, ProRes | AAC, PCM | Apple apps and editing |
| MKV (.mkv) | Almost any | Almost any | Keeping several audio or subtitle tracks |
| WebM (.webm) | VP8, VP9, AV1 | Opus, Vorbis | Web pages; open, royalty-free codecs only |
The five codecs at a glance
Efficiency means how small a file each codec can make at the same visual quality. The ITU said in January 2013 that HEVC would need only half the bit rate of H.264. In Meta's 2018 tests with the reference AV1 encoder, AV1 needed 34.0% less bitrate than libvpx-vp9 and 46.2% to 50.3% less than x264 (H.264). These are best cases from the codec designers and testers; real savings depend on the encoder and its speed setting.
Licensing matters to software makers more than to viewers. H.264 and HEVC are covered by patent pools, and MDN notes that more than one pool may apply. VP9 and AV1 are open and royalty-free; AV1 is published by the Alliance for Open Media under a royalty-free patent licence. ProRes is Apple's own codec family.
| Codec | Also called | Efficiency | Licensing | Typical use |
|---|---|---|---|---|
| H.264 | AVC, MPEG-4 Part 10 | Baseline for comparison | Patent pools; commercial use needs a licence | Sharing, streaming, uploads |
| HEVC | H.265 | Up to half the bitrate of H.264 (ITU) | Patent pools, more than one may apply | iPhone video, 4K and HDR |
| VP9 | — | AV1 is 34% smaller in Meta's tests | Open, royalty-free | Web video, WebM |
| AV1 | AOMedia Video 1 | 34% below VP9, 46–50% below H.264 (Meta, 2018) | Royalty-free (AOMedia patent licence) | Smallest files, modern streaming |
| ProRes | ProRes 422, 4444 | Not designed for small files | Apple's codec family | Editing and mastering |
Device, browser and platform support
H.264 is the only one of these codecs that every major browser and phone plays. HEVC is standard on Apple devices and decodes on Android 5.0 and later, but on Windows it relies on the HEVC Video Extensions from the Microsoft Store (MDN notes this for Edge). AV1 decoding is mandatory on Android from version 14, and Safari plays it only on Apple devices with a hardware AV1 decoder: M3 Macs and later, iPhone 15 Pro, and iPhone 16 and later.
For uploads, YouTube's recommended settings are H.264 (High Profile, progressive, 4:2:0) in an MP4 with the moov atom at the front, AAC-LC or Opus audio at 48 kHz. Most other platforms publish fewer exact details, so H.264 in MP4 is the safe default for uploads.
| Codec | Browsers | iPhone / iPad | Android | Windows | macOS |
|---|---|---|---|---|---|
| H.264 | All major browsers (Firefox uses the system's decoder) | Yes | Yes (decoder on all versions) | Yes | Yes |
| HEVC | Safari (High Sierra+); Chrome and Edge with hardware support; Firefox 134+ on Windows, 136+ on macOS | Yes; recorded by default since iOS 11 on iPhone 7 and later | Decoder from Android 5.0 | Needs HEVC Video Extensions | macOS High Sierra 10.13+ |
| VP9 | All major browsers (no alpha in Safari) | In Safari, per MDN | Decoder from Android 4.4 | In Chrome, Edge, Firefox | In Safari and other browsers |
| AV1 | Chrome 70+, Edge 121+, Firefox 67+; Safari 17+ with hardware decoder only | iPhone 15 Pro, iPhone 16 and later | Decoder from Android 10, mandatory from 14 | In Chrome, Edge, Firefox | M3 Macs and later in Safari |
| ProRes | Not a web codec | Apple apps | Not listed by Android | Editing apps | Apple apps (QuickTime, Final Cut Pro) |
Hardware encoding
A hardware encoder on the graphics chip is usually much faster than a software encoder and uses less power, while software encoders generally make smaller files at the same quality. Which codecs a chip can encode depends on its generation. NVIDIA added HEVC encoding with second-generation Maxwell cards and AV1 encoding with Ada Lovelace (RTX 40 series). Intel added AV1 encoding with Arc A-series graphics. Apple lists hardware H.264, HEVC and ProRes acceleration for M1 Pro and M1 Max; we did not find AV1 encoding in Apple's published specifications.
Recast encodes H.264 and HEVC only through the computer's hardware encoder (Apple VideoToolbox, Windows Media Foundation, NVIDIA NVENC, Intel QSV, AMD AMF or VAAPI on Linux). VP9 is encoded in software with libvpx and AV1 in software with SVT-AV1, so they work on any computer but take longer.
| Encoder | H.264 | HEVC | AV1 | Source |
|---|---|---|---|---|
| NVIDIA NVENC | Maxwell (1st gen) and later | Maxwell 2nd gen (GTX 950/960) and later | Ada Lovelace (RTX 40) and later | NVIDIA support matrix |
| Intel Quick Sync (QSV) | Yes; varies by generation | Yes; varies by generation | Arc A-series and later | Intel GPU optimization guide |
| AMD AMF | Yes; varies by GPU | Yes; varies by GPU | Hardware AV1 encoding documented in the AMF SDK | AMD AMF SDK |
| Apple VideoToolbox | Yes | Yes | Not in Apple's published specs | Apple tech specs |
Which codec should I use?
Pick by where the video is going, not by which codec is newest. If you do not know what the other person will play it on, H.264 in MP4 is still the answer.
| You want to | Use | Why |
|---|---|---|
| Send a video to anyone | H.264 + AAC in MP4 | Plays on every major browser, phone and computer |
| Upload to YouTube | H.264 in MP4 at YouTube's bitrates | YouTube's own recommended upload settings |
| Save space on recent devices | HEVC in MP4 or MOV | Up to half the size of H.264; native on Apple devices |
| Get the smallest files | AV1 in MP4 or WebM | Most efficient here; slower to encode, needs newer players |
| Put video on a web page | AV1 + Opus in WebM, with H.264 MP4 as a fallback | MDN's suggested pair for broad support |
| Keep several audio or subtitle tracks | MKV | Holds almost any codec and many tracks |
| Edit in Final Cut Pro or Premiere | ProRes in MOV (from your editing app) | Fast to scrub and re-encode; Recast reads ProRes but does not make it |
Do it with Recast
These tools run on your computer, so nothing is uploaded.
Frequently asked questions
Is HEVC better than H.264?
For file size, yes: the ITU says HEVC needs up to half the bitrate for the same quality. H.264 still plays on more devices and browsers, so it is the safer choice when you do not know the viewer's device.
Is AV1 better than HEVC?
AV1 usually makes smaller files and is royalty-free, but it is slower to encode and Apple devices only play it with an AV1 hardware decoder (M3 Macs, iPhone 15 Pro and later). HEVC has wider playback on Apple hardware.
What is the difference between MP4 and H.264?
MP4 is a container, the file that holds the streams. H.264 is a codec, the way the picture inside is compressed. An MP4 can also hold HEVC, AV1 or VP9.
Can Recast make ProRes files?
No. Recast reads ProRes and can convert it to H.264, HEVC, VP9 or AV1, but it does not encode ProRes. Use your editing app for ProRes exports.
Sources
Checked on 2 Dec 2026. Platforms change their limits; their own pages are the final word.
- MDN: Web video codec guide
- ITU press release: HEVC approved (25 January 2013)
- Meta Engineering: AV1 beats x264 and libvpx-vp9 (2018)
- Alliance for Open Media: our story
- caniuse: AV1 video format
- Android: supported media formats
- Apple: Using HEIF or HEVC media on Apple devices
- Apple: About Apple ProRes
- YouTube Help: Recommended upload encoding settings
- NVIDIA: Video encode and decode support matrix
- Intel: Media engine hardware (GPU optimization guide)
- AMD AMF: Video Encode AV1 API
- Apple: MacBook Pro (16-inch, 2021) technical specifications