gstreamer/subprojects/gst-python
Xavier Claessens ecb685e2ca meson: do not invoke pkgconfig directly in gst-python
That bypass env setup by Meson and is dead code anyway because
pluginsdirs is later overriden by the proper gst_dep.get_variable()
solution.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7445>
2024-09-05 03:00:28 +00:00
..
examples example: Add example for streaming camera rith RTSP 2024-08-20 12:55:06 +00:00
gi gst-python: Fix override loading in python >= 3.12 2024-02-02 13:30:38 +01:00
old_examples python: Add a GstDiscoverer example 2023-08-21 17:16:27 +00:00
plugin meson: Don't link to python for the gi overrides module 2024-04-13 22:24:32 +00:00
scripts gst-omx: Retire the whole package 2023-07-16 19:10:03 +00:00
testsuite meson: do not invoke pkgconfig directly in gst-python 2024-09-05 03:00:28 +00:00
COPYING
gst-python.doap Release 1.24.0 2024-03-04 23:59:25 +00:00
meson.build meson: Fix Python library searching on Windows 2024-04-27 01:30:21 +00:00
meson_options.txt gst-python: Fix python3 not found in Windows 2024-07-07 16:14:05 +00:00
NEWS Release 1.24.0 2024-03-04 23:59:25 +00:00
README.md gst-python: Fix README.md 2024-05-17 14:12:08 +00:00
RELEASE Back to development 2024-03-05 12:58:57 +00:00

gst-python

gst-python is an extension of the regular GStreamer Python bindings based on gobject-introspection information and PyGObject.

It provides two things:

  1. "syntactic sugar" in form of overrides for various GStreamer APIs that makes them easier to use in Python and more pythonic; and

  2. support for APIs that aren't available through the regular gobject-introspection based bindings, such as e.g. GStreamer's fundamental GLib types such as Gst.Fraction, Gst.IntRange etc.

Prerequisites

These libraries are needed to build gst-python:

  • gstreamer core
  • gst-plugins-base
  • pygobject

You will also need pygobject and glib installed. On debian-based distros you can install these with:

sudo apt build-dep python3-gst-1.0

Only Python 3 is supported.

Building

meson setup builddir && ninja -C builddir
meson install -C builddir

Using

Once installed in the right place, you don't need to do anything in order to use the overrides. They will be loaded automatically on

import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst

Note that additional imports will be required for other GStreamer libraries to make use of their respective APIs, e.g. GstApp or GstVideo.

License

gst-python is licensed under the LGPL 2.1