Dav2d
270 points
4 hours ago
| 15 comments
| jbkempf.com
| HN
celsoazevedo
1 hour ago
[-]
reply
kaka314
1 hour ago
[-]
Too much traffic from HN?

``` Too Many Requests The page you have tried to access is not available because the owner of the file you are trying to access has exceeded our short term bandwidth limits. Please try again shortly.

Details: Actioning this file would cause "jbkempf.com//blog/2026/dav2d/" to exceed the per-day file actions limit of 160000 actions, try again later ```

reply
BetterThanSober
11 minutes ago
[-]
I don't know if I'm underestimating HN's reach but I doubt we did that, probably traffic from a much bigger aggregator/forum
reply
hideout_berlin
1 hour ago
[-]
i had that too once i used dyndns address my linux apache crashed when some one posted it here
reply
jordand
3 hours ago
[-]
'AV2 decoding is roughly five times more complex than AV1 decoding. In practice, that means software running on today’s hardware will struggle to decode AV2 in real time without careful, architecture-specific optimization'

AV1 software decoding is already very intensive so AV2 decoding benchmarks are the next thing that would be really interesting (or mortifying) to see.

reply
kmfrk
1 hour ago
[-]
Intel's Arc dGPUs were really compelling for dedicated AV1 encode and decode, especially the small form factor of some cards. You could even fit it as a secondary card in a PC dedicated to recording and encode workflows for OBS.

Hope we get a similar option with future lineups that support AV2, especially given how popular video creation and streaming are now.

reply
mrbluecoat
2 hours ago
[-]
I came to post this as well. Until widespread, inexpensive hardware catches up to a 2018 codec, AV# will remain a niche ideal.
reply
breve
2 hours ago
[-]
Hardly niche. My laptop isn't new and it has hardware AV1 decoding and encoding. My 10 year old iPhone 7 can play 1080p AV1 video in software for over 200 minutes with VLC. The iPhone 7 was released in 2016, a year and a half before AV1. The dav1d decoder is mighty.

Netflix uses AV1: https://netflixtechblog.com/av1-now-powering-30-of-netflix-s...

YouTube uses AV1. It's tough to be more mainstream than that.

Right click on a YouTube video and select Stats for Nerds. If your system is capable of it, chances are it will be playing back in AV1.

Most of the YouTube videos I watch these days are AV1 encodes. Sometimes it's in VP9 and occasionally it's H.264.

reply
weiliddat
2 hours ago
[-]
Supported is different from doing it well though. You do notice the performance hit even on TVs that playback YouTube videos on AV1.

Even on 1080p videos running on AV1 on 1x, the TV system bogs down and any kind of interaction has a variable 1-3s lag. On some TVs if you do 1.25x the TV automatically "downgrades" the resolution to 480p to avoid dropping frames.

I wish there was an option to still use VP9 / H.264 on those systems (even limited to 1080p).

reply
TingPing
1 hour ago
[-]
Youtube artificially limits the resolution, on mine if you cast the exact same video it doesn’t impose that limit and works fine.
reply
jordand
2 hours ago
[-]
Yeah I could imagine the AV1 codec sticking around for a very long while, even as a fallback for AV2. There's still hundreds of millions of people out there using old/cheap devices (especially in developing countries) where that battery drain from software decoding is a big problem, so AV2 would be nonviable.
reply
ZeroGravitas
52 minutes ago
[-]
Some of the early use of VP9 and AV1 was Netflix serving video to people in developing countries. Their metered bandwidth was more of a bottleneck than the CPU playback.
reply
sylware
2 hours ago
[-]
Same. Mostly AV1, sometimes VP9, and rarely h264.

What's missing mostly: live streams which are h264.

Currently, and I say currently, dav1d is so fast, no worries on that side.

reply
jbk
3 hours ago
[-]
> AV1 software decoding is already very intensive so AV2 decoding benchmarks are the next thing that would be really interesting (or mortifying) to see.

Yes, this is going to be fun to watch.

reply
remix2000
2 hours ago
[-]
> Make it fast on older desktop, by writing asm for SSSE3+ chips

