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
2024-12-10 14:19:29 +00:00
.config ci: Use cargo nextest as the test runner and export junit reports 2024-10-03 10:32:22 +00:00
.gitlab/issue_templates gitlab: add issue template 2023-06-15 11:01:15 +00:00
audio speechmatics: expose properties for controlling punctuation joining 2024-12-09 17:29:47 +00:00
ci ci: Don't consider no runnable tests an error 2024-11-30 14:52:19 +02:00
docs gst_plugins_cache.json: generate tracer objects documentation 2024-12-10 14:19:29 +00:00
generic Fix / silence various new Rust 1.83 clippy warnings 2024-11-30 14:57:24 +02:00
mux fmp4mux: Fix state cleanup on flush 2024-12-04 11:12:55 +00:00
net quinn: fix clippy warnings 2024-12-09 12:26:48 +00:00
text textwrap: fix text accumulating for longer than accumulate-time 2024-11-29 22:09:37 +00:00
tutorial Remove once_cell dependency 2024-10-21 17:53:18 +00:00
utils togglerecord: release rec_state before pushing buffer 2024-12-02 10:36:23 +01:00
version-helper version-helper: Use non-deprecated type alias from toml_edit 2024-03-19 18:16:42 +02:00
video cea608tott: output generated text on carriage return 2024-12-09 18:25:06 +00:00
.gitignore Remove Cargo.lock from .gitignore 2024-02-16 14:25:54 +02:00
.gitlab-ci.yml ci: Don't consider no runnable tests an error 2024-11-30 14:52:19 +02:00
Cargo.lock quinn: update Cargo.lock 2024-12-09 12:26:48 +00:00
Cargo.toml cargo: Default to thin lto for the release profile 2024-11-18 16:33:21 +02:00
cargo_wrapper.py meson: Add nasm to PATH if meson can find it 2024-01-26 17:37:38 +00:00
CHANGELOG.md Update CHANGELOG.md for 0.13.3 release 2024-11-12 11:51:30 +02:00
deny.toml deny: Remove obsolete entries 2024-11-30 15:01:01 +02:00
dependencies.py meson: Fix document of dependencies.py argument 2024-11-27 15:50:54 +01: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/quinn: Add examples for QUIC multiplexing & RoQ 2024-11-28 17:52:18 +00:00
meson_options.txt relationmeta: Add relationmeta2onvifmeta element 2024-10-23 10:27:31 +00:00
README.md Update docs for quinn elements 2024-11-18 10:59:53 +05:30
rustfmt.toml rustfmt.toml: Add file 2022-04-05 19:13:59 +03:00
set-release-date-in-manifest.py version-helper: Add script for setting the release date in Cargo.toml 2024-11-29 10:42:06 +00:00
typos.toml aws: add wrapper for the polly text to speech API 2024-11-05 08:46:48 +00:00
update-version.sh update-version.sh: Also update versions in Cargo.lock 2023-03-23 10:44:18 -04: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

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

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

  • net

    • aws: Various elements for Amazon AWS services using the AWS SDK library

      • s3src/s3sink: A source and sink element to talk to the Amazon S3 object storage system.
      • s3putobjectsink: A sink element to talk to Amazon S3. Uses PutObject instead of multi-part upload like s3sink.
      • s3hlssink: A sink element to store HLS streams on Amazon S3.
      • awstranscriber: an element wrapping the AWS Transcriber service.
      • awstranscribeparse: an element parsing the packets of the AWS Transcriber service.
    • hlssink3: An element for generating MPEG-TS HLS streams.

    • ndi: An NDI plugin containing a source, sink and device provider.

    • onvif: Various elements for parsing, RTP (de)payloading, overlaying of ONVIF timed metadata.

    • quinn: Transfer data over the network using QUIC

      • quinnquicsink/quinnquicsrc: Send and receive data using QUIC
      • quinnquicmux/quinnquicdemux: Multiplex and de-multiplex streams and datagram using QUIC
      • quinnroqmux/quinnroqdemux: Multiplex and de-multiplex RTP streams over QUIC
    • raptorq: Encoder/decoder element for RaptorQ RTP FEC mechanism.

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

    • rtp:

      • rtpav1pay / rtpav1depay: RTP (de)payloader for the AV1 video codec.

      • rtpgccbwe: RTP bandwidth estimator based on the Google Congestion Control algorithm.

    • webrtc: WebRTC elements, with batteries included Sink elements for specific signalling protocols.

    • webrtchttp: Simple WebRTC HTTP elements (WHIP/WHEP).

  • 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.

    • 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.
      • videocompare: Compare similarity of video frames. The element can use different hashing algorithms like Blockhash, DSSIM, and others.
    • webp: WebP decoder based on the libwebp-sys-2 library.

  • mux

    • flavors: FLV demuxer based on the flavors library.

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

    • mp4: A non-fragmented MP4 muxer for generating MP4 files.

  • 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.
    • livesync: Element to maintain a continuous live stream from a potentially unstable source.

    • togglerecord: Element to enable starting and stopping multiple streams together.

    • tracers: Plugin with multiple tracers:

      • buffer-lateness: Records lateness of buffers and the reported latency for each pad in a CSV file. Contains a script for visualization.
      • pipeline-snapshot: Creates a .dot file of all pipelines in the application whenever requested.
      • queue-levels: Records queue levels for each queue in a CSV file. Contains a script for visualization.
    • uriplaylistbin: Helper bin to gaplessly play a list of URIs.

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.

In case cargo complains about dependency versions after a git pull, cargo update may be able to resolve those.

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.