Windows 10, steps for using gstreamer in python 2.7

Asked 2 years ago, Updated 2 years ago, 83 views

What is the procedure for using gstreamer in windows10, python 2.7?
After installing gstreamer-1.0-devel-x86_64-1.14.0.1.msi, in gst-python-1.14.0, click
I tried installing what I thought was necessary, but there was no pygst, and the import pygst failed.Also, when I searched pygst, I couldn't find it.
How do I install it?

windows-10 python2

2022-09-30 15:37

1 Answers

I was looking for it for a while and got here.
gstreamer home screen
If you click on the Download item here, you will see various OS fields, and you can download msi from here.Perhaps you tried to install the same thing as this?(gstreamer-1.0-develop-x86_64-1.14.0.1.msi has been installed.)
After exploring this site, I entered the Documentation and went back to choosing the operating system from Installing Gstreamer.
 I chose a picture of Windows and (which I chose with the icon) here was how to install Windows 7-10

.

It may not be necessary because it seems that you have already done it in Ubuntu, but if you can't do it with this, I don't think it's meaningful or documentation.
(Previous Post)
Why don't you take care of this place?

gstreamer python bindings for Windows

The easiest way is
From here, install the latest version.

If the old gstreamer remains somewhere, an error appears to occur.
Install Gst 0.10 SDK and Python Module
1. Install the SDK from here and set the 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%

2. Install pygtk-all-in-one-2.24.2.win32-py2.7 from here.

3.Create the pygst.pth file in Python's site package directory.
...your%GSTREAMER_SDK_ROOT_X86%\lib\python2.7\site-packages
...your%GSTREAMER_SDK_ROOT_X86%\lib\python2.7\site-packages\gst-0.10

4. After that, pydoc will be able to find documents for pygst, gst, etc.Also, the intelligence within the Python tool for VisualStudio should work (complete database rebuild and VS restart).

Installing Gst 1.0 and Python Modules
Install Gstreamer 1.0 from here.Check and set environment variables
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%

2. Install pygi-aio-3.10.2-win32_rev14-setup from the link above, including the Gstreamer and plug-in in that installation. Create the 3.gi.pth file.
%GSTREAMER_1_0_ROOT_X86%\bin
%GSTREAMER_1_0_ROOT_X86%\lib
4. Exclude all from within site-packages/gnome directory, except:
libgirepository-1.0-1
libpyglib-gi-2.0-python27-0
lib directory with the.typelib files
A few simple examples seem to work well.
5. Intelligence in VS should not move for import from gi.repository
6. You can test the installation in this way.
python2-c "import gi; gi.require_version('Gst', '1.0'); from gi.repository import Gst; Gst.init(None); pipeline=Gst.parse_launch('playbinuri="

If you are using both Gstreamer 0.10 and GStreamer 1.0, you may want to create a separate virtual environment: put the .pth file in the site package directory.Please read the comments.

Omit comments
I think it's not good to just put up a link, so I pulled a simple translation, but I think it's better for you to follow me to the main house.


2022-09-30 15:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.