PyGObject - how to use editing services

Gernot Cseh gernot.cseh at gmail.com
Tue Jun 5 02:14:35 PDT 2012


Hi, I'm currently playing around with the gstreamer-0.11 and object introspection using pygobject 3.0.4 which can be found at https://live.gnome.org/PyGObject

The thing is that I have no idea how to use (import) the gstreamer-editing-services. Do they support introspection? 
Seems that they do…

find . -name *.gir
./gst/git/gst-editing-services/ges/GES-0.11.gir
./gst/git/gstreamer/gst/Gst-0.11.gir
./gst/git/gstreamer/libs/gst/check/GstCheck-0.11.gir
./gst/git/gstreamer/libs/gst/net/GstNet-0.11.gir
./gst/git/gstreamer/libs/gst/controller/GstController-0.11.gir
./gst/git/gstreamer/libs/gst/base/GstBase-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/video/GstVideo-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/app/GstApp-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/pbutils/GstPbutils-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/rtp/GstRtp-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/tag/GstTag-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/riff/GstRiff-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/audio/GstAudio-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/rtsp/GstRtsp-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/interfaces/GstInterfaces-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/sdp/GstSdp-0.11.gir
./gst/git/gst-plugins-base/gst-libs/gst/fft/GstFft-0.11.gir

Does anyone know how gi.repository know where to search for the libraries that support introspection

import gi
gi.require_version('Gst', '0.11')

from gi.repository import GObject
from gi.repository import Gst
from gi.repository import GstPbutils

assert Gst.version()[:2] == (0, 11)

# everything works fine till here ...
from gi.repository import GES

GObject.threads_init()
Gst.init(None)

Tank you very much!
Regards, Gernot




More information about the gstreamer-devel mailing list