PyGObject - how to use editing services

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

PyGObject - how to use editing services

hetsch
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


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

Re: PyGObject - how to use editing services

hetsch
Allready solved, it was a problem with my special gstreamer installation.

I followed this page when installing https://wiki.ubuntu.com/Novacut/GStreamer latest gstreamer.

git/gstreamer/scripts/gst-uninstalled (gst-git) just setups up the required paths for gstreamer core packages. Editing services are not respected by this file....

All i had to do ist appending the path to the editing services typelib files:
(add libges-0.11.so)
$LD_LIBRARY_PATH:~/gst/git/gst-editing-services/ges/.libs/
$DYLD_LIBRARY_PATH:/home/hetsch/gst/git/gst-editing-services/ges/.libs/
(add GES-0.11.typelib - needed for gobject-introspection)
$GI_TYPELIB_PATH:/home/hetsch/gst/git/gst-editing-services/ges/

Maybe this helps someone else,
Gernot
Reply | Threaded
Open this post in threaded view
|

Re: PyGObject - how to use editing services

hetsch
A little bit clearer:
put this somewhere near the end of git/gstreamer/scripts/gst-uninstalled

# add gstreamer-editing services
# (add libges-0.11.so)
export LD_LIBRARY_PATH=$GST/gst-editing-services/ges/.libs:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$GST/gst-editing-services/ges/.libs:$DYLD_LIBRARY_PATH
# (add GES-0.11.typelib - needed for gobject-introspection)
export GI_TYPELIB_PATH=$GST/gst-editing-services/ges/:$GI_TYPELIB_PATH

Am 05.06.2012 um 15:18 schrieb hetsch:

> Allready solved, it was a problem with my special gstreamer installation.
>
> I followed this page when installing
> https://wiki.ubuntu.com/Novacut/GStreamer latest gstreamer.
>
> git/gstreamer/scripts/gst-uninstalled (gst-git) just setups up the required
> paths for gstreamer core packages. Editing services are not respected by
> this file....
>
> All i had to do ist appending the path to the editing services typelib
> files:
> (add libges-0.11.so)
> $LD_LIBRARY_PATH:~/gst/git/gst-editing-services/ges/.libs/
> $DYLD_LIBRARY_PATH:/home/hetsch/gst/git/gst-editing-services/ges/.libs/
> (add GES-0.11.typelib - needed for gobject-introspection)
> $GI_TYPELIB_PATH:/home/hetsch/gst/git/gst-editing-services/ges/
>
> Maybe this helps someone else,
> Gernot
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/PyGObject-how-to-use-editing-services-tp4655183p4655186.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> 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 - how to use editing services

Angel Guzman Maeso
2012/6/5 Gernot Cseh <[hidden email]>
A little bit clearer:
put this somewhere near the end of git/gstreamer/scripts/gst-uninstalled

# add gstreamer-editing services
# (add libges-0.11.so)
export LD_LIBRARY_PATH=$GST/gst-editing-services/ges/.libs:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$GST/gst-editing-services/ges/.libs:$DYLD_LIBRARY_PATH
# (add GES-0.11.typelib - needed for gobject-introspection)
export GI_TYPELIB_PATH=$GST/gst-editing-services/ges/:$GI_TYPELIB_PATH


Hi Gernot,

Maybe you are interested on test with Gstreamer 1.0 aka 0.11.92 installing the lastest using the "uninstalled setup" script.

http://gstreamer.freedesktop.org/wiki/UninstalledSetup

http://cgit.freedesktop.org/gstreamer/gstreamer/tree/scripts/create-uninstalled-setup.sh

So, you can use gi.require_version('Gst', '1.0') without problems. 

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

Re: PyGObject - how to use editing services

hetsch
Hi Angel,

thank you for your hint! Seems that i have to use your suggested workflow.
Got hit by a nasty bug https://bugs.launchpad.net/pygobject/+bug/873712 which seems to happen with older versions of gstreamer.

Just have to find out if the uninstalled version is working with virtualenvs

Anyway thank you for your response!

Regards,
Gernot
Reply | Threaded
Open this post in threaded view
|

Re: PyGObject - how to use editing services

Angel Guzman Maeso
Hi Gernot,

I can confirm now that message::eos is working again with Gstreamer 1.0 aka 0.11.91-2 on Ubuntu 12.10. So maybe you can get rid the nasty bug.

I update the launchpad bug. Thanks to Tim for help me a lot testing and debugging on #gstreamer channel. But still some remaining issues with Pygi could affect to Gtreamer binding for python.

Regards

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