qmediaplayer object does not have a valid service
i have installed QT5.5 on my Fedora 20 PC, i also installed QT creator for running and writing my project.
i have tried to run video using one of the QT example project but no matter what I do, I keep getting the message "QMediaPlayer object does not have a valid service".
I take a look over the internet but didn't see any relevant solution for this kind of problem, I have saw similar cases in window OS which asking for several DLL installation. I also understand that there is a problem in QT for running video.
does any one have solution for me?
I really need help here, thanks in advance.
@ilan-lisha Install libgstreamer through your package manager
@raf924 - I already have gst on my Fedora, any other idea?
thanks for your response.
@ilan-lisha I have libgstreamer-0.10.so.0 - libgstreamer-0.10.so.0.30.0
@ilan-lisha I also see the error
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
@ilan-lisha the solution to this problem is the one i recommended i don't know of any other, try installing any package related to gstreamer and libgstreamer.
Hi and welcome to devnet,
Check the multimedia plugin with ldd, it should indicate what might be missing on your system.
@SGaist Hi and Thanks,
That's what I get from the multimedia.so using LDD command
[olegk@localhost qt-everywhere-opensource-src-5.5.0]$ ldd /usr/local/Qt-5.5.0/lib/libQt5Multimedia.so
linux-vdso.so.1 => (0x00007fff3f2e7000)
libQt5Network.so.5 => /usr/local/Qt-5.5.0/lib/libQt5Network.so.5 (0x00007f21664ad000)
libQt5Gui.so.5 => /usr/local/Qt-5.5.0/lib/libQt5Gui.so.5 (0x00007f2165f01000)
libQt5Core.so.5 => /usr/local/Qt-5.5.0/lib/libQt5Core.so.5 (0x00007f21659b8000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2165774000)
libGL.so.1 => /lib64/libGL.so.1 (0x00007f2165509000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f2165201000)
libm.so.6 => /lib64/libm.so.6 (0x00007f2164efa000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f2164ce3000)
libc.so.6 => /lib64/libc.so.6 (0x00007f2164924000)
libz.so.1 => /lib64/libz.so.1 (0x00007f216470e000)
libpcre16.so.0 => /lib64/libpcre16.so.0 (0x00007f21644af000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f21642ab000)
librt.so.1 => /lib64/librt.so.1 (0x00007f21640a3000)
libglapi.so.0 => /lib64/libglapi.so.0 (0x00007f2163e7b000)
libXext.so.6 => /lib64/libXext.so.6 (0x00007f2163c69000)
libXdamage.so.1 => /lib64/libXdamage.so.1 (0x00007f2163a66000)
libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007f216385f000)
libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007f216365d000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f216331f000)
libxcb-glx.so.0 => /lib64/libxcb-glx.so.0 (0x00007f2163104000)
libxcb-dri2.so.0 => /lib64/libxcb-dri2.so.0 (0x00007f2162eff000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f2162cde000)
libXxf86vm.so.1 => /lib64/libXxf86vm.so.1 (0x00007f2162ad7000)
libdrm.so.2 => /lib64/libdrm.so.2 (0x00007f21628cb000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f21626a7000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f21624a2000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f216223c000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f2162016000)
can you tell please what is the different between gstreamer and libgstreamer?
This post is deleted!
also for gstreamer
linux-vdso.so.1 => (0x00007ffffd530000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x0000003efb600000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x0000003f05000000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x0000003ef9600000)
libm.so.6 => /lib64/libm.so.6 (0x0000003ef6e00000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003ef6600000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003ef6a00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003ef6200000)
libffi.so.6 => /lib64/libffi.so.6 (0x0000003efaa00000)
could it be the reason?
While running ./configure -v -qt-xcb -gstreamer -opensource
I get the error: project ERROR: gstreamer-0.10 development package not found
even though libgstreamer-0.10.so.0.30.0 is installed in my system.
In my old configuration: GStreamer .............. no
Please advice what should I do?
As silly as it may sound: Install the gstreamer development package
@SGaist - As I have mention above, gstreamer package already installed on my PC.
Any idea why QT don’t recognize it?
raf924 last edited by raf924
@IL He 's not talking about the gstreamer package but rather libgstreamer-dev or something like that. Right?
@raf924's right, the dev packages are needed
Sorry for the ignorance but can you tell the different between gstreamer package and gstreamer-dev package?
Do I need here qt-gstreamer?
I am running:
./configure -v -qt-xcb -opensource -confirm-license -gstreamer
currently configuration failed for:
GStreamer 0.10 auto-detection... ()
Project ERROR: gstreamer-audio-0.10 development package not found
GStreamer 0.10 disabled.
also I can see that according to gstreamer.pro it required:
I have managed to install gstreamer-0.10 and gstreamer-base-0.10 but now I am stuck on audio and video.
I am running QT on fedora 20.
I cannot find gstreamer-audio/video using "yum install ... "
What am I missing?
Please advice for a solution.
best regards, IL
@IL sudo yum install gstreamer-devel should do the trick