{"id":23446000,"url":"https://github.com/snapview/gstreamer-rs","last_synced_at":"2025-04-13T15:11:49.784Z","repository":{"id":66187260,"uuid":"270868749","full_name":"snapview/gstreamer-rs","owner":"snapview","description":"GStreamer bindings for Rust","archived":false,"fork":false,"pushed_at":"2020-09-29T15:06:06.000Z","size":13670,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T06:05:45.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snapview.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-09T00:57:23.000Z","updated_at":"2025-03-23T14:54:45.000Z","dependencies_parsed_at":"2023-02-22T17:30:52.121Z","dependency_job_id":null,"html_url":"https://github.com/snapview/gstreamer-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapview%2Fgstreamer-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapview%2Fgstreamer-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapview%2Fgstreamer-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snapview%2Fgstreamer-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snapview","download_url":"https://codeload.github.com/snapview/gstreamer-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732489,"owners_count":21152852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-23T20:28:59.097Z","updated_at":"2025-04-13T15:11:49.778Z","avatar_url":"https://github.com/snapview.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gstreamer-rs [![crates.io](https://img.shields.io/crates/v/gstreamer.svg)](https://crates.io/crates/gstreamer) [![pipeline status](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/badges/master/pipeline.svg)](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/commits/master)\n\n[GStreamer](https://gstreamer.freedesktop.org/) bindings for Rust.\nDocumentation can be found [here](https://slomo.pages.freedesktop.org/rustdocs/gstreamer/gstreamer/).\n\nThese bindings are providing a safe API that can be used to interface with\nGStreamer, e.g. for writing GStreamer-based applications and GStreamer plugins.\n\nThe bindings are mostly autogenerated with [gir](https://github.com/gtk-rs/gir/)\nbased on the [GObject-Introspection](https://wiki.gnome.org/Projects/GObjectIntrospection/)\nAPI metadata provided by the GStreamer project.\n\n## Table of Contents\n1. [Installation](#installation)\n   1. [Linux/BSDs](#installation-linux)\n   1. [macOS](#installation-macos)\n   1. [Windows](#installation-windows)\n1. [Getting Started](#getting-started)\n1. [License](#license)\n1. [Contribution](#contribution)\n\n\u003ca name=\"installation\"/\u003e\n\n## Installation\n\nTo build the GStreamer bindings or anything depending on them, you need to\nhave at least GStreamer 1.8 and gst-plugins-base 1.8 installed. In addition,\nsome of the examples/tutorials require various GStreamer plugins to be\navailable, which can be found in gst-plugins-base, gst-plugins-good,\ngst-plugins-bad, gst-plugins-ugly and/or gst-libav.\n\n\u003ca name=\"installation-linux\"/\u003e\n\n### Linux/BSDs\n\nYou need to install the above mentioned packages with your distributions\npackage manager, or build them from source.\n\nOn Debian/Ubuntu they can be installed with\n\n```\n$ apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \\\n      gstreamer1.0-plugins-base gstreamer1.0-plugins-good \\\n      gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \\\n      gstreamer1.0-libav libgstrtspserver-1.0-dev libges-1.0-dev\n```\n\nThe minimum required version of the above libraries is \u003e= 1.8. If you\nbuild the gstreamer-player sub-crate, or any of the examples that\ndepend on gstreamer-player, you must ensure that in addition to the\nabove packages, `libgstreamer-plugins-bad1.0-dev` is installed and\nthat the version is \u003e= 1.12. See the `Cargo.toml` files for the full\ndetails,\n\n```\n# Only if you wish to install gstreamer-player, make sure the version\n# of this package is \u003e= 1.12.\n$ apt-get install libgstreamer-plugins-bad1.0-dev\n```\n\nPackage names on other distributions should be similar.\nPlease submit a pull request with instructions for yours.\n\n\u003ca name=\"installation-macos\"/\u003e\n\n### macOS\n\nYou can install GStreamer and the plugins via [Homebrew](https://brew.sh/) or\nby installing the [binaries](https://gstreamer.freedesktop.org/data/pkg/osx/)\nprovided by the GStreamer project.\n\n#### Homebrew\n\n```\n$ brew install gstreamer gst-plugins-base gst-plugins-good \\\n      gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server \\\n      gst-editing-services\n```\n\nIf you wish to install the gstreamer-player sub-crate, make sure the\nversion of these libraries is \u003e= 1.12. Otherwise, a version \u003e= 1.8 is\nsufficient.\n\n#### GStreamer Binaries\n\nYou need to download the *two* `.pkg` files from the GStreamer website and\ninstall them, e.g. `gstreamer-1.0-1.12.3-x86_64.pkg` and\n`gstreamer-1.0-devel-1.12.3-x86_64.pkg`.\n\nAfter installation, you also need to install `pkg-config` (e.g. via Homebrew)\nand set the `PKG_CONFIG_PATH` environment variable\n\n```\n$ export PKG_CONFIG_PATH=\"/Library/Frameworks/GStreamer.framework/Versions/Current/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}\"\n```\n\n\u003ca name=\"installation-windows\"/\u003e\n\n### Windows\n\nYou can install GStreamer and the plugins via [MSYS2](http://www.msys2.org/)\nwith `pacman` or by installing the\n[binaries](https://gstreamer.freedesktop.org/data/pkg/windows/) provided by\nthe GStreamer project.\n\n#### MSYS2 / pacman\n\n```\n$ pacman -S pkg-config mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base \\\n      mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad \\\n      mingw-w64-x86_64-gst-plugins-ugly mingw-w64-x86_64-gst-libav \\\n      mingw-w64-x86_64-gst-rtsp-server\n```\n\nIf you wish to install the gstreamer-player sub-crate, make sure the\nversion of these libraries is \u003e= 1.12. Otherwise, a version \u003e= 1.8 is\nsufficient.\n\nNote that the version of `pkg-config` included in `MSYS2` is\n[known to have problems](https://github.com/rust-lang/pkg-config-rs/issues/51#issuecomment-346300858)\ncompiling GStreamer, so you may need to install another version. One option\nwould be [`pkg-config-lite`](https://sourceforge.net/projects/pkgconfiglite/).\n\n#### GStreamer Binaries\n\nYou need to download the *two* `.msi` files for your platform from the\nGStreamer website and install them, e.g. `gstreamer-1.0-x86_64-1.12.3.msi` and\n`gstreamer-1.0-devel-x86_64-1.12.3.msi`.\n\nAfter installation, you also need to install `pkg-config` (e.g. via MSYS2 or\nfrom [here](https://sourceforge.net/projects/pkgconfiglite/))\nand set the `PKG_CONFIG_PATH` environment variable\n\n```\n$ export PKG_CONFIG_PATH=\"c:\\\\gstreamer\\\\1.0\\\\x86_64\\\\lib\\\\pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}\"\n```\n\n\u003ca name=\"getting-started\"/\u003e\n\n## Getting Started\n\nThe API reference can be found\n[here](https://slomo.pages.freedesktop.org/rustdocs/gstreamer/gstreamer/), however it is\nonly the Rust API reference and does not explain any of the concepts.\n\nFor getting started with GStreamer development, the best would be to follow\nthe [documentation](https://gstreamer.freedesktop.org/documentation/) on the\nGStreamer website, especially the [Application Development\nManual](https://gstreamer.freedesktop.org/documentation/application-development/).\nWhile being C-centric, it explains all the fundamental concepts of GStreamer\nand the code examples should be relatively easily translatable to Rust. The\nAPI is basically the same, function/struct names are the same and everything\nis only more convenient (hopefully) and safer.\n\nIn addition there are\n[tutorials](https://gstreamer.freedesktop.org/documentation/tutorials/) on the\nGStreamer website. Many of them were ported to Rust already and the code can\nbe found in the\n[tutorials](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/tree/master/tutorials)\ndirectory.\n\nSome further examples for various aspects of GStreamer and how to use it from\nRust can be found in the\n[examples](https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/tree/master/examples)\ndirectory.\n\nVarious GStreamer plugins written in Rust can be found in the\n[gst-plugins-rs](https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs)\nrepository.\n\n\u003ca name=\"license\"/\u003e\n\n## LICENSE\n\ngstreamer-rs and all crates contained in here are licensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\nat your option.\n\nGStreamer itself is licensed under the Lesser General Public License version\n2.1 or (at your option) any later version:\nhttps://www.gnu.org/licenses/lgpl-2.1.html\n\n\u003ca name=\"contribution\"/\u003e\n\n## Contribution\n\nAny kinds of contributions are welcome as a pull request.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in gstreamer-rs by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapview%2Fgstreamer-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnapview%2Fgstreamer-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnapview%2Fgstreamer-rs/lists"}