GStreamer plugins written in Rust. *These plugins can be used by applications written in other programming languages as well of course, they are just like any other GStreamer plugins available on the system.*
Find a file
2022-05-19 17:55:07 +03:00
audio Update minimum supported GStreamer version to 1.14 2022-04-07 12:41:54 +03:00
ci dav1ddec: Bump dependency for dav1d 1.0.0 2022-05-11 08:29:15 -04:00
generic fmp4mux: Add support for ONVIF timed XML metadata 2022-05-19 17:55:07 +03:00
net rtponvifdepay: Set caps on the source pad 2022-05-13 13:34:30 +03:00
text textahead: PadTemplate::caps() returns a caps reference now 2022-05-08 13:31:10 +03:00
tutorial tutorial/sinesrc: Use pushsrc as direct superclass in the glib::wrapper macro too 2022-05-10 10:05:48 +00:00
utils fallbackswitch: Move active_sinkpad out of State into its own Mutex 2022-05-12 16:52:07 +02:00
version-helper Update minimum supported Rust version to 1.57 2022-02-21 23:32:32 +01:00
video dav1ddec: Write src_query() in match syntax for easier extensibility 2022-05-11 10:02:27 -04:00
.gitignore .gitignore builddir 2021-06-03 09:19:31 +02:00
.gitlab-ci.yml ci: Generate coverage report also for crates with external dependencies 2022-05-12 18:32:04 +03:00
Cargo.toml fmp4mux: Add to default workspace members 2022-05-12 18:31:22 +03:00
cargo_wrapper.py meson: Cleanup our meson integration 2022-04-20 10:21:59 -04:00
deny.toml deny: Update 2022-04-22 13:18:26 +00:00
LICENSE-APACHE Change license from LGPLv2.1+ to Apache2/MIT 2017-02-16 17:52:27 +02:00
LICENSE-LGPLv2 Add gst-plugin-togglerecord 2017-12-05 09:56:58 +02:00
LICENSE-MIT Change license from LGPLv2.1+ to Apache2/MIT 2017-02-16 17:52:27 +02:00
LICENSE-MPL-2.0 Add a GTK4 paintable sink plugin 2021-10-13 12:28:51 +03:00
Makefile Clean up Makefile some more 2019-07-06 10:32:22 +03:00
meson.build net/onvif: implement ONVIF metadata processing elements 2022-05-06 11:17:04 +03:00
meson_options.txt Add a GTK4 paintable sink plugin 2021-10-13 12:28:51 +03:00
README.md README: Mention the colordetect element 2022-04-26 14:59:45 +01:00
rustfmt.toml rustfmt.toml: Add file 2022-04-05 19:13:59 +03:00
update-version.sh Add update-version script 2020-04-15 20:39:31 +02:00

gst-plugins-rs crates.io pipeline status

Repository containing various GStreamer plugins and elements written in the Rust programming language.

The plugins build upon the GStreamer Rust bindings. Check the README.md of that repository also for details about how to set-up your development environment.

Plugins

