Important: Please read the Qt Code of Conduct -

qmediaplayer object does not have a valid service

  • Hi All,
    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 -

  • @ilan-lisha I also see the error
    Starting /home/.../qt-video-apps/build-videowidget-QT5_5_0-Debug/videowidget...
    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.

  • Lifetime Qt Champion

    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 using LDD command
    [olegk@localhost qt-everywhere-opensource-src-5.5.0]$ ldd /usr/local/Qt-5.5.0/lib/ => (0x00007fff3f2e7000) => /usr/local/Qt-5.5.0/lib/ (0x00007f21664ad000) => /usr/local/Qt-5.5.0/lib/ (0x00007f2165f01000) => /usr/local/Qt-5.5.0/lib/ (0x00007f21659b8000) => /lib64/ (0x00007f2165774000) => /lib64/ (0x00007f2165509000) => /lib64/ (0x00007f2165201000) => /lib64/ (0x00007f2164efa000) => /lib64/ (0x00007f2164ce3000) => /lib64/ (0x00007f2164924000) => /lib64/ (0x00007f216470e000) => /lib64/ (0x00007f21644af000) => /lib64/ (0x00007f21642ab000) => /lib64/ (0x00007f21640a3000)
    /lib64/ (0x0000003ef5e00000) => /lib64/ (0x00007f2163e7b000) => /lib64/ (0x00007f2163c69000) => /lib64/ (0x00007f2163a66000) => /lib64/ (0x00007f216385f000) => /lib64/ (0x00007f216365d000) => /lib64/ (0x00007f216331f000) => /lib64/ (0x00007f2163104000) => /lib64/ (0x00007f2162eff000) => /lib64/ (0x00007f2162cde000) => /lib64/ (0x00007f2162ad7000) => /lib64/ (0x00007f21628cb000) => /lib64/ (0x00007f21626a7000) => /lib64/ (0x00007f21624a2000) => /lib64/ (0x00007f216223c000) => /lib64/ (0x00007f2162016000)

    any idea?

  • @raf924
    can you tell please what is the different between gstreamer and libgstreamer?

  • This post is deleted!

  • also for gstreamer
    ldd /usr/lib64/ => (0x00007ffffd530000) => /lib64/ (0x0000003efb600000) => /lib64/ (0x0000003f05000000) => /lib64/ (0x0000003ef9600000) => /lib64/ (0x0000003ef6e00000) => /lib64/ (0x0000003ef6600000) => /lib64/ (0x0000003ef6a00000) => /lib64/ (0x0000003ef6200000) => /lib64/ (0x0000003efaa00000)
    /lib64/ (0x0000003ef5e00000)

  • @ilan-lisha
    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 is installed in my system.
    In my old configuration: GStreamer .............. no

  • @IL
    Please advice what should I do?

  • Lifetime Qt Champion

    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?

  • @IL He 's not talking about the gstreamer package but rather libgstreamer-dev or something like that. Right?

  • Lifetime Qt Champion

    @raf924's right, the dev packages are needed

  • @SGaist Hi
    Sorry for the ignorance but can you tell the different between gstreamer package and gstreamer-dev package?
    Do I need here qt-gstreamer?


  • @raf924 Hi
    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 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

  • @raf924 Thanks!