MEDIA GUIDES / Video Formats

H.264 vs AV1: Which Codec Should You Choose?

Key Takeaways:

  • AV1 needs less bitrate than H.264 for the same quality: up to 50%, and 40% less in NVIDIA’s 1080p60 hardware tests.
  • Both codecs work for every modern version of Chrome, Edge, and Firefox. However, only Apple devices with a hardware decoder can use AV1
  • Use AV1 for on-demand video watched many times, and H.264 for live streams, video calls, older devices, and as the fallback.

Video is ubiquitous online now, and the codec selected for compression affects everything from bandwidth expenses to the smoothness of playback for users. While H.264 has been a reliable video workhorse for over twenty years, AV1 is quickly becoming the go-to option for creating smaller files without compromising on quality.

AV1 gives you the same visual quality as H.264 in smaller files and is royalty-free, but it costs more computing power to encode and only plays where the browser or device supports it. H.264 plays almost everywhere and encodes quickly, so a common setup is to serve AV1 where it is supported and keep H.264 as the fallback.

In this article:

What Is the Difference Between H.264 and AV1?

To keep it simple, H.264 is a standard built for compatibility, and AV1 is an open codec built to cut the bitrate of internet video.

H.264, also known as AVC (Advanced Video Coding), is defined by the identical ITU-T H.264 and MPEG-4 Part 10 specifications, first approved in 2003. 

AV1 (AOMedia Video 1) was released in 2018 by the Alliance for Open Media whose founding members include Amazon, Apple, Google, Microsoft, Mozilla, Netflix, and NVIDIA. It was designed for internet video, for both the HTML video element and WebRTC.

Comparing H.264 vs AV1

In an AV1 vs H.264 comparison, AV1 wins on file size and licensing, and H.264 wins on encoding speed and reach.

Feature H.264 (AVC) AV1
Compression efficiency Baseline Up to 50% lower bitrate at the same quality
Browser and device support All major browsers; hardware decoding on many platforms Chrome, Edge, Firefox, and Opera; Safari only on devices with AV1 hardware
Encoding speed Fast, with hardware encoders on many platforms Much slower in software; hardware encoding on newer GPUs such as NVIDIA Ada Lovelace
Licensing and royalties Patent-licensed through Via LA Royalty-free
Containers MP4, 3GP MP4, WebM
Best use Live streaming, video calls, older devices, universal fallback On-demand libraries, 4K and HDR, high-traffic videos

Is AV1 Better Than H.264?

For file size, yes: AV1 reaches the same quality as H.264, at a noticeably lower bitrate. Whether it is better for your project depends on your viewers’ devices and how often each video is played.

The cost is compute: AV1 needs longer encoding times than x264, so it pays off for videos encoded once and watched multiple times. For live streams, where encoding must keep up in real time, H.264 is the safer choice unless the encoder has AV1 hardware.

H.264 or AV1: Which Should You Choose?

Choose by audience and by how often a video is watched. Most production setups use both and pick one per viewer.

Your situation Codec Why
Live streaming or video calls H.264, or AV1 with a hardware encoder Encoding has to keep up in real time
On-demand library with heavy traffic AV1 with an H.264 fallback The extra encoding cost is paid once; the bandwidth savings repeat on every view
Older phones, smart TVs, or locked-down corporate PCs H.264 It decodes almost everywhere, usually in hardware
An app or device that ships its own encoder or decoder AV1 Royalty-free, while H.264 products fall under Via LA licensing

Encode your most-watched videos first, since rarely watched ones may never repay the encoding cost. And encode every codec from the original master, not from an H.264 delivery copy, so the AV1 version does not inherit H.264 artifacts.

How to Deliver AV1 or H.264 with Cloudinary

With Cloudinary you upload one source video and the delivery URL decides the codec: f_auto picks one per browser, and the video codec parameter (vc_) forces a specific one.

Automatic Codec Selection with f_auto

Adding f_auto to a video URL tells Cloudinary to choose the format and codec for the requesting browser. Most modern browsers receive a VP9-encoded WebM or an AV1-encoded MP4, Safari may receive an HEVC-encoded MP4, and other browsers get an H.264 MP4.

https://res.cloudinary.com/demo/video/upload/c_scale,h_280/f_auto/docs/hotel_buffet.mp4

In that example, the AV1 version is 244 KB, VP9 336 KB, HEVC 349 KB, and H.264 505 KB, so AV1 is less than half the size of H.264. Adding q_auto also lets Cloudinary pick the encoding quality; the docs list it as supported for H.264, H.265, and VP9.

Encoding with AV1 is a premium feature for Cloudinary’s Enterprise customers that may not be available on every account type, and on plans that use the video bandwidth metric, f_auto does not include AV1 by default.

