GStreamer via PyGObject (introspection)

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Sep 8 02:41:40 PDT 2011


On Wed, 2011-09-07 at 15:44 -0500, Tal Liron wrote:

> Is PyGObject supported by GStreamer?
> 
> I'm having lots of trouble getting it to run well, and there's no
> information on the web. :/
> 
> For one, I'm facing the same problems this person has:
> 
> http://stackoverflow.com/questions/7005058/gstreamer-bus-sends-none-message
> 
> Message is always None. But, I'm also having trouble with structures:
> 
> properties = Gst.structure_from_string(properties)
> sink.set_property('stream-properties', properties)
> 
> The above causes segmentation faults.
> 
> Of course, I can always use the Python bindings for GStreamer, but I
> thought we were all supposed to use PyGObject now. My feeling is that
> perhaps this is not well supported by GStreamer despite its basis on
> GObject.

It should work in principle, and we certainly want it to work, but
GStreamer is not an easy library to wrap and it's quite likely you'll be
hittingn bugs or missing features/annotations in both
gobject-introspection and GStreamer.

You might find this blog post interesting:

 http://jderose.blogspot.com/2011/09/porting-gstreamer-apps-to-pygi.html

I think for the time being anything GStremaer/gi-related is still a bit
experimental.

 Cheers
  -Tim



More information about the gstreamer-devel mailing list