What a codec actually does
Raw video is enormous, so every file you export is compressed. The codec is the algorithm that compresses the picture when you export and decompresses it when someone presses play. MDN describes video codecs as tools that compress the video data and encode it into a format that can later be decoded and played back or edited. [2]
The codec is not the file type. An .mp4 or .mov file is a container that holds a video stream, one or more audio streams and metadata; the same MP4 can hold H.264, HEVC or AV1 video. [2] That is why two files both called video.mp4 can behave differently: one plays everywhere, the other shows a black screen on an older laptop.
All three codecs in this guide are lossy. They throw away detail the encoder judges you will not notice, and the amount thrown away is controlled mostly by bitrate. MDN notes that quality generally improves with higher bitrates and that higher bitrates inherently lead to larger files; motion and image noise also make a file harder to compress. [2] A static slide tutorial compresses far better than handheld footage of a crowded street at the same settings.
H.264, HEVC and AV1 side by side
H.264 (also called AVC) is the compatibility baseline. MDN lists it as supported in all versions of Chrome, Edge, Firefox, Opera and Safari, and notes that many platforms support hardware encoding and decoding. [2] YouTube recommends H.264 for uploads, with High Profile, closed GOP and 4:2:0 chroma subsampling. [1]
HEVC (H.265) is its successor. MDN says it can theoretically produce files half the size of AVC at comparable quality, but browser support is partial and depends on hardware, operating system and extensions. [2] Apple says iPhone 7 and later can record HEVC, and that HEVC gives better compression than H.264 while keeping the same visual quality. [3]
AV1 comes from the Alliance for Open Media, which describes it as an open codec designed for greater efficiency than previous codecs. [4] MDN describes AV1 as fully royalty-free and says it can compress as much as 50% more than AVC, but Safari support is limited to devices with a hardware decoder, such as M3 Macs and later, iPhone 15 Pro, and iPhone 16 and later. [2]
Encode speed is the trade-off nobody puts on a spec sheet. None of the official sources we used publish encode times, and the answer depends on whether your computer has a hardware encoder for that codec. OBS recommends the best available hardware encoder in the order AV1, HEVC, H.264 for recording, which tells you hardware support is what makes the newer codecs practical. [5] Test on your own machine: export the same 60-second clip in each codec at the same resolution and time it.
| H.264 (AVC) | HEVC (H.265) | AV1 | |
|---|---|---|---|
| Compression vs H.264 | Baseline | Theoretically about half the file size [2] | Up to about 50% better, per MDN [2] |
| Browser playback | All major browsers [2] | Partial; depends on hardware and OS [2] | All browsers, but Safari only with a hardware decoder [2] |
| Licensing (per MDN) | Patented; commercial use requires a license [2] | Patented; fees charged to developers [2] | Royalty-free [2] |
| Common containers | MP4, MOV, MKV [5] | MP4, MOV, MKV [5] | MP4, MKV, WebM [2][5] |
| Safe default for | Uploads and anything you send to strangers | Apple devices and your own storage | Known modern devices and web playback you control |
Where bitrate fits, with a 10-minute 1080p tutorial
File size is bitrate multiplied by duration. Codec choice changes how much quality you get per megabit, not the arithmetic. Divide megabits by 8 to get megabytes.
YouTube recommends 8 Mbps video for 1080p at 24, 25 or 30 fps, 12 Mbps at 48, 50 or 60 fps, and 384 kbps for stereo audio. [1] A 10-minute (600-second) tutorial at 8 Mbps is 8 x 600 = 4,800 megabits, or 600 MB of video, plus 384 kbps x 600 / 8 = 28.8 MB of audio: roughly 630 MB in total.
If HEVC really reaches similar quality at half the bitrate, as MDN suggests is theoretically possible, the same tutorial at 4 Mbps would be about 300 MB of video. [2] Treat that as a ceiling on savings, not a promise; screen recordings with lots of flat colour often compress well in any codec, so the gap can be smaller.
| 10-minute 1080p export | Video bitrate | Video size | With 384 kbps stereo audio |
|---|---|---|---|
| H.264 at YouTube 30 fps recommendation [1] | 8 Mbps | 600 MB | About 629 MB |
| H.264 at YouTube 60 fps recommendation [1] | 12 Mbps | 900 MB | About 929 MB |
| HEVC or AV1 at half the H.264 bitrate (theoretical) [2] | 4 Mbps | 300 MB | About 329 MB |
| High-bitrate H.264 master for archive (example) | 20 Mbps | 1.5 GB | About 1.53 GB |
Which codec to export for each job
YouTube: export H.264 in MP4 at the recommended bitrate. YouTube processes every upload (its recommendations describe converting colour spaces and ranges during processing), and those recommendations are written around H.264, MP4 with the moov atom at the front, and 48 kHz audio. [1] A more efficient codec can shorten the upload, but viewers watch YouTube processed versions, not your file. YouTube also notes that viewers need a browser or device that supports VP9 to watch new 4K uploads in 4K. [1]
Client delivery: H.264 MP4 unless the client has asked for something else. You cannot control what the client opens the file on, and H.264 is the codec MDN lists as playable in every major browser. [2] If the file is too big to send, lower the bitrate before you switch codecs.
Phone playback: Apple says HEVC plays on recent Apple devices, that older devices are more likely to handle it at 1080p or lower and 60 fps or lower, and that media sent by AirDrop, Messages or email may be converted to H.264 automatically when the receiving device does not support HEVC. [3] For phones you do not control, H.264 is still the safe choice.
Archive: keep the original camera and recorder files; they are the real master. If you also keep an edited master, a high-bitrate file in the codec your editor reopens reliably matters more than the smallest possible size. Filmora, for example, lists HEVC and AV1 MP4 export alongside H.264 and Apple ProRes in MOV for 8K. [6]
| Destination | Export | Why |
|---|---|---|
| YouTube upload | H.264, MP4, 8 Mbps at 1080p30 or 12 Mbps at 1080p60 | Matches YouTube recommended settings [1] |
| Client review copy | H.264, MP4 | Plays in all major browsers [2] |
| iPhone or iPad viewer you know | HEVC, MP4 or MOV | Supported on iPhone 7 and later [3] |
| Unknown phones or messaging apps | H.264, 1080p or lower | Broadest compatibility; Apple may convert HEVC anyway [3] |
| Archive of an edit | High-bitrate H.264 or HEVC, or ProRes if your editor exports it | Keeps quality for re-edits; size is secondary [6] |
Checklist before you hit export
Run this once per project type and save it as a preset in your editor, so you only think about codecs when the destination changes.
- Write down where the file is going: platform, client, phone or archive.
- Pick the codec from the table above; default to H.264 when unsure.
- Set bitrate from the destination guidance, for example 8 Mbps for 1080p30 on YouTube. [1]
- Keep the frame rate you recorded at; YouTube asks for the original frame rate. [1]
- Export a 30-second test and play it on the device the audience will use.
- Check the size against bitrate x seconds / 8 so you spot a wrong preset immediately.
- Keep the original recordings until the final file has been delivered and accepted.
Questions before you decide
Is HEVC better quality than H.264?
Not at the same bitrate by definition; it is more efficient. MDN says HEVC can theoretically produce files half the size of H.264 at similar quality, but playback support depends on hardware and operating system, so H.264 remains the safer choice for files you send to others.
Should I upload AV1 to YouTube?
YouTube recommended upload settings specify H.264 in MP4 at set bitrates, such as 8 Mbps for 1080p30. AV1 can make a smaller upload file, but following the H.264 recommendation is the documented path; test any other codec with a private upload first.
Why does my iPhone video turn into H.264 when I share it?
Apple says that when the receiving device does not support HEVC, media shared by AirDrop, Messages or email may be converted to H.264 automatically, and USB imports may convert unless Keep Originals is enabled.
How big will a 10-minute 1080p video be?
Multiply bitrate by seconds and divide by 8. At YouTube recommended 8 Mbps for 1080p30, 10 minutes is about 600 MB of video plus about 29 MB of stereo audio at 384 kbps.
Sources & verification
Product details and prices can change. Check the linked provider before buying.
- YouTube Help: YouTube recommended upload encoding settings Accessed 30 Oct 2026
- MDN Web Docs: Web video codec guide Accessed 30 Oct 2026
- Apple Support: Using HEIF or HEVC media on Apple devices Accessed 30 Oct 2026
- Alliance for Open Media: AV1 Video Codec Accessed 30 Oct 2026
- OBS Studio Knowledge Base: Audio/Video Formats Guide Accessed 30 Oct 2026
- Wondershare Filmora: Tech specs (Windows) Accessed 30 Oct 2026
Sources link directly to providers. Product buttons may use separately labeled affiliate links. Read our disclosure.
