GStreamer multimedia framework
Find a file
2021-09-24 16:16:14 -03:00
ges Update bindings with latests GtkSharp 2021-08-05 15:37:27 +02:00
girs Update webrtc bindings 2021-06-24 14:54:53 -04:00
samples samples: Explicitly use Gtk range 2020-02-17 15:46:22 -03:00
sources Release 1.19.2 2021-09-23 01:36:17 +01:00
subprojects Merging gstreamer-sharp 2021-09-24 16:16:14 -03:00
Tests meson: Fix test failures on the CI around nunit-runner 2019-04-13 12:13:48 +05:30
.gitignore Remove autotools 2017-10-12 09:45:50 +02:00
.gitlab-ci.yml Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03:00
AUTHORS Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03:00
ChangeLog Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03:00
COPYING Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03:00
gacutil_install.py Add meson build definitions 2017-08-29 22:20:46 -03:00
generate_code.py build: Generate the list of files to use in meson.build 2019-02-25 13:28:51 -03:00
gstreamer-sharp-1.0.pc.in pkg-config: Depend on gio#/glib# instead of gtk# 2014-10-12 15:08:47 +02:00
gstreamer-sharp.csproj build: update solution files 2014-08-07 01:03:46 +02:00
gstreamer-sharp.sln Added solution file 2013-12-21 16:52:27 +01:00
gstreamer-sharp.snk build: Make distcheck pass 2014-08-06 23:21:40 +02:00
meson.build Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03:00
meson_options.txt Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03:00
nuget.py tests: Test SDPMessage creation 2018-03-21 09:48:32 -03:00
README.md README: Update doc on how to update generated files 2020-10-16 16:21:31 -04:00
update_sources.py update-all: Handle using the update-all target from gst-build 2019-02-26 11:18:24 -03:00

gstreamer-sharp

gstreamer-sharp is a .NET/mono binding for Gstreamer generated from gobject-introspection data using the bindinator. gstreamer-sharp currently wraps the API exposed by Gstreamer 1.12 and is compatible with newer gstreamer versions. It was developed under GSoC 2014 for the mono organization. gstreamer-sharp covers the core and base gstreamer libraries.

Prerequisites

These libraries are needed for gstreamer-sharp to compile:

  • gstreamer core, base and good 1.14 or higher
  • gtk-sharp 3.22.0 or higher - NOTE: This can be built as a meson subproject.

You will also need various .NET/mono bits (mcs and al). On debian-based distros you can install these with:

sudo apt-get install mono-mcs mono-devel

Building

meson build && ninja -C build/

Installing

This package is not installed as part of the system. It should either be built into a Nuget or used as a subproject like this. For example, with meson, one would use it like this:

subproject('gstreamer-sharp', default_options: ['install=false'])
gst_sharp = subproject('gstreamer-sharp')
gst_sharp_dep = gst_sharp.get_variable('gst_sharp_dep')

HACKING

While hacking on the code generator or the .metadata files, you will need to force code regeneration with ninja update-code, a full rebuild is triggered right after.

Updating to new GStreamer version

Make sure you are in an environement where latest .gir files are available (either installed or through the $GI_TYPELIB_PATH env var), those files are automatically copied to girs/.

ninja -C build update-all

or if using gst-build, start gst-env and then run

ninja -C build gstreamer-sharp@@update-all
  • Verify newly copied gir files in girs/ and git add them
  • Verify newly generated code and git add files in sources/generated/ and ges/generated
  • Commit

Supported Platforms

  • Linux
  • Mac OS X

Quick Start

gstreamer-sharp provides ports of all samples from gst-docs in the samples folder.

Documentation

Since this is a gobject-introspection binding the recommended documentation is the native gstreamer documentation. A monodoc generated documentation will be installed.

Roadmap

  • Add an easy way to compile on Windows
  • iOS and Android support
  • Provide binaries for these platforms

License

gstreamer-sharp is licensed under the LGPL 2.1