arturoc / gstreamer1.0-rs

Idiomatic bindings for Gstreamer on Rust.
MIT License
36 stars 14 forks source link

Gstreamer 1.0 Rust bindings

Build Status

Idiomatic bindings for Gstreamer on Rust.

From version 0.8 on this crate is now autogenerated from gstreamer and hosted here instead: https://github.com/sdroege/gstreamer-rs. If you want to keep using the old API you'll need to stick to version 0.7.

To use it you need to install GStreamer first, in linux it's usually installed with the distribution or avaliable through the package manager in other platforms from: http://gstreamer.freedesktop.org/data/pkg/

The wrapped objects do the ref/unref of the native GObjects themselves when references are dropped.

Most of the communication with the library can be done through mpsc::Receivers to get messages, samples...

To build the examples:

cargo test

target/examples/appsink

target/examples/appsrc

target/examples/gst-launch gstreamer-pìpeline

target/examples/playbin mediafile

target/examples/v4l2

The docs can be found at http://rin.rs/docs/gst