Each format f_auto serves is a separate derived file, so the first viewer of a new format can get H.264 while the better version is generated. To have every version ready, create them as eager transformations at upload:

f_webm,vc_vp9/mp4|vc_av1/mp4|f_mp4,vc_h265/mp4|f_mp4,vc_h264/mp4

Force a Codec with vc_

The video_codec parameter (vc_ in URLs) sets the codec explicitly, with values such as h264, h265, av1, vp9, and auto. For H.264 you can add a profile and level, such as baseline at level 3.1 for older devices.

https://res.cloudinary.com/demo/video/upload/vc_av1/blue_sports_car.mp4

https://res.cloudinary.com/demo/video/upload/vc_h264:baseline:3.1/blue_sports_car.mp4

Stay competitive with Cloudinary’s advanced media optimization and delivery tools. Sign up today and leave a lasting impression with your media.

Frequently Asked Questions

Is Netflix using AV1?

Yes. In a December 2025 tech blog post, Netflix said AV1 powers about 30% of its streaming and is its second-most-used codec. It also reported that AV1 sessions use one-third less bandwidth than AVC and HEVC.

Is AV1 better than H.265?

AV1 well compresses better than H.265 (HEVC) according to MDN, and it is royalty-free, while HEVC is proprietary and may fall under several patent pools. HEVC’s edge is Apple support: Safari plays HEVC on all Macs running macOS High Sierra or later, but plays AV1 only with an AV1 hardware decoder.

Why is AV1 not as popular?

AV1 is commonly adopted by major streaming platforms, yet its adoption has been slower than H.264 due to the higher computational demands of encoding and the absence of AV1 hardware decoders in older devices. Hardware encoders on newer GPUs and decoders in recent devices are closing both gaps.

Does AV1 reduce quality?

Not compared with H.264 at the same bitrate, because AV1 keeps more detail per bit. Like H.264, though, AV1 is lossy, so every encode discards some information and re-encoding a compressed file loses more. Encode AV1 from the original master for the best result.

QUICK TIPS
Tali Rosman
Cloudinary Logo Tali Rosman

In my experience, here are tips that can help you better choose and deploy H.264 vs AV1:

  1. Test by content class, not one “representative” clip
    Animation, screen recordings, sports, film grain, and talking heads compress very differently. Build a small corpus reflecting your actual library before deciding how much AV1 saves.
  2. Compare codecs with perceptual metrics
    File size at an arbitrary CRF or quality setting is a poor comparison. Normalize against VMAF, SSIMPLUS, or another perceptual target and then compare bitrate—the useful question is how many bits each codec needs to reach the same perceived quality.
  3. Treat grain as a special case
    Film grain and sensor noise consume a surprising amount of bitrate because encoders struggle to distinguish intentional texture from expendable detail. AV1’s film-grain synthesis capabilities can preserve the appearance of grain without encoding every grain pattern directly.
  4. Optimize the ladder, not just individual renditions
    With adaptive bitrate streaming, AV1’s efficiency can make some adjacent rungs unnecessarily similar. Rebuilding resolution/bitrate ladders per codec can produce greater savings than simply recreating an H.264 ladder in AV1.
  5. Measure decode cost alongside bitrate
    A stream that saves bandwidth can still provide a worse experience if a device falls back to software AV1 decoding. Track CPU utilization, dropped frames, battery impact, and thermal behavior on representative low-end devices—not merely whether the browser reports AV1 support.
  6. Prioritize AV1 by viewing volume
    Don’t automatically AV1-encode an entire back catalog. Encoding your highest-traffic assets first often captures most of the bandwidth savings while avoiding compute and storage costs for videos that receive very few plays.
  7. Keep mezzanine masters codec-independent
    Avoid generating AV1 from an already compressed H.264 delivery copy. Preserve a high-quality mezzanine or original master so every delivery codec is derived from the cleanest practical source and doesn’t inherit H.264 artifacts.
  8. Align keyframes across codec ladders
    For HLS/DASH deployments, matching keyframe and segment boundaries across renditions makes adaptive switching and packaging more predictable. This becomes especially important when maintaining parallel H.264 and AV1 presentation sets.
  9. Calculate the AV1 break-even point
    For each asset class, estimate AV1’s extra encoding cost against expected CDN egress savings over its lifetime. High-view VOD can repay an expensive encode quickly; low-view or short-lived content may never recover that compute cost.
  10. Watch real playback telemetry before expanding AV1
    Track codec share alongside startup time, rebuffering, fatal playback errors, dropped frames, and watch time. Gradually increasing AV1 delivery based on observed QoE is safer than assuming that advertised codec support means every supported device handles AV1 equally well.
Last updated: Dec 2, 2026
★★★★★
4.6 (28 reviews)
Talk to Sales Talk to Sales