How To Install Gstreamer Windows Movie

Posted on by  admin
Active2 months ago

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 togst_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.

VadimVadim

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.

brunocodutrabrunocodutra

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:

VadimVadim

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).

David NetherwoodDavid Netherwood

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.

se-uql#toggleEditor'>
1
1answer

Cannot install xplayer from X-Apps PPA

I cannot install xplayer from the X-Apps PPA on Ubuntu 17.10Package manager says that it depends on gstreamer1.0-clutter but that gstreamer1.0-clutter cannot be installed. I do have gstreamer1.0-...
2
1answer

sound-juicer is failing for me in 16.04 (see the cascade in the question)

I'm pretty sure I don't have enough information yet to solve this question, but sound-juicer has failed for me in a very specific way, which I'd like suggestions for how to debug, with the ...
1
1answer

gstreamer1.0-vaapi can't find driver

On Ubuntu 16.04.3 Server when I try to launch video in Qt Quick based graphical application (eglfs backend (EGL full screen)) the video begin to twitch (became choppy, jerky, don't know right word). ...
1
1answer

Ubuntu Phone Gstreamer

I want make diy 'RC FPV Camera' using Gstreamer,Hardware : Pi + Camera + Battery + WiFi + GSMSoftware : v4l2 or uvc + gstreamer + mjpeg or h264 encodingbut instead buy Pi, i want to buy Ubuntu ...
0
0answers

What causes this GStreamer warning when closing MATLAB? [duplicate]

After working in MATLAB and with an Editor window still open, I unmaximized the main window and clicked the X to close it. What caused these warnings output in Terminal? Should I care?(Hours ...
DBinJP
4962 gold badges3 silver badges24 bronze badges
1
0answers

Install newer version of gstreamer on Ubuntu

i have Ubuntu 16.04 with kernel 4.4.0-104-generic. And i have gstreamer1.0 version 1.8.3.how can i install gstreamer version 1.9.x on my Ubuntu version?because i need to use GStreamer/gstreamer-...
1
2answers

How to get Rhythmbox working again

My Rhythmbox stopped working today, I am using Ubuntu Mate 16.04 powerpc on a Powerbook G4. I installed Ubuntu Mate 16.04 in June and it has been working well. I use Rhythmbox a lot and until today it ...
0
1answer

Video not playing, only freeze-frame, jump possible, gstreamer issue?

Since nearly one week I'm not able to play videos properly (Ubuntu 16.04). The first frame is shown, but only this as a freeze frame. Jumping to a different position is possible, but same result, no ...

Gstreamer Download Windows

1
0answers

Error using VideoReader in matlab - gstreamer problem [duplicate]

I'm trying to use VideoReader in MATLAB on an Ubuntu system and get the following error:MATLAB is selecting SOFTWARE OPENGL rendering. (MATLAB:4573): GStreamer-WARNING **: Failed to load plugin '...
1
Gstreamer download
1answer

Can I install PulseEffects (v3.0.6 or newer) to Ubuntu 16.04.3? If yes, how?

I want to install Ubuntu 16.04.3 (desktop amd64) to my PC and I would need a good compressor & equalizer program, so I decided with PulseEffects, but they wrote in their GitHub wiki this: ...
0
1answer

ARToolKit5 camera not recognized

Cheese recognizes my webcam. Output of v4l2-ctl --list-devices:HD WebCam (usb-0000:00:14.0-7): /dev/video0 However, ARToolKit5 doesn't recognize the camera and outputs SMPTE color bars. Not ...
0
0answers

Install gstreamer version 0.10 in Ubuntu 17.04

So previously I was using Fedora 24, and I had a thing set up where I was using gstreamer, ssh, and v4l2loopback to mirror my laptop's screen to another computer. Essentially I set up a dummy video ...
1
0answers

xv drivers ubuntu 16.04

I'm having a problem with the video output in Ubuntu 16.04 (xenial). I tried to get a test video displayed on my screen (with gstreamer from here )and I got different results for ximagesink and ...
0
1answer

libtinfo, libtag1-vanilla, libical1a, libtag1c2a

On upgrading to 16.04 LTS, I have come to the following unresolvable dependenciesroot@computer:/opt# apt-get -f installReading package lists... DoneBuilding dependency tree Reading state ...
isomorphismes
9102 gold badges14 silver badges28 bronze badges
0
1answer

no sound with qgo go client 16.04

I have no sound with QGO go client under ubuntu 16.04, and got a terminal output like this:defaultServiceProvider::requestService(): no service found for - 'org.qt-project.qt.mediaplayer'

153050per page

Comments are closed.