Dav2d

17 hours ago (code.videolan.org)

Project description:

  dav2d is the fastest AV2 decoder on all platforms :)
  Targeted to be small, portable and very fast.

If you're out of the loop like me:

  AV2 is the next-generation video coding specification from the Alliance for Open Media (AOMedia). Building on the foundation of AV1, AV2 is engineered to provide superior compression efficiency, enabling high-quality video delivery at significantly lower bitrates. It is optimized for the evolving demands of streaming, broadcasting, and real-time video conferencing. 

- from https://av2.aomedia.org/

  • > AV2 is the next-generation video coding specification from the Alliance for Open Media

    Oh no. Not another one. I presume this one makes lossy better, or faster or both.

  • looks at if AV2 is dead in the water

    https://www.sisvel.com/insights/av2-is-coming-sisvel-is-prep...

    yep

    • They've done the same thing with AV1, and I can't see that having prevented adoption, nor can I imagine Sisvel wanting to poke the bear that is AOMedia unless they're certain their case is absolutely watertight.

      6 replies →

    • Sisvel is a patent troll. Take a look at the combined list of all companies that are the AOM and tell me with a straight face that all of their corporate in house counsel specializing in intellectual property law are wrong.

      2 replies →

    • Trolls will always be trolls. The need to fight them just shows the need to reform the garbage patent system to make sure no one can ever patent software.

    • You can tell Sisvel are a bunch of grifters by the fact they use slight grey text on a slightly less grey background.

      Aesthetics over function; style over substance. If that's their web design policy it's likely their policy in all other aspects.

      I'm also not sure that they're aware that intellectual property rights no longer exist in the US. If AV2 was vibe coded, there would be no case.

      1 reply →

Not on topic, but wow the internet has very quickly devolved into: click -> "making sure you're not a bot", click -> "making sure you're a human", click -> "COOKIES COOKIES COOKIES", click -> "cloudflare something something"

  • We had to set it up on the parts of VideoLAN infra so the service would remain usable.

    Otherwise it was under a constant DDoS by the AI bots.

    • Maybe I’m naive about this, but I didn’t expect AI scrapers to be that big of a load? I mean, it’s not that they need to scrape the same at 1000+ QPS, and even then I wouldn’t expect them to download all media and images either?

      What am I missing that explains the gap between this and “constant DDoS” of the site?

      13 replies →

    • While I do sympathetize with the AI DDoS situation, it'd be nice if there were a solution that allows them to work so they can pull official docs.

      For instance, MCP, static sites that are easy to scale, a cache in front of a dynamic site engine

      1 reply →

    • I highly doubt there is no other technically feasible option to block the AI bots. You end up blocking not just bots, but many humans too. When I clicked on the link and the bot block came up, I just clicked back. I think HN posts should have warnings when the site blocks you from seeing it until you somehow, maybe, prove you are human.

      4 replies →

  • Nearly every single website I'm not logged into these days want me to "confirm I'm not a bot".

    it is incredibly annoying but what can you do? AI scrapers ruined the web.

  • The internet is such a Tragedy of the Commons… its citizens that act selfishly and in bad faith will slowly make it unusable.

    • Its pretty explicitly not a tragedy of the commons. Its a tragedy of the ruling class abusing the resources of the 'commons' to extract value. There is nothing 'commons' about trillion dollar companies extracting all available value from the labor of the working class. That's just the tragedy that'll bring around the death of society, the same tragedy that brings all other tragedys

      6 replies →

    • > its citizens that act selfishly and in bad faith will slowly make it unusable

      It's rarely been the citizens that have been the problem, but the governments and companies that seek the use the network connection for their overwhelming benefit.

      Re (above):

      > Not on topic, but wow the internet has very quickly devolved into: click -> "making sure you're not a bot", click -> "making sure you're a human", click -> "COOKIES COOKIES COOKIES", click -> "cloudflare something something"

      1 reply →

  • No one's even clicking anymore, everything implores me to tap or swipe these days, and everything is optimised for humans with one eye above the other.

    Then I press the X to close the all-caps banner commanding me to install the app, upon which I get sent to the app store. Users of the website refer to it as an app.

  • Wow I’m glad it’s not just me. I thought my IP block had gotten caught up in some known spamming or something.

  • AI is a gift that keeps on giving.

    High hardware prices, locked information sources, plenty of AI slop etc.

