PyGObject - importing Gst 0.11

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

PyGObject - importing Gst 0.11

tomw
Hi,

after installing gstreamer0.11 I got difficulties using the new version
from pyGobject. How do I make sure gstreamer0.11 is used instead of
gstreamer0.10?

>>> from gi.repository import Gst
>>> Gst.version_string ()
'GStreamer 0.10.35'



--
tomw <[hidden email]>

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

Re: PyGObject - importing Gst 0.11

Christian Fredrik Kalager Schaller
Works fine for me, did you install 0.11 into the standard prefix? AFAIK
the latest version should automatically be picked up.

Christian

On Wed, 2012-02-15 at 15:42 +0100, tomw wrote:

> Hi,
>
> after installing gstreamer0.11 I got difficulties using the new version
> from pyGobject. How do I make sure gstreamer0.11 is used instead of
> gstreamer0.10?
>
> >>> from gi.repository import Gst
> >>> Gst.version_string ()
> 'GStreamer 0.10.35'
>
>
>


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

Re: PyGObject - importing Gst 0.11

Jason Gerard DeRose-2
In reply to this post by tomw
If you have both 0.10 and 0.11 installed, you can pick between the 2 with gi.require_version():

>>> import gi
>>> gi.require_version('Gst', '0.11')
>>> from gi.repository import Gst

On Wed, Feb 15, 2012 at 7:42 AM, tomw <[hidden email]> wrote:
Hi,

after installing gstreamer0.11 I got difficulties using the new version
from pyGobject. How do I make sure gstreamer0.11 is used instead of
gstreamer0.10?

>>> from gi.repository import Gst
>>> Gst.version_string ()
'GStreamer 0.10.35'



--
tomw <[hidden email]>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: PyGObject - importing Gst 0.11

tomw
> If you have both 0.10 and 0.11 installed, you can pick between the 2
> with gi.require_version():
>
> >>> import gi
> >>> gi.require_version('Gst', '0.11')
> >>> from gi.repository import Gst

Thanks, that did it. I was trying to solve the eos message issue [1] by
moving to 0.11 but I'm running into another issue now:

Gst.ElementFactory.make ("playbin2", "foo")

returns None. If I switch back to 0.10.35 it works.


[1] https://bugzilla.gnome.org/show_bug.cgi?id=631901

--
tomw <[hidden email]>

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

Re: PyGObject - importing Gst 0.11

Tim-Philipp Müller-2
On Wed, 2012-02-15 at 17:55 +0100, tomw wrote:

> Thanks, that did it. I was trying to solve the eos message issue [1] by
> moving to 0.11 but I'm running into another issue now:
>
> Gst.ElementFactory.make ("playbin2", "foo")
>
> returns None. If I switch back to 0.10.35 it works.

That's because it has been renamed to "playbin" in 0.11 (the old playbin
went away).

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel