Codec Showdown: From H.264 to AV1, from MP3 to Opus

At the same 10 Mbps, how much better can AV1 look than H.264? Newer codecs keep getting stronger, yet the compatibility crown still belongs to H.264 — so which one should your video actually use?

A video file at the same resolution, same duration, and same bitrate can look dramatically different depending on which codec compressed it. A 10 Mbps H.264 video might look decent, while a 10 Mbps H.265 video could be nearly pristine. Understanding the gap between codecs isn't just a technical curiosity—it directly affects how large your files are, how fast they upload, and whether your audience can play them smoothly.

This article covers both video and audio codecs, comparing them across four dimensions: compression efficiency, encoding speed, hardware support, and patent licensing.

Video Codec Overview

Relative file size at equal quality: H.264 is 100%, AV1 needs roughly half

Four Generations of Mainstream Codecs

CodecYearStandards BodyLicensingTypical Bitrate Savings (vs H.264)
H.264 / AVC2003MPEG / ITUPatent pool licensedBaseline
H.265 / HEVC2013MPEG / ITUPatent pool licensed (complex)~30-50%
VP92013GoogleRoyalty-free~30-40%
AV12018Alliance for Open MediaRoyalty-free~50-60%

Note: Bitrate savings figures come from industry tests (Netflix, Google, Mozilla, and others). Actual results vary by content type (animation vs. live-action vs. screen content) and encoder settings. Generally, the more complex the content, the greater the advantage of efficient codecs.

Compression Efficiency (Bitrate Required for Equivalent Quality)

The following data is based on public test results (Netflix, Streaming Learning Center, etc.) measured by SSIM / VMAF:

Target QualityH.264H.265VP9AV1
1080p "Good"5-8 Mbps3-5 Mbps3-5 Mbps2-3 Mbps
1080p "Excellent"10-15 Mbps6-10 Mbps6-9 Mbps4-6 Mbps
4K "Good"20-30 Mbps12-20 Mbps12-18 Mbps8-12 Mbps
4K "Excellent"40-60 Mbps20-35 Mbps—15-25 Mbps

In real streaming deployments, Netflix reports H.265 saves about 35-50% bitrate over H.264, and AV1 saves an additional 20-30% over H.265 (depending on content and encoding configuration).

Encoding Speed Trade-Off

Higher compression efficiency comes at a cost—encoding time. AV1 saves the most bitrate, but it's by far the slowest:

CodecEncoding Speed (relative to H.264 fast)Use Case Limitations
H.264 (fast/veryfast)1× (baseline)Live streaming, hardware encoding, quick export
H.264 (slow/veryslow)~0.1-0.2×High-quality compression, archiving
H.265 (medium)~0.2-0.3×General compression, software or hardware
H.265 (slow)~0.05-0.1×High-quality compression
VP9~0.02-0.1×Slow; suited for offline batch encoding
AV1 (CPU)~0.001-0.005×Extremely slow—hundreds of times slower than H.264
AV1 (hardware encode)~0.5-1×Recent GPUs added AV1 hardware encoding, reaching real-time speeds

AV1 software encoding (e.g., libaom) is very slow—a 10-minute 4K video can take hours or even a day. Hardware AV1 encoding (NVIDIA RTX 40-series, Intel Arc, Apple M3, etc.) only became practical after 2024, though its compression efficiency is slightly below a well-tuned software encode.

Hardware Decode Support

Hardware decoding determines whether your audience can play the video smoothly—without it, 4K playback stutters heavily or drains battery rapidly.

CodecHardware Decode Support
H.264Any device: all phones, tablets, TVs, computers
H.265Widespread: iPhone 6s+, most Android 8+, Intel 6th-gen+, NVIDIA GTX 950+, Apple TV 4K
VP9Widespread: Android 6+ (most), Chrome OS, Intel 7th-gen+, NVIDIA GTX 1060+, Apple M1+
AV1Limited and newer: Intel Arc (12th-gen+), NVIDIA RTX 30/40 series, Apple M3+, Samsung Exynos 2200+, latest flagship phone SoCs. Coverage is still growing as of 2026

Patent Licensing

CodecLicensingImpact on Individuals / Small Teams
H.264MPEG-LA patent poolFree for streaming (YouTube etc. paid by platform); commercial software may require license fees
H.265 / HEVCMultiple pools (MPEG-LA, HEVC Advance, Velos Media)Complex and opaque licensing; royalties owed on distribution or devices. This is H.265's biggest barrier to adoption
VP9Royalty-free (Google)Free to use
AV1Royalty-free (AOM, Alliance for Open Media)Free to use; defensive patent provisions among AOM members

Video Codec Decision Tree

What's your primary concern?
├── Compatibility first (every device must play it)
│   └── H.264 — universal, 1080p uploads, zero worries
├── Web distribution first (browser playback)
│   ├── H.264 safest; VP9/AV1 widely supported in Chrome/Firefox
│   └── Consider H.264 + AV1 dual-encode (platforms like YouTube auto-generate)
├── Archive / Size first (smallest file at uncompromised quality)
│   ├── AV1 (if you can afford the encoding time)
│   ├── H.265 (good balance: efficient, reasonably fast to encode)
│   └── VP9 (royalty-free for Google ecosystem)
└── Film / Professional delivery
    ├── Master delivery: ProRes or DNxHR (near-lossless intermediates)
    └── Distribution master: H.264 high-bitrate (compatibility) + H.265/AV1 (streaming)