I guess 5 years ago (around the time when Intel stopped making SSE-only chips) is technically "older", but I wouldn't prioritize avx2 when devices intended for consuming media definitely experience much less pressure to upgrade than workstations…

reply
otherjason
1 hour ago
[-]
Almost every Intel CPU released since 2013 has AVX2 support. Some Atom SKUs were longer holdouts, but the fraction of x86 CPUs shipped in the last decade that have AVX2 support is very high.
reply
plopilop
1 hour ago
[-]
Seems like the blog succumbed to the HN hug of death (`Actioning this file would cause "jbkempf.com//blog/2026/dav2d/" to exceed the per-day file actions limit of 160000 actions, try again later`), is there a copy available somewhere?
reply
juliie
1 hour ago
[-]
reply
anoncow
2 hours ago
[-]
I thought this was about Dave2D
reply
adithyassekhar
1 hour ago
[-]
Same
reply
Slurpee99
3 hours ago
[-]

  ... improvements around 25% compared to AV1

  AV2 decoding is roughly five times more complex than AV1 decoding
I'm not sure what these two lines mean or if we can compare them, any help?
reply
whynotmaybe
3 hours ago
[-]
I understood it as compression is 25% better : a quality of 10mbps in av1 can be achieved with 8mbps in Av2. But, it needs 5 times more compute power for this 25% gain.
reply
jbk
3 hours ago
[-]
> I'm not sure what these two lines mean or if we can compare them, any help?

AV2 saves 25% bandwidth at the cost of 5x more decoding complexity.

reply
0x1ceb00da
2 hours ago
[-]
What does "complexity" mean here? Computation required?
reply
WD-42
10 minutes ago
[-]
dav1d is the av1 decoder and it’s an insane feat of engineering. Written in assembly, it even eschews the normal c calling convention to get even better performance.
reply
BillStrong
1 hour ago
[-]
Yes, much higher computation required to encode it, and decode it, both.
reply
Caspy7
42 minutes ago
[-]
He only mentioned decode complexity. Would be interesting to know the average encode complexity compared to AV1.
reply
simjnd
2 hours ago
[-]
Yes
reply
croes
3 hours ago
[-]
Smaller files but harder to decode
reply
yieldcrv
27 minutes ago
[-]
D4vd
reply
GaggiX
3 hours ago
[-]
I would love to see comparisons with AV1 on very low bitrates.
reply
UnlockedSecrets
3 hours ago
[-]
Return of the 8MB Shrek encodes?
reply
MaxikCZ
2 hours ago
[-]
https://web.archive.org/web/20210416200451/https://cdn.disco...

Shrek 1 at 8.34MB including audio.. insane

reply
coldpie
1 hour ago
[-]
Video resolution: 128x72, hahah. Late 90s RealPlayer postage stamp video is back! To its credit, that whole movie is probably smaller than RealPlayer itself was.
reply
ant6n
39 minutes ago
[-]
There's a 64MB game boy advance cartridge with shrek on it [1]. Looks pretty horrible [2]. But the GBA only has 16KB fast / 256KB slow RAM, and a 16MHz CPU.

[1] https://archive.org/details/Shrek-Video-GBA [2] https://www.youtube.com/watch?v=CyOfPZQl4MI

reply
GaggiX
1 hour ago
[-]
I love this, hope to see a AV2 version at 8MB
reply
lostmsu
2 hours ago
[-]
6MB should be enough for everyone!
reply
husky8
2 hours ago
[-]
Is codex working on novel decoders 24/7? I hope
reply
cozzyd
1 hour ago
[-]
One would imagine given the name that it would specialize in codecs
reply
the__alchemist
2 hours ago
[-]
Not to be confused with Da4vid (world-class hacker and owner of the Black sun) or D4vd (rap artist and alleged murderer)
reply
staindk
2 hours ago
[-]
Or Dave2D, popular tech youtuber
reply
tosti
1 hour ago
[-]
Or dave, the command to start Dangerous Dave.
reply
JoshTriplett
1 hour ago
[-]
> Not to be confused with Da4vid (world-class hacker and owner of the Black sun)

*Da5id

