This is a GStreamer plugin for scap. It provides a scapsrc
element, which is a video source that captures screencasts.
To build the plugin, ensure you have Rust and Cargo installed.
Build the plugin in debug mode:
$ cargo build
or release mode:
$ cargo build --release
Tell GStreamer where the plugin can be found (change /target/debug
to /target/release
if you built in release mode):
$ export GST_PLUGIN_PATH=`pwd`/target/debug
You can easily create a pipeline from the command line with the following command:
$ GST_DEBUG=scapsrc:5 gst-launch-1.0 scapsrc ! videoconvert ! autovideosink
Discard GST_DEBUG=scapsrc:5
if debug logs are not needed.
Examples showing how to use the plugin programatically will come soon.
MIT license (LICENSE-MIT) or Apache License, Version 2.0 (LICENSE-APACHE)