
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?
- Comparing H.264 vs AV1
- Is AV1 Better Than H.264?
- H.264 or AV1: Which Should You Choose?
- How to Deliver AV1 or H.264 with Cloudinary
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/
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|
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/
https://res.cloudinary.com/
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.