How to include GStreamer 1.0 in Gtk2 project which already exist

anespa anes.pa at gmail.com
Wed Mar 2 11:10:44 UTC 2016


Dear Friends,

I am working in a pygtk project with Gtk2. As part of modification I need to
include Gstreamer 1.0 instead of 0.1. In my old system can use

import sys, os, os.path, time
import pygst
pygst.require("0.1")
import gst

But I don't know how to add new version of GStreamer ... I try above one
with change in version as

import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst, Gtk

got error as :
    import gi
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 39, in
<module>
    raise ImportError(_static_binding_error)
ImportError: When using gi.repository you must not import static modules
like "gobject". Please change all occurrences of "import gobject" to "from
gi.repository import GObject". See:
https://bugzilla.gnome.org/show_bug.cgi?id=709183

Please advise the right way..

thanks
Anes




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-include-GStreamer-1-0-in-Gtk2-project-which-already-exist-tp4676131.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list