You will find the following plugins in this repository:

  • generic

    • file: A Rust implementation of the standard filesrc and filesink elements

    • fmp4: A fragmented MP4/ISOBMFF/CMAF muxer for generating e.g. DASH/HLS media fragments.

    • sodium: Elements to perform encryption and decryption using libsodium.

    • threadshare: Some popular threaded elements reimplemented using common thread-sharing infrastructure.

  • net

    • hlssink3: An element for generating MPEG-TS HLS streams.

    • reqwest: An HTTP source element based on the reqwest library.

    • rusoto: Various elements for Amazon AWS services using the Rusoto library

      • s3src/s3sink: A source and sink element to talk to the Amazon S3 object storage system.
      • aws_transcriber: an element wrapping the AWS Transcriber service.
  • audio

    • audiofx: Elements to apply audio effects to a stream

    • claxon: A FLAC decoder based on the Claxon library.

    • csound: A plugin to implement audio effects using the Csound library.

    • lewton: A Vorbis decoder based on the lewton library.

    • spotify: A plugin to access content from Spotify based on the librespot library.

  • video

    • cdg: A parser and renderer for CD+G karaoke data.

    • closedcaption: Plugin to deal with closed caption streams

      • ccdetect: Detects if a stream contains active Closed Captions.
      • cea608overlay: Overlay CEA-608 / EIA-608 closed captions over a video stream.
      • cea608tojson: Convert CEA-608 / EIA-608 closed captions to a JSON stream.
      • cea608tott: Convert CEA-608 / EIA-608 closed captions to timed text.
      • jsontovtt: Convert JSON to timed text.
      • mccenc: Convert CEA-608 / EIA-608 and CEA-708 / EIA-708 closed captions to the MCC format.
      • mccparse: Parse CEA-608 / EIA-608 and CEA-708 / EIA-708 closed captions from the MCC format.
      • sccenc: Convert CEA-608 / EIA-608 closed captions to the MCC format.
      • sccparse: Parse CEA-608 / EIA-608 closed captions from the MCC format.
      • transcriberbin: Convenience bin around transcriber elements like aws_transcriber.
      • tttocea608: Convert timed text to CEA-608 / EIA-608 closed captions.
      • tttojson: Convert timed text to JSON.
    • dav1d: AV1 decoder based on the dav1d library.

    • ffv1: FFV1 decoder based on the ffv1 library.

    • flavors: FLV demuxer based on the flavors library.

    • gif: A GIF encoder based on the gif library.

    • gtk4: A GTK4 video sink that provides a GdkPaintable for UI integration.

    • hsv: Plugin with various elements to work with video data in hue, saturation, value format

      • hsvdetector: Mark pixels that are close to a configured color in HSV format.
      • hsvfilter: Apply various transformations in the HSV colorspace.
    • png: PNG encoder based on the png library.

    • rav1e: AV1 encoder based on the rav1e library.

    • videofx: Plugin with various video filters.

      • roundedcorners: Element to make the corners of a video rounded via the alpha channel.
      • colordetect: A pass-through filter able to detect the dominant color(s) on incoming frames, using color-thief.
    • webp: WebP decoder based on the libwebp-sys-2 library.

  • text

    • ahead: A plugin to display upcoming text buffers ahead.

    • json: A plugin to convert a stream of JSON objects to a higher level wrapped NDJSON output.

    • regex: A regular expression text filter plugin.

    • wrap: A plugin to perform text wrapping with hyphenation.

  • utils

    • fallbackswitch:

      • fallbackswitch: An element that allows falling back to different sink pads after a timeout based on the sink pads' priorities.
      • fallbacksrc: Element similar to urisourcebin that allows configuring a fallback audio/video if there are problems with the main source.
    • togglerecord: Element to enable starting and stopping multiple streams together.

Building

gst-plugins-rs relies on cargo-c to generate shared and static C libraries. It can be installed using:

$ cargo install cargo-c

Then you can easily build and test a specific plugin:

$ cargo cbuild -p gst-plugin-cdg
$ GST_PLUGIN_PATH="target/x86_64-unknown-linux-gnu/debug:$GST_PLUGIN_PATH" gst-inspect-1.0 cdgdec

Replace x86_64-unknown-linux-gnu with your system's Rust target triple (rustc -vV).

The plugin can also be installed system-wide:

$ cargo cbuild -p gst-plugin-cdg --prefix=/usr
$ cargo cinstall -p gst-plugin-cdg --prefix=/usr

This will install the plugin to /usr/lib/gstreamer-1.0. You can use --libdir to pass a custom lib directory such as /usr/lib/x86_64-linux-gnu for example.

Note that you can also just use cargo directly to build Rust static libraries and shared C libraries. cargo-c is mostly useful to build static C libraries and generate pkg-config files.

LICENSE

gst-plugins-rs and all crates contained in here are licensed under one of the following licenses

GStreamer itself is licensed under the Lesser General Public License version 2.1 or (at your option) any later version: https://www.gnu.org/licenses/lgpl-2.1.html

Contribution

Any kinds of contributions are welcome as a merge request.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gst-plugins-rs by you shall be licensed under the license of the plugin it is added to.

For new plugins the MPL-2 license is preferred.