reply
latexr
2 hours ago
[-]
When AV1 was first announced, I got the impression the name was chosen partly as a pun/reference/homage to AVI, the classic but outdated format with used to be popular. Then when I saw Dav1d, OK, good way to continue the pun.

But now with AV2 and Dav2d, that completely breaks. Are we eventually going to get AV3/Dav3d and AV4/Dav4d, which will read like Ave/Daved and Ava/Davad? Seems a bit awkward. Was the idea from the start to have the 1 be the version number, and have it specifically be part of the name?

reply
BetterThanSober
3 minutes ago
[-]
I'm pretty sure it is a homage. As for dav1d it's not a reference decoder (although partially funded by AOM iirc) so they might not know that the next iteration will simply be AV2, we have h264, h265, h266 naming though

Tangent but I cannot wait for h269 (or h267 for the younger gen)

reply
xp84
29 minutes ago
[-]
As with all naming schemes in the tech world, I am sure no future scenarios, including successor names, were ever considered
reply
p1mrx
49 minutes ago
[-]
I think it's a reasonable decision. The only people who will interact with dav2d by name are codec nerds, and a simple increment makes the lineage more obvious to that audience.
reply
jl6
2 hours ago
[-]
1dav2codecs?

2av2furious?

reply
Hendrikto
2 hours ago
[-]
And then AV3: Tokyo Drift, and after that AV Episode 1.
reply
xp84
28 minutes ago
[-]
Or go the Apple Watch naming scheme route.

Just “AV”

Next, AV Series 1 and 2 (released simultaneously)

Later, AV Edition but it costs $10,000

reply
BillStrong
1 hour ago
[-]
Already predicting which versions to avoid, huh.
reply
WhrRTheBaboons
2 hours ago
[-]
> experience Dav... Now in 3D!
reply
Arubis
2 hours ago
[-]
Da5id could potentially work as a Snow Crash reference.
reply
poly2it
3 hours ago
[-]
Sorry if this sounds naive, but does it make sense to write a codec library in C/ASM considering how well Rust is progressing, especially when, as the author puts it, AV2 decoding is roughly five times more complex than AV1 decoding?
reply
Arodex
3 hours ago
[-]
The algorithms deployed in these kind of codecs take into account not only human vision and mathematical laws of information, but also nitty-gritty details of how computers work, which are optimally exploited by directly having humans write detailed assembly rather than a compiler make a best guess and effort.
reply
jbk
3 hours ago
[-]
Because it's 5 times more complex, you need to get the maximum performance available. Therefore more ASM than ever.

Rust does not bring more performance. Just more safety.

reply
LoganDark
1 hour ago
[-]
The safety can be worth it in certain cases. Like when handling untrusted input. And it's not just Rust: look at WUFFS for example. WUFFS can actually rival handwritten implementations in certain cases.
reply
xp84
7 minutes ago
[-]
Are video codecs in the present day able to be sandboxed? In my fantasies at least I’d like the worst a malicious video file can do is cause garbage output or cause the codec to crash.

Forgive the ignorance, I have worked entirely in the abstracted layers of the stack, and mostly web.

reply
throawayonthe
51 minutes ago
[-]
but not these cases
reply
cogman10
2 hours ago
[-]
Encoder and decoder writers frequently need extremely fine grain control over SIMD instructions in order to get good performance.

The way they weave these instructions can be very hard to express with a high level language.

Further, there's a ton of work with arrays and importantly parts of arrays. They can, for example, need to extract every other element up to 1/2 the array. Unfortunately, rust has runtime array bounds checks which make writing that sort of code slower. The compiler can elade those checks, but usually only in simple cases.

The authors would be writing a bunch of unsafe rust to get the performance they want and rust makes that more painful on purpose.

I like rust, but C/ASM really is the right choice here. This is one of the few cases where rust's safety is a major detriment.

reply
muhbaasu
2 hours ago
[-]
The ffmpeg devs have said many times in public that they routinely get speedups of 10x or more over C code. I'm not a reputable source on this myself but I highly recommend looking into their channels, mails, or posts.
reply
throawayonthe
47 minutes ago
[-]
yes it makes sense to use C/ASM here, but if you're curious, there is a rust port of dav1d named rav1d: https://github.com/memorysafety/rav1d

