How To Install Gstreamer Windows Movie
Tutorials Welcome to the GStreamer Tutorials! The following sections introduce a series of tutorials designed to help you learn how to use GStreamer, the multi-platform, modular, open-source, media streaming framework. Before following these tutorials, you need to set up your development environment according to your platform. If you choose to use Matlab, you may need to install Microsoft Visual C runtime libraries to make it work, specifically vcredistx86.exe. The installer should give you instructions on how to do that if necessary. Psychtoolbox-3 runs under Microsoft Windows XP, as well as Windows Vista and Windows 7.
There is lot's of information about configuring .pro file for Qt in linux to run GStreamer. But it looks so difficult to do the same in WINDOWS. I downloaded Gst from their official site and ran an installer. Now it's in D:gstreamer1.0x86 ... I found the only description from someone who tried to change qt .pro file. I did the same:
And the project find , gives assistance when typing 'gst_init(' and other stuff for gstreamer but it gives an error
undefined reference to gst_init
Here is the question. How to connect GStreamer in windows?
C:/Qt/Qt5.1.1/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory 'D:/Projects/AllTests/Qt/build-Console-Desktop_Qt_5_1_1_MinGW_32bit-Debug' g++ -Wl,-subsystem,console -mthreads -o debugConsole.exe debug/main.o -Lc:/gstreamer/1.0/x86/lib -LC:QtQt5.1.15.1.1mingw48_32lib -lQt5Cored debug/main.o: In function main': D:ProjectsAllTestsQtbuild-Console-Desktop_Qt_5_1_1_MinGW_32bit-Debug/../Console/main.cpp:8: undefined reference to
gst_init' collect2.exe: error: ld returned 1 exit status Makefile.Debug:77: recipe for target 'debugConsole.exe' failed mingw32-make[1]: * [debugConsole.exe] Error 1 mingw32-make[1]: Leaving directory 'D:/Projects/AllTests/Qt/build-Console-Desktop_Qt_5_1_1_MinGW_32bit-Debug' makefile:34: recipe for target 'debug' failed mingw32-make: * [debug] Error 2 00:20:18: Process «C:QtQt5.1.1Toolsmingw48_32binmingw32-make.exe» finishes with code 2.
3 Answers
You have to specify the gstreamer libraries against which your binaries must be linked.
According to this documentation for qmake, by issuing LIBS += -Lc:/gstreamer/1.0/x86/lib
you are instructing qmake to look for libraries within the given path, but not which of them to actually link to your binaries. I am not familiar with gstreamer, so I'm not sure what libraries must be linked in the specific case you presented, but I guess you'll find them all in gstreamer/1.0/x86/lib
. If unsure you could add them all to the list prepending the lower case 'l' to their names. For instance, if the library were called math, you'd add it by appending -lmath to the list. Just be cautious not to add multiple versions of the same library, say a debug version and a release version, at the same time, or you most certainly will get multiple reference linking errors.
Instead of manually specifying the libraries which should be linked to your binaries as suggested above, you also have the option to use pkg-config to do the hard work for you. This documentation for gstreamer states it suficies to add the following to the .pro file:
The drawback to this approach is naturally that you have to get pkg-config to work on your system first.
I found that on windows you really can avoid pkg-config stuff bit than need to include everything is needed for gstreamer as libs and .h. But also you will need to include GTK. A good answer by Kei Naga provides the idea for qt in VS 2010http://gstreamer-devel.966125.n4.nabble.com/Configure-Visual-Studio-2010-for-GStreamer-td3804989.html but if you transfer everything he wrote to .pro file it will also work (at least for me).
Here is the code of pro file:
I find this works for me. It uses the environment variable set by the GStreamer install - so should work on other PCs. There is a different environment variable for 64 bit, but same principle.
In addition, you need to make sure C:gstreamer1.0x86bin is on the path (control panel or you can set it in QtCreator).
Not the answer you're looking for? Browse other questions tagged windowsqtgstreamer or ask your own question.
For questions related with the GStreamer multimedia framework. GStreamer allows a programmer to create a variety of media-handling components, including simple audio playback, audio and video playback, recording, streaming and editing.
Cannot install xplayer from X-Apps PPA
sound-juicer is failing for me in 16.04 (see the cascade in the question)
gstreamer1.0-vaapi can't find driver
Ubuntu Phone Gstreamer
What causes this GStreamer warning when closing MATLAB? [duplicate]
Install newer version of gstreamer on Ubuntu
How to get Rhythmbox working again
Video not playing, only freeze-frame, jump possible, gstreamer issue?
Gstreamer Download Windows
Error using VideoReader in matlab - gstreamer problem [duplicate]
Can I install PulseEffects (v3.0.6 or newer) to Ubuntu 16.04.3? If yes, how?
ARToolKit5 camera not recognized
Install gstreamer version 0.10 in Ubuntu 17.04
xv drivers ubuntu 16.04
libtinfo, libtag1-vanilla, libical1a, libtag1c2a
no sound with qgo go client 16.04
Comments are closed.