Jump to content

Draft:Dav1d

From Wikipedia, the free encyclopedia
  • Comment: There has been good attempts to source the article, but the excessive use of unreliable sources (Youtube, Medium, etc...) is highly discouraged. Are you sure there are no other website and sources supporting the claims? I'd assume at least Dav1d would have a mention of some of these Youtube supported claims in their own website. ABG (Talk/Report any mistakes here) 04:24, 18 July 2024 (UTC)
  • Comment: The effort in creating this article is commendable, but it lacks reliable sources. Please review WP:RS and WP:V and add the necessary citations accordingly. Hitro talk 13:57, 21 May 2024 (UTC)

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][2] It is designed to be fast, small, cross-platform and multithreaded.[3][4]

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,[5] 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.[6]

History

[edit]

The Alliance for Open Media released AV1 in March 2018[7] 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[8] both in terms of encoding and decoding speeds. The VideoLAN and FFmpeg communities, who had previously written faster software decoders for both VP8[9] and VP9[10] video formats, saw this as a barrier to entry for AV1 and decided to resolve this by writing a faster software decoder[11]

In October 2018, Ronald Bultje and Jean-Baptiste Kempf announced dav1d at the VideoLAN Developer Days 2018 conference.[12][3] 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.[13][14] 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.[15][16] Subsequent releases, from 0.7.1 to 1.0, shifted focus to high-bitdepth SIMD optimizations.[17]

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.[4] 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.

In 2022, benchmarks were published showing that real-time AV1 playback of 720p 30fps at 2 Mbps was possible for low-end android devices and 1080p 30 fps at 4 Mbps was possible mid-range and high-end android devices.[4] In February 2024, researchers showed that when compared to other optimized software decoders AV1 thanks to dav1d is optimal from a Bjøntegaard-Delta bit-rate (BD-Rate) vs energy point of view.[18]

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.[19]

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.[20] This change was subsequently released in April 2019 as part of Chrome 74.

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.[21]

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

Support for dav1d in FFmpeg has been available since the release of version 4.2 "Ada", in August 2019.[24]

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

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

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.[28] 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.[29]

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.[30][31] Optimized SIMD functions from dav1d have also been imported into SVT-AV1.[32] 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.[33]

References

