Re: Using PyGObject to control gstreamer under MSYS2 from windows

Olivier Aubert via gstreamer-devel <[email protected]>
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <[email protected]>
Hello

If you are still facing this issue, you can have a look at the
packaging scripts I am using to build the Win32 version of Advene (a
python/gtk/gstreamer
app): https://github.com/oaubert/advene/tree/master/dev/win_installer
or better yet, the original Quodlibet built scripts I used as a base:
https://github.com/quodlibet/quodlibet/tree/main/dev-utils/win_installer

Best,
Olivier
On Fri, 2023-07-28 at 17:10 +0900, Peter via gstreamer-devel wrote:
> Hello,
> 
> I wanted to provide an update as I've managed to figure out a
> solution to the immediate part of issue 1) the solution is discussed
> on this page.
> https://stackoverflow.com/questions/76458520/create-an-executable-from-a-python-and-pygtk-script-under-windows
> "chcp.com 65001"
> I am able to play a video using the example
> https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html?gi-language=python
> while under a msys2 shell now.
> 
> I am still stuck with the second question regarding what package is
> equivalent to gstreamer1.0-python3-plugin-loader on pacman for msys2.
> 
> Peter
> 
> On Fri, Jul 28, 2023 at 3:01 PM Peter <[email protected]>
> wrote:
> > Hello,
> > 
> > I am attempting to port a python linux application that uses
> > PyGObject to interact with gstreamer over to windows.
> > It also makes use of the python3 plugin loader included with the
> > debian package gstreamer1.0-python3-plugin-loader.
> > I am running into 2 problems.
> > 
> > 1) I am unable to get gstreamer to successfully run from within a
> > msys2 console window.
> > I have tried very basic things like "gst-inspect-1.0" but it
> > crashes with an error.
> > I originally attempted to use the pacman packges included with
> > mingw64 msys2 "mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-
> > devtools mingw-w64-x86_64-gst-plugins-base" but got a popup error
> > "Unspecified fatal error encountered, aborting".
> > So I then uninstalled those pacman packages and installed the MingW
> > x86_64 runtime installer from the gstreamer website
> > "https://gstreamer.freedesktop.org/data/pkg/windows/1.22.5/mingw/gs
> > treamer-1.0-mingw-x86_64-1.22.5.msi.".
> > I still get the exact same error though whenever I try to launch
> > the program from either MSYS2, MSYS2 MingW64, MSYS2 ucrt64 (all
> > three different shells).
> > When I run the command from a command prompt "cmd.exe" it runs fine
> > though.
> > 
> > I'm not sure but is there a way to get gstreamer to run within an
> > msys2 shell context on windows?
> > it seems like the only way to use PyGObject is from within an msys2
> > shell unless I'm mistaken so I'm not sure if this means it's not
> > possible to interact with gstreamer or PyGObject or not.
> > 
> > 2) Assuming it is possible to interact with gstreamer using
> > PyGObject on windows under msys2  (or otherwise if possible). Is
> > there some equivalent to the debian package of gstreamer1.0-
> > python3-plugin-loader for arch? or whatever packages are used by
> > msys2 to install gstreamer? Perhaps it is included within one of
> > the other packages and not broken out into it's own package?
> > 
> > It seems like perhaps I need to port my python application to c++
> > if I hope to get it running on windows.
> > 
> > Thanks for any assistance,
> > 
> > Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.