Draft:Dav1d

From Wikipedia, the free encyclopedia
dav1d
Developer(s)VideoLAN and FFmpeg communities
Repositorycode.videolan.org/videolan/dav1d.git
Written inAssembly language
C99
TypeVideo decoder
LicenseBSD 2-clause "Simplified" License
Websitewww.videolan.org/projects/dav1d.html

dav1d is a free and open-source software library and a command-line utility to decode video streams in the AV1 video coding format. It is developed by the VideoLAN and FFmpeg communities and sponsored by the Alliance for Open Media.[1] It is designed to be fast, small, cross-platform and multithreaded.[2]

The name dav1d is derived from a combination of factors. Pronounced "David", it merges the recursive acronym "dav1d is an AV1 decoder" with the leetspeak transformation of the name David, where the "i" is replaced by a "1" due to the visual similarity of their glyphs. This playful adaptation captures both the essence of the project as an AV1 decoder and pays homage to the hacker culture, where recursive acronyms and leetspeak are common occurrences.

dav1d is released under the BSD 2-clause "Simplified" License, a distinction from the Copyleft licensing favored by projects like FFmpeg and VideoLAN. This strategic choice of a more permissive license was made to encourage wider adoption of AV1. The decision to adopt a permissive license model for dav1d finds its roots in the Vorbis project, where similar licensing strategies were employed to promote adoption and prevent the entrenchment of proprietary formats.[3]

History[edit]

The Alliance for Open Media released AV1 in June 2018 with a production grade and SIMD optimized software decoder called aomdec as part of libaom. A widespread opinion was that the libaom software implementation was slow[4] both in terms of encoding and decoding speeds. The VideoLAN and FFmpeg communities, who had previously written faster software decoders for both VP8[5] and VP9[6] video formats, saw this as a barrier to entry for AV1 and decided to resolve this by writting a faster software decoder.

In October 2018, Ronald Bultje and Jean-Baptiste Kempf announced dav1d at the VideoLAN Developer Days 2018 conference.[7] The goal of the project being to develop a fast AV1 software decoder to jumpstart the AV1 ecosystem and act as a stopgap solution until AV1 hardware decoders are common place.

The first usable version of dav1d, called 0.1.0 Gazelle, was released in December 2018.[8] Releases 0.1.0 to 0.7.1 were primarily dedicated to low-bitdepth SIMD optimizations, aimed at enhancing decoding efficiency on x86 and ARM.[9] In 2019, benchmarks showed that dav1d 0.5 was the fastest AV1 decoder in comparison to libgav1 and libaom.[10] Subsequent releases, from 0.7.1 to 1.0, shifted focus to high-bitdepth SIMD optimizations.[11]

From the beginning, dav1d was designed to be multithreaded, allowing for a combination of both frame-level parallelism and tile-level parallelism. The 1.0.0 release introduced a thread pool design, where each component in the decoding loop runs as a generic task with a simple dependency management mechanism.[12] In this design, worker threads iterate over a list of available tasks, allowing for a more resource-efficient parallel decoding scheme that is independent of bitstream features like tiles.

Software that uses dav1d[edit]

In December 2018, the 3.0.5 release of the VLC media player switched from aomdec to dav1d as the default AV1 decoder.[13]

In March 2019, Chromium, the open-source project behind Google Chrome and also Microsoft Edge, disabled libaom in favor of dav1d as the default AV1 decoder.[14] This change was subsequently released in April 2019 as part of Chrome 74.[15]

In May 2019, Mozilla announced that Firefox switched from libaom to dav1d as the default AV1 decoder on all desktop platforms (Windows, OSX and Linux) for both 32-bit and 64-bit systems.[16]

In June 2019, Cisco demonstrated a live video conferencing call in Webex that relied on dav1d for AV1 decoding.[17][18] This was the first demonstration of AV1 and dav1d for real time applications.

Support for dav1d in ffmpeg as been available since the release of version 4.2 "Ada", in August 2019.[19]

In February 2020, Netflix stated that their Android app relied on dav1d to decode 10-bit AV1 content.[20]

In February 2023, Meta reported using dav1d to decode AV1 content for Facebook Reels and Instagram Reels in their iOS app.[21]

In April 2024, Google announced that Android switched from gav1 to dav1d for software decoder to allow AV1 on all devices running Android 12 or higher via a software update.[22] Prior to this, Android developers had to incorporate dav1d into their apps and patch ExoPlayer in order to use dav1d to decode AV1 in their apps.

A reverse engineering report from April 2024 indicates that the Safari web browser uses dav1d to decode AV1.[23]