it's not much slower than the original C/ASM implementation (last i checked ~5%?) but that matters here

reply
Telaneo
3 hours ago
[-]
Go ask FFmpeg what they're writing their encoders and decoders in.
reply
latexr
2 hours ago
[-]
That isn’t particularly helpful to someone asking a question in good faith. What others are using doesn’t clarify why they are using it. Plus, FFmpeg is itself a decade older than Rust. The OP is asking about starting a new project today.
reply
Telaneo
2 hours ago
[-]
> What others are using doesn’t clarify why they are using it.

It does if you ask them, or at least research the topic at hand.

reply
MattRix
3 hours ago
[-]
Yes? There is 5x more code to optimize the ASM for.
reply
aetherspawn
2 hours ago
[-]
Ok whose idea was ‘Wiener filtering’
reply
cogman10
2 hours ago
[-]
Norbert Wiener in the 1940s. He invented the technique.

It's a semi-common last name.

https://en.wikipedia.org/wiki/Wiener_filter?wprov=sfla1

reply
Eldodi
3 hours ago
[-]
How is AV2 expected to avoid the patent-pool issues AV1 ran into?

AV1 was designed as royalty-free, but Sisvel’s pool and the recent Dolby/Snap proved the contrary.

https://accessadvance.com/2026/03/24/access-advance-licensor...

reply
UnlockedSecrets
3 hours ago
[-]
They filed a suit, henceforth making a claim of an issue...... They haven't "proved" anything other then they have lawyers on staff that can file some paperwork until the suit is settled in court...
reply
AndrewDucker
3 hours ago
[-]
How does that prove anything?

They're claiming that there are patents, but that doesn't mean there are.

reply
Eldodi
3 hours ago
[-]
Dolby is only the most recent case, Sisvel consorsium actually bills licences per device:

Consumer Display Device: EUR 0.32

Consumer Non-Display Device: EUR 0.11

(source here: https://www.sisvel.com/licensing-programmes/audio-and-video-...)

reply
zamadatix
2 hours ago
[-]
Sisvel allows you to pay them if you believe their claims, they haven't actually taken anyone not paying to court yet to prove that. The only court cases for VP9/AV1 from Sisvel so far have been their patents being found invalid/irrelevant.

Dolby is somewhat more interesting in that rather than scare tactics, media hype, and attempting to form a pool about it they are actually taking a patent assertion claim to court.

reply
justinclift
2 hours ago
[-]
That crowd are just deeply concerned one of their lucrative revenue streams is disappearing.

So they seem to be attempting to pull a fast one and use unproven claims to try and convert their competitor into a replacement revenue source.

It'll probably be a case of whoever has the best lawyers + contacts + persistence wins.

But it'll be interesting if discovery shows evidence they know they don't have a case and are trying it anyway. "Piercing the corporate veil" can theoretically be a consequence of that AFAIK.

reply
UnlockedSecrets
3 hours ago
[-]
How does how they bill for their product, matter in terms of if their lawsuit holds merit?
reply
silotis
2 hours ago
[-]
Can you point to any other patent lawsuit over AV1? AFAIK the Dolby case is the first.
reply
croes
3 hours ago
[-]
That doesn’t prove their claims are valid.

I can claim the same and offer licenses per device.

reply
croes
3 hours ago
[-]
No codec can ever avoid patent-pool claims.
reply
Arodex
3 hours ago
[-]
Every single AV2 news here in the last week has seen exactly the same question.

Either go back read the answers there first, or I will assume you are part of a FUD campaign (yes, I know HN guidelines, but again every single AV2 news in the last week has seen the same rhetorical "questions" as top "comments").

reply
kingstnap
1 hour ago
[-]
This seems like an interesting case to test AI agents on.

Like we had weird examples like C compilers and Bun. This is a much more interesting example because its highly nontrivial.

AV1 exists, Dav1d exists. Lets see AI take the AV2 spec and Dav1d code and try to make a working high performance AV2 decoder.

reply