This is a bit late, but hopefully it will help.
The easiest way to use GStreamer 1.0 is to download the latest version from: http://sourceforge.net/projects/pygobjectwin32/files/
This will install Python (2.7 or 3.3) modules and, optionally, GStreamer with plugins.
However, if you already have GStreamer 0.10 SDK (from docs.gstreamer.com/display/GstSDK/Home) and old installation of GStreamer 1.0 somewhere, there might be some problems with running Gstreamer 0.10 Python programs, like ImportError: DLL load failed etc. Here's my detailed setup for everything:
Installation of Gst 0.10 SDK and Python modules
- Install SDK from docs.gstreamer.com/display/GstSDK/Installing+on+Windows. Check and set environment variables
GSTREAMER_SDK_ROOT_X86=..your sdk dir
GST_PLUGIN_PATH=%GSTREAMER_SDK_ROOT_X86%\lib\gstreamer-0.10
Path=%GSTREAMER_SDK_ROOT_X86%\bin;%GSTREAMER_SDK_ROOT_X86%\lib;%Path% - Install pygtk-all-in-one-2.24.2.win32-py2.7 from ftp.gnome.org/pub/GNOME/binaries/win32/
- In your Python site-packages dir create file pygst.pth. Put following lines, which should point to GSt 0.10 Python modules directories:
..your %GSTREAMER_SDK_ROOT_X86% \lib\python2.7\site-packages
..your %GSTREAMER_SDK_ROOT_X86% \lib\python2.7\site-packages\gst-0.10 - After that, pydoc should be able to find documentation for pygst, gst, etc. Also, intellisense in Python tools for Visual studio should work too (after rebuilding Completion DB and restarting VS)
Installation of Gst 1.0 and Python modules
- Install GStreamer 1.0 from gstreamer.freedesktop.org/data/pkg/windows/. Check environment:
GSTREAMER_1_0_ROOT_X86=..Gst 1.0 installation dir
GST_PLUGIN_PATH_1_0=%GSTREAMER_1_0_ROOT_X86%\lib\gstreamer-1.0\
Path=%GSTREAMER_1_0_ROOT_X86%\bin;%GSTREAMER_1_0_ROOT_X86%\lib;%Path% - Install pygi-aio-3.10.2-win32_rev14-setup from the above Sourceforge link. Include Gstreamer and plugins in the installation.
- Create file gi.pth:
%GSTREAMER_1_0_ROOT_X86%\bin
%GSTREAMER_1_0_ROOT_X86%\lib - I removed everything from the site-packages/gnome directory except:
libgirepository-1.0-1
libpyglib-gi-2.0-python27-0
lib directory with the .typelib files
and a few simple examples seem to work fine. - Intellisense in VS doesn't seem to work for imports from gi.repository.
You may test your installation like this:
python2 -c "import gi; gi.require_version('Gst', '1.0'); from gi.repository import Gst; Gst.init(None); pipeline = Gst.parse_launch('playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm'); pipeline.set_state(Gst.State.PLAYING); bus = pipeline.get_bus();msg = bus.timed_pop_filtered(Gst.CLOCK_TIME_NONE, Gst.MessageType.ERROR | Gst.MessageType.EOS)"
Edit: If you use both GStreamer0.10 and GStreamer1.0 it's better to create a separate virtual environment for GStreamer0.10 and put .pth files in its site-packages directory. See my comment below.
HTH, Tom