GStreamer via PyGObject (introspection)

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

GStreamer via PyGObject (introspection)

Tal Liron

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.

-Tal


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GStreamer via PyGObject (introspection)

Tim-Philipp Müller-2
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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

Tal Liron

On 01/-10/-28163 01:59 PM, Tim-Philipp Müller wrote:
> On Wed, 2011-09-07 at 15:44 -0500, Tal Liron wrote:
>
>> Is PyGObject supported by GStreamer?
> 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.
>
Thanks for the response! Well, consider my report to be a bug report. :)
The main issue seems to be that messages coming in are always None,
which means GI can't be used for anything except the most trivial
GStreamer applications right now.

I hope GI testing can become more intrinsic in GStreamer. It is not only
the way forward in the GNOME world, but it also will vastly simplify the
maintenance of bindings for various languages in GStreamer. More effort
into GI right now will reduce a lot of effort down the line.

The blog that you linked me to is actually farther behind than I am... I
guess I'm the cutting edge. :/

-Tal
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

Tim-Philipp Müller-2

> Thanks for the response! Well, consider my report to be a bug report. :)
> The main issue seems to be that ...

Please file a bug report in our bug tracker, thanks!

(Or even better: track down the issue yourself and submit a patch)

 Cheers
  -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

tomw
Anyone aware of a solution to the NONE message issue? Would moving to gstreamer0.11 fix this?
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

superlou
tomw, I installed gstreamer1.0 (0.11) via the PPA at https://launchpad.net/~o-naudan/+archive/gst0.11 (I'm on Ubuntu).  That fixed it for me.
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

goradiad
I tried gstreamer0.11 from the ppa mentioned, but still no luck.
Can someone post example code on how exactly they are getting
the EOS message from gstreamer 0.11.

Regards,
Devang Goradia.
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

Tim-Philipp Müller-2
On Tue, 2012-09-11 at 00:20 -0700, goradiad wrote:

> I tried gstreamer0.11 from the ppa mentioned, but still no luck.
> Can someone post example code on how exactly they are getting
> the EOS message from gstreamer 0.11.

That PPA is way out of date.

https://wiki.ubuntu.com/Novacut/GStreamer1.0 is a good resource with
hopefully useful links.

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Re: GStreamer via PyGObject (introspection)

superlou
>
> That PPA is way out of date.
>
> https://wiki.ubuntu.com/Novacut/GStreamer1.0 is a good resource with
> hopefully useful links.
>

I agree 100% with Tim.  I've since switched over based on the info
from the Novacut wiki.  Sorry for not updating.  I've been using it
here (https://github.com/emergent-interfaces/open-playout) ok.

- Louia