Audio Codec Overview

Mainstream Audio Codecs

CodecYearTypeTypical BitrateNotes
MP31993Lossy128-320 kbpsThe widest-compatibility historical standard
AAC1997Lossy96-256 kbpsMore efficient than MP3; industry standard for video
Opus2012Lossy6-510 kbpsNext-generation open-source flagship; outstanding across the full bitrate range
FLAC2001Lossless700-1000 kbpsOpen-source lossless; the standard for music archiving

Compression Efficiency

Broad consensus from listening tests (MUSHRA / ABX):

BitrateMP3AACOpus
64 kbpsAudible distortion, muddy bassMarginally acceptable, some artifactsTransparent or near-transparent—Opus excels at low bitrates
96 kbpsMild distortionMostly transparentTransparent
128 kbpsTransparent for most listenersTransparentTransparent
192 kbpsTransparent (trained ears may tell)TransparentTransparent
256 kbpsTransparentTransparentTransparent
320 kbpsTransparent for virtually all listenersTransparentTransparent

Key findings: - Opus leads AAC and MP3 by a clear margin at low bitrates (≤96 kbps)—for podcasts, voice, and low-bandwidth streaming, Opus is the obvious choice. - AAC in the 128-192 kbps range is extremely close to Opus—blinded listening tests rarely distinguish between the two at these bitrates. - MP3 falls behind significantly below 128 kbps—but at 256-320 kbps, the gap narrows and it becomes transparent for most listeners.

Hardware Support

CodecHardware DecodeNotes
MP3Full (any device)Some newer devices (2020+) are starting to drop MP3 hardware decode
AACFull (any device)Universal audio codec for the video industry
OpusWidely supportedAll modern browsers, Android, iOS 13+, most streaming devices
FLACWidely supportedAndroid 3.1+, iOS 11+, most DAPs and music players

Audio Codec Decision Tree

What's your scenario?
├── Video audio track (distributed with video)
│   └── AAC — the near-universal industry standard, unmatched compatibility
├── Music archiving (preserve original information)
│   └── FLAC — open, checksum-supported, broadly compatible
├── Streaming / Podcast (low bitrate, high quality)
│   └── Opus — best low-bitrate performance with sufficient compatibility
├── Maximum compatibility (sending to the widest audience)
│   └── MP3 320kbps — still in widespread use, and for good reason
├── Gaming / Interactive (low-latency requirement)
│   └── Opus (built-in low-delay mode)
└── Voice / Telephone quality (extremely low bitrate)
    └── Opus — supports as low as 6 kbps; Silk mode derived from Skype voice

Common Misconceptions

  1. "H.265 is the next-generation H.264 and will fully replace it." H.265 is more efficient, but patent licensing issues have severely hindered its adoption. Even in 2026, H.264 remains the compatibility king. AV1, as a royalty-free alternative, is gaining ground rapidly.
  2. "AV1 has the highest compression ratio, so all videos should use AV1." AV1's encoding speed is extremely slow (software), and hardware decode coverage is still growing. For consumer distribution, an H.264 fallback is usually necessary.
  3. "MP3 is obsolete—nobody uses it anymore." MP3 is still widely used in 2026. While its efficiency lags behind AAC and Opus, its compatibility spans everything from 1990s MP3 players to the latest car audio systems.
  4. "Lossless FLAC is always better than lossy formats." In real-world listening, 256kbps AAC is indistinguishable from FLAC on the vast majority of devices and listening conditions. FLAC's value is in archiving and production, not in providing superior day-to-day listening quality.
  5. "At the same bitrate, all codecs deliver the same quality." Completely false. At the same bitrate, AV1 delivers significantly better image quality than H.264, and Opus delivers significantly better audio quality than MP3. The entire purpose of codec advancement is to deliver equivalent perceived quality at lower bitrates.

Practical Tips

  • For universal video distribution, choose H.264: compatibility first. YouTube, Bilibili, WeChat, WhatsApp, email attachments—H.264 plays without issues on all of these platforms.
  • Upload high-quality originals to streaming platforms, let them transcode: platforms like YouTube and Netflix have more efficient encoding infrastructure (often using AV1 or H.265). Uploading a high-quality original and letting the platform generate multiple versions is more efficient than compressing locally and uploading already-encoded files.
  • For personal archiving, choose H.265 or AV1: if you're building a personal video library, H.265 is the current sweet spot between efficiency and speed. If you have patience and hardware support, AV1 saves even more space.
  • Stick with AAC for video audio tracks: don't use Opus for a video's audio track just because it's more efficient—many players and editing tools support Opus less reliably than AAC.
  • For pure audio (podcasts, music), choose Opus or AAC: 128kbps Opus or 128-192kbps AAC is transparent for virtually all listeners. Only archives need FLAC.
  • Encoder settings typically appear as a "speed/quality" slider in software: choosing "Slow" (Slower/Piece/Best Quality) produces higher quality encoding and smaller files, but takes longer; choosing "Fast" (Realtime) encodes quickly but produces larger files or slightly lower quality.

Further Reading

This site's video conversion and audio conversion tools support all codecs mentioned in this article—in your export settings, you can select the codec type and adjust quality/bitrate parameters. After reading this article, you should be able to make an informed choice between "compatibility first" and "size first."

Related Tools