Glorious. Really looking forward to seeing how much better than AV1 it actually turns out to be. It's a shame it'll take a while before we'll have a decent encoder (it took an annoyingly long time until SVT-AV1 was usable).

With the first RVA23 boards shipping this month, I find it a mistake to still focus on legacy ISAs like x86 or ARM rather than what will be dominant by the time AV2 is deployed.

Mostly ASM for performance critical paths is a pattern that never gets old. The VideoLAN team did the same with dav1d and it paid off. Curious how much of dav2d ends up staying C as AV2 matures.

is there any understanding of how big of an improvment av2 will be over av1?

  • About 30% better compression than AV1 at equivalent quality. But it'll be a while before it's a good idea to use AV2 in your home media server. (AV1 is still not that broadly supported)

off topic, but related to the recent github alternative discussion:

Wow, this gitlab instance looked so much cleaner/simpler and less clunky than my past experiences! Also loaded really fast on first page load as well as subsequent actions

Nice.

What's the current state of of Dolby trying too attack AV1 ecosystem (Snapchat more specifically)? I hope there is an organized fight back by AOM against these trolls.

I would even remove the C code and lower the usage of the assembler pre-processor to a basic C pre-processor.

Happy, AV2 decoding already here.

:)

[flagged]

[flagged]

  • And who ever heard of this in the majority of the world? It was news to me, I'm white and European btw.

    Did you know the US consititues about 4% of humans? When we look at adults and age range that likely ever hear of D4vd we are talking probably considerably less that 1%.

    The rest of humanity has no negative association with these four letters.

    • It was my first thought when I saw the name, unfortunately. The US constitutes a large portion of this site's user base. Whether the association sticks around is yet to be seen.

    • > And who ever heard of this in the majority of the world? It was news to me, I'm white and European btw.

      It's a recurring headline on the rolling news channels on broadcast TV right now - and it's on the front-page of Reddit for me as well.

      7 replies →

    • > I'm white and European btw.

      Why did you feel the need to explicitly specify that you're white as one of the reasons you didn't hear the news?

      I'm not american either, but the news is all over social media platforms like reddit and Twitter, it's hard to turn a blind eye on them.

  • It's just unfortunate. Like there was a pharmaceutical company named "Isis" that changed their name due to the association with the terrorist group. That said, while people will notice for the next couple of months, I don't think it warrants changing a name for.

    • More importantly there's a really good band named isis that probably has not benefitted from the Islamic state. (Ok, they disbanded in 2010, but still).

  • By this logic nobody should ever name their child Ted or Theodore because Ted Bundy existed.

I wonder if the author is a Dave2D fan?

https://www.youtube.com/@Dave2D

We must not continue to develop media codecs in memory unsafe languages. Small, auditable sections can opt-out perhaps, but choosing default-unsafe for this type of software is close to professional negligence.

  • Cryptography and video codecs are notable exceptions, they put a lot of effort to making the code provably memory safe: no recursion, limited use of stack variables, no dynamic allocations, etc. As a result, memory safe languages bring nothing but trouble by making it non deterministic, that’s especially true for crypto where compiler “optimisations” guarantee you side channels attacks.

  • Of the 3 software AV1 encoders, the only one that is fully dead is the Rust encoder (rav1e). If people truly wanted memory safe encoders/decoders, they would fund and develop them.

  • For the codec itself, the majority of it is performance sensitive and often has a significant amount of assembly even, so a memory safe language doesn't change much.

    However for the container/extractor... those should absolutely be in a memory safe language, and those are were a lot of the exploits/crashes are, too, as metadata is more fuzzy.

    As a practical example of this see something like CrabbyAVIF. All the parser code is rust, but it delegates to dav1d for the actual codec portion