dav1d ¶
dav1d is an AV1 decoder which is much faster than libaom in BLFS. Note that unlike libaom, it does not contain an encoder.
Download link:
https://downloads.videolan.org/pub/videolan/dav1d/1.2.1/dav1d-1.2.1.tar.xz
Build process is simple MNNI.
Test the package:
git clone https://code.videolan.org/videolan/dav1d-test-data.git ../tests/dav1d-test-data --depth 1 meson configure -Dtestdata_tests=true ninja test
Use dav1d with libavif ¶
Just append -DAVIF_CODEC_DAV1D=ON
to the cmake
command for libavif provided by the BLFS book.
Use dav1d with gstreamer ¶
We need the gstreamer plugin for dav1d which is a part of gst-plugins-rs.
Download link: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/archive/0.10.8/gst-plugins-rs-0.10.8.tar.gz
Dependencies: dav1d, gst-plugins-base, rustc, and an Internet connection
Build and install process:
cd video/dav1d cargo build --release sudo install -vm755 ../../target/release/libgstdav1d.so /usr/lib/gstreamer-1.0
Note: The build process downloads crates from crates.io and gitlab.freedesktop.org.
With the dav1d plugin I can play 4K AV1 video smoothly, but with the libaom plugin many frames are dropped.