Installing gstreamer 1.0 on windows for python 2.7.

I am trying to install gstreamer 1.0 on windows for use as a python 2.7 module. I have installed sdk from here http://docs.gstreamer.com/display/GstSDK/Installing+on+Windows which allows me import pygst

but it allows me to use gstreamer 0.1 (if I try pygst.require('1.0')

I get pygst.RequiredVersionError only version "0.10" is available ).

I've been looking for the gstreamer 1.0 sdk version all along with no luck, so I hope I can modify the 0.1 sdk to suit my needs.

I downloaded gstreamer 1.0 from here http://gstreamer.freedesktop.org/data/pkg/windows/1.5.2/ but I'm actually not sure what to do with it after fixing the RequiredVersionError / get the correct sdk. Any help is appreciated.

+3


source to share


1 answer


Works with Python 3.4.3.

  • Download from: http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar

  • Install on Windows pygi-aio-3.14.0_rev22-setup.exe

  • In a .py program:

    import gi
    
    gi.require_version('Gst', '1.0')
    
    from gi.repository import Gst
    
    pipeline = Gst.Pipeline.new("player")
    
    src = Gst.ElementFactory.make("audiotestsrc", "src")
    
    sink = Gst.ElementFactory.make("autoaudiosink", "output")
    
    pipeline.add(src)
    
    pipeline.add(sink)
    
    src.link(sink)
    
    pipeline.set_state(Gst.State.PLAYING)
    
          



And enjoy more ..

+2


source







All Articles