As for source code reuse, the ARM and x86 optimized SIMD functions from dav1d have been imported into rav1e, an AV1 encoder by Xiph.Org Foundation.[24] Optimized SIMD functions from dav1d have also been imported into SVT-AV1.[25] Additionally, the dav1d source code was transpilled to the Rust programming language, which served as the starting point for the rav1d project, an AV1 decoder by the Internet Security Research Group.[26]

References[edit]

  1. ^ "dav1d - dav1d is an AV1 decoder - VideoLAN". www.videolan.org. Retrieved 2024-04-26.
  2. ^ "Introducing dav1d: a new AV1 decoder - Jean-Baptiste Kempf's Website". jbkempf.com. Retrieved 2024-04-26.
  3. ^ "LWN.net: RMS on the Ogg Vorbis license". lwn.net. Retrieved 2024-04-29.
  4. ^ Ozer, Jan (2018-08-31). "AV1: A First Look".
  5. ^ "Diary Of An x264 Developer » Announcing the world's fastest VP8 decoder: ffvp8". 2010-08-11. Archived from the original on 2010-08-11. Retrieved 2024-05-03.
  6. ^ "The world's fastest VP9 decoder: ffvp9 | Ronald S. Bultje". Retrieved 2024-05-03.
  7. ^ Video Dev Days 2018: Dav1d: a fast new AV1 decoder. Retrieved 2024-04-29 – via www.youtube.com.
  8. ^ "First release of dav1d, the AV1 decoder - Jean-Baptiste Kempf's Website". jbkempf.com. Retrieved 2024-04-29.
  9. ^ "dav1d 0.7.1 - Jean-Baptiste Kempf's Website". jbkempf.com. Retrieved 2024-04-29.
  10. ^ Hoeven, Ewout ter (2019-10-10). "AV1 is ready for prime time Part 2: Decoding performance". Medium. Retrieved 2024-04-29.
  11. ^ "dav1d 0.9.1: a ton of asm - Jean-Baptiste Kempf's Website". jbkempf.com. Retrieved 2024-04-29.
  12. ^ Ronald S. Bultje - Low-level wizardry in dav1d. Retrieved 2024-05-03 – via www.youtube.com.
  13. ^ "How to use AV1 with open source tools - Jean-Baptiste Kempf's Website". jbkempf.com. Retrieved 2024-05-07.
  14. ^ "Diff - ede4345734371ac35b4e50cea7ef3332dabd54d5^! - chromium/src.git - Git at Google". chromium.googlesource.com. Retrieved 2024-05-07.
  15. ^ Hoeven, Ewout ter (2019-05-17). "dav1d 0.3.0 Sailfish: ARMed to the teeth". Medium. Retrieved 2024-05-07.
  16. ^ "Firefox brings you smooth video playback with the world's fastest AV1 decoder – Mozilla Hacks - the Web developer blog". Mozilla Hacks – the Web developer blog. Retrieved 2024-05-07.
  17. ^ BigAppleVideo (2019-06-25). BAV2019 - AV1 in video collaboration. Retrieved 2024-05-07 – via Vimeo.
  18. ^ "The AV1 video codec comes to Webex!". blog.webex.com. 2020-12-15. Retrieved 2024-05-07.
  19. ^ "FFmpeg 4.2 Released With AV1 Decoding Support, GIF Parser". www.phoronix.com. Retrieved 2024-05-07.
  20. ^ Blog, Netflix Technology (2020-02-05). "Netflix Now Streaming AV1 on Android". Medium. Retrieved 2024-05-07.
  21. ^ "How Meta brought AV1 to Reels". Engineering at Meta. 2023-02-21. Retrieved 2024-05-07.
  22. ^ Schoon, Ben (2024-04-19). "Android adds new software-based AV1 decoder to most devices, YouTube uses it". 9to5Google. Retrieved 2024-05-08.
  23. ^ "Does CVE-2024-1580 affect my app? | Apple Developer Forums". developer.apple.com. Retrieved 2024-05-08.
  24. ^ "rav1e/doc/STRUCTURE.md at c7c72b5530e391211c5d5f32b16394d1c7dc00cc · xiph/rav1e". GitHub. Retrieved 2024-05-08.
  25. ^ "CHANGELOG.md · master · Alliance for Open Media / SVT-AV1 · GitLab". GitLab. 2024-03-13. Retrieved 2024-05-08.
  26. ^ Group, Internet Security Research (2023-03-09). "A Safer High Performance AV1 Decoder". www.memorysafety.org. Retrieved 2024-05-08.

External links[edit]