The gst-plugins-rs package provides several Rust plugins for interacting with the gstreamer multimedia framework. This page has instructions for libgstdav1d and libgstgtk4.
The libgstdav1d plugin provides AV1 decoding via dav1d through gstreamer.
The libgstgtk4 plugin binds gstreamer to GTK-4.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/archive/gstreamer-1.26.5/gst-plugins-rs-gstreamer-1.26.5.tar.gz
Download MD5 sum: 04ee9a381d6e163b3ca1b35f4b347969
Download size: 2.9 MB
Estimated disk space required for libgstdav1d: 416 MB (19 MB installed)
Estimated build time for libgstdav1d: 0.3 SBU (with parallelism=8)
Estimated disk space required for libgstgtk4: 831 MB (51 MB installed)
Estimated build time for libgstgtk4: 0.5 SBU (with parallelism=8)
git-2.51.0, gst-plugins-base-1.26.5, and rustc-1.89.0
An Internet connection is needed for building this package. The system certificate store may need to be set up with make-ca-1.16.1 before building this package.
Install libgstdav1d by running the following commands:
cd video/dav1d && cargo build --release
This package does not come with a test suite.
Now, as the root
user:
install -vm755 ../../target/release/libgstdav1d.so /usr/lib/gstreamer-1.0
Install libgstgtk4 by running the following commands:
cd video/gtk4 && cargo build --release
This package does not come with a test suite, but its basic functionality can be tested after installation.
Now, as the root
user:
install -vm755 ../../target/release/libgstgtk4.so /usr/lib/gstreamer-1.0
To test the basic functionality of the package, issue: gst-launch-1.0 videotestsrc num-buffers=60 ! gtk4paintablesink in a graphical terminal emulator. It should play a test video in a GTK-4 window for 2 seconds.