[edit]
  1. ^ "dav1d - dav1d is an AV1 decoder - VideoLAN". www.videolan.org. Retrieved 2024-04-26.
  2. ^ "Content Providers & Distributors". Alliance for Open Media. Retrieved 2024-07-17.
  3. ^ a b Kempf, Jean-Baptiste (2018-10-01). "Introducing dav1d: a new AV1 decoder". jbkempf.com. Retrieved 2024-04-26.
  4. ^ a b c Grunnau, Janne; Kempf, Jean-Baptiste; Storsjo, Martin; Arumugam, Jeeva Raj; Patankar, Kaustubh; Srinivasan, Mukund; Bultje, Ronald; Gramner, Henrik; Trudeau, Luc; Le Couviour Tuffet, Victorien; Lei, Zhijun; Katsavounidis, Ioannis; Ronca, David (2022-10-03). "Benchmarking and analysis of AV1 software decoding on Android devices". In Tescher, Andrew G.; Ebrahimi, Touradj (eds.). Applications of Digital Image Processing XLV. Vol. Applications of Digital Image Processing XLV. SPIE. p. 27. doi:10.1117/12.2633692. ISBN 978-1-5106-5436-5. {{cite book}}: |journal= ignored (help)
  5. ^ "dav1d license". dav1d repository. 2019-03-01. Retrieved 2024-07-17.
  6. ^ Stallman, Richard (2001-02-26). "Xiph.org announces Vorbis Beta 4 and the Xiph.org". lwn.net. Retrieved 2024-04-29.
  7. ^ "The Alliance for Open Media Kickstarts Video Innovation Era with AV1 Release". Alliance for Open Media. 2018-03-28. Retrieved 2024-07-17.
  8. ^ Ozer, Jan (2018-08-31). "AV1: A First Look". streaming media.
  9. ^ Glaser, Fiona (2010-08-11). "Announcing the world's fastest VP8 decoder: ffvp8". Diary Of An x264 Developer. Archived from the original on 2010-08-11. Retrieved 2024-05-03.
  10. ^ Bultje, Ronald S. (2014-02-22). "The world's fastest VP9 decoder: ffvp9". Random thoughts. Retrieved 2024-05-03.
  11. ^ Bultje, Ronald S. (2019-10-21). "High-efficiency AV1: dav1d and Eve-AV1" (PDF). aomedia.org. AOMedia Research Symposium 2019.
  12. ^ Kempf, Jean-Baptiste; Bultje, Ronald S. (2018-09-28). "dav1d is an AV1 (video) decoder" (PDF). people.videolan.org. Video Dev Days 2018.
  13. ^ Kempf, Jean-Baptiste (2018-12-11). "First release of dav1d, the AV1 decoder". jbkempf.com. Retrieved 2024-04-29.
  14. ^ Larabel, Michael (2018-12-11). "DAV1D v0.1 AV1 Video Decoder Released". Phoronix. Retrieved 2024-07-17.
  15. ^ Kempf, Jean-Baptiste (2020-06-22). "dav1d 0.7.1". jbkempf.com. Retrieved 2024-04-29.
  16. ^ Kempf, Jean-Baptiste (2020-02-02). "dav1d, 1 year later" (PDF). FOSDEM 2020 Archive.
  17. ^ Kempf, Jean-Baptiste (2021-08-01). "dav1d 0.9.1: a ton of asm". jbkempf.com. Retrieved 2024-04-29.
  18. ^ Kränzler, Matthias; Herglotz, Christian; Kaup, André (2024-02-14), A Comprehensive Review of Software and Hardware Energy Efficiency of Video Decoders, arXiv:2402.09001
  19. ^ Kempf, Jean-Baptiste (2018-12-19). "How to use AV1 with open source tools". jbkempf.com. Retrieved 2024-05-07.
  20. ^ Guilbert, Thomas (2019-03-29). "Use dav1d by default". chromium.googlesource.com. Retrieved 2024-05-07.
  21. ^ Egge, Nathan; Montgomery, Christopher (2019-05-23). "Firefox brings you smooth video playback with the world's fastest AV1 decoder". Mozilla Hacks – the Web developer blog. Retrieved 2024-05-07.
  22. ^ BigAppleVideo (2019-06-25). BAV2019 - AV1 in video collaboration. Retrieved 2024-05-07 – via Vimeo.
  23. ^ Thomas, Davies; Chen, Sijia (2020-12-15). "The AV1 video codec comes to Webex!". blog.webex.com. Retrieved 2024-05-07.
  24. ^ Larabel, Michael (2019-08-06). "FFmpeg 4.2 Released With AV1 Decoding Support, GIF Parser". Phoronix. Retrieved 2024-05-07.
  25. ^ "Netflix Now Streaming AV1 on Android". Netflix Technology Blog. 2020-02-05. Retrieved 2024-05-07.
  26. ^ "How Meta brought AV1 to Reels". Engineering at Meta. 2023-02-21. Retrieved 2024-05-07.
  27. ^ Lei, Ryan Zhijun; Zhou, Chenguang; Chen, Haoteng; Shi, Cheng; Stejerean, Cosmin; Shi, Haixia; Zhang, Juehui; Gera, Abhishek (2023-10-04). "Best practices of mixed-codec adaptive bitrate streaming". In Tescher, Andrew G.; Ebrahimi, Touradj (eds.). Applications of Digital Image Processing XLVI. Vol. Applications of Digital Image Processing XLVI. SPIE. p. 16. doi:10.1117/12.2673195. ISBN 978-1-5106-6562-0. {{cite book}}: |journal= ignored (help)
  28. ^ Schoon, Ben (2024-04-19). "Android adds new software-based AV1 decoder to most devices, YouTube uses it". 9to5Google. Retrieved 2024-05-08.
  29. ^ "Does CVE-2024-1580 affect my app? | Apple Developer Forums". developer.apple.com. Retrieved 2024-05-08.
  30. ^ Barbato, Luca; Barr, David M.; Molodetskikh, Ivan; Montgomery, Christopher; S.P., Shreevari; Zumer, Raphaël A.; Egge, Nathan E. (2019-09-06). "Rust AV1 encoder (Rav1e) project". In Tescher, Andrew G.; Ebrahimi, Touradj (eds.). Applications of Digital Image Processing XLII. Vol. Applications of Digital Image Processing XLII. SPIE. p. 21. doi:10.1117/12.2529592. ISBN 978-1-5106-2967-7. {{cite book}}: |journal= ignored (help)
  31. ^ Vibhoothi (2019-11-27). "rav1e and gains on ARM Devices |". Pretend to know what I am doing. Retrieved 2024-07-17.
  32. ^ "SVT-AV1 · change log". GitLab. 2024-03-13. Retrieved 2024-05-08.
  33. ^ Josh, Aas (2023-03-09). "A Safer High Performance AV1 Decoder". www.memorysafety.org. Retrieved 2024-05-08.
[edit]