Skip to content

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.

ContainerVideo codecsAudio codecsBest for
MP4 (.mp4)H.264, HEVC, AV1, VP9AAC, MP3, OpusSharing, phones, TVs, uploads
MOV (.mov)H.264, HEVC, ProResAAC, PCMApple apps and editing
MKV (.mkv)Almost anyAlmost anyKeeping several audio or subtitle tracks
WebM (.webm)VP8, VP9, AV1Opus, VorbisWeb pages; open, royalty-free codecs only
Common containers and the codecs they usually carry

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.

CodecAlso calledEfficiencyLicensingTypical use
H.264AVC, MPEG-4 Part 10Baseline for comparisonPatent pools; commercial use needs a licenceSharing, streaming, uploads
HEVCH.265Up to half the bitrate of H.264 (ITU)Patent pools, more than one may applyiPhone video, 4K and HDR
VP9—AV1 is 34% smaller in Meta's testsOpen, royalty-freeWeb video, WebM
AV1AOMedia Video 134% below VP9, 46–50% below H.264 (Meta, 2018)Royalty-free (AOMedia patent licence)Smallest files, modern streaming
ProResProRes 422, 4444Not designed for small filesApple's codec familyEditing and mastering
H.264, HEVC, VP9, AV1 and ProRes compared

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.

CodecBrowsersiPhone / iPadAndroidWindowsmacOS
H.264All major browsers (Firefox uses the system's decoder)YesYes (decoder on all versions)YesYes
HEVCSafari (High Sierra+); Chrome and Edge with hardware support; Firefox 134+ on Windows, 136+ on macOSYes; recorded by default since iOS 11 on iPhone 7 and laterDecoder from Android 5.0Needs HEVC Video ExtensionsmacOS High Sierra 10.13+
VP9All major browsers (no alpha in Safari)In Safari, per MDNDecoder from Android 4.4In Chrome, Edge, FirefoxIn Safari and other browsers
AV1Chrome 70+, Edge 121+, Firefox 67+; Safari 17+ with hardware decoder onlyiPhone 15 Pro, iPhone 16 and laterDecoder from Android 10, mandatory from 14In Chrome, Edge, FirefoxM3 Macs and later in Safari
ProResNot a web codecApple appsNot listed by AndroidEditing appsApple apps (QuickTime, Final Cut Pro)
Where each codec plays (browser versions from MDN and caniuse)

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.

EncoderH.264HEVCAV1Source
NVIDIA NVENCMaxwell (1st gen) and laterMaxwell 2nd gen (GTX 950/960) and laterAda Lovelace (RTX 40) and laterNVIDIA support matrix
Intel Quick Sync (QSV)Yes; varies by generationYes; varies by generationArc A-series and laterIntel GPU optimization guide
AMD AMFYes; varies by GPUYes; varies by GPUHardware AV1 encoding documented in the AMF SDKAMD AMF SDK
Apple VideoToolboxYesYesNot in Apple's published specsApple tech specs
Hardware video encoders by vendor

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 toUseWhy
Send a video to anyoneH.264 + AAC in MP4Plays on every major browser, phone and computer
Upload to YouTubeH.264 in MP4 at YouTube's bitratesYouTube's own recommended upload settings
Save space on recent devicesHEVC in MP4 or MOVUp to half the size of H.264; native on Apple devices
Get the smallest filesAV1 in MP4 or WebMMost efficient here; slower to encode, needs newer players
Put video on a web pageAV1 + Opus in WebM, with H.264 MP4 as a fallbackMDN's suggested pair for broad support
Keep several audio or subtitle tracksMKVHolds almost any codec and many tracks
Edit in Final Cut Pro or PremiereProRes in MOV (from your editing app)Fast to scrub and re-encode; Recast reads ProRes but does not make it
Recommended codec and container by situation

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.

More guides

Try every tool free for 3 days

Every tool is in every plan. Cancel before the 3 days are up and you pay nothing.