Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmediaplayer object does not have a valid service
Forum Updated to NodeBB v4.3 + New Features

qmediaplayer object does not have a valid service

Scheduled Pinned Locked Moved General and Desktop
linuxarmc++videofedorafc20
22 Posts 4 Posters 22.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ILI IL

    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.

    IL

    R Offline
    R Offline
    raf924
    wrote on last edited by
    #2

    @ilan-lisha Install libgstreamer through your package manager

    ILI 1 Reply Last reply
    0
    • R raf924

      @ilan-lisha Install libgstreamer through your package manager

      ILI Offline
      ILI Offline
      IL
      wrote on last edited by
      #3

      @raf924 - I already have gst on my Fedora, any other idea?
      thanks for your response.

      ILI 1 Reply Last reply
      0
      • ILI IL

        @raf924 - I already have gst on my Fedora, any other idea?
        thanks for your response.

        ILI Offline
        ILI Offline
        IL
        wrote on last edited by
        #4

        @ilan-lisha I have libgstreamer-0.10.so.0 - libgstreamer-0.10.so.0.30.0

        ILI 1 Reply Last reply
        0
        • ILI IL

          @ilan-lisha I have libgstreamer-0.10.so.0 - libgstreamer-0.10.so.0.30.0

          ILI Offline
          ILI Offline
          IL
          wrote on last edited by
          #5

          @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"

          R 1 Reply Last reply
          0
          • ILI IL

            @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"

            R Offline
            R Offline
            raf924
            wrote on last edited by
            #6

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

            ILI 1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by SGaist
              #7

              Hi and welcome to devnet,

              Check the multimedia plugin with ldd, it should indicate what might be missing on your system.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              ILI 2 Replies Last reply
              0
              • SGaistS SGaist

                Hi and welcome to devnet,

                Check the multimedia plugin with ldd, it should indicate what might be missing on your system.

                ILI Offline
                ILI Offline
                IL
                wrote on last edited by
                #8

                @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)
                /lib64/ld-linux-x86-64.so.2 (0x0000003ef5e00000)
                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)

                any idea?

                1 Reply Last reply
                0
                • R raf924

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

                  ILI Offline
                  ILI Offline
                  IL
                  wrote on last edited by
                  #9

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

                  ILI 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi and welcome to devnet,

                    Check the multimedia plugin with ldd, it should indicate what might be missing on your system.

                    ILI Offline
                    ILI Offline
                    IL
                    wrote on last edited by
                    #10
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • ILI IL

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

                      ILI Offline
                      ILI Offline
                      IL
                      wrote on last edited by
                      #11

                      also for gstreamer
                      ldd /usr/lib64/libgstreamer-1.0.so.0
                      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)
                      /lib64/ld-linux-x86-64.so.2 (0x0000003ef5e00000)

                      1 Reply Last reply
                      0
                      • ILI IL

                        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.

                        IL

                        ILI Offline
                        ILI Offline
                        IL
                        wrote on last edited by
                        #12

                        @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 libgstreamer-0.10.so.0.30.0 is installed in my system.
                        In my old configuration: GStreamer .............. no

                        ILI 1 Reply Last reply
                        0
                        • ILI IL

                          @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 libgstreamer-0.10.so.0.30.0 is installed in my system.
                          In my old configuration: GStreamer .............. no

                          ILI Offline
                          ILI Offline
                          IL
                          wrote on last edited by
                          #13

                          @IL
                          Please advice what should I do?

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            As silly as it may sound: Install the gstreamer development package

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            ILI 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              As silly as it may sound: Install the gstreamer development package

                              ILI Offline
                              ILI Offline
                              IL
                              wrote on last edited by
                              #15

                              @SGaist - As I have mention above, gstreamer package already installed on my PC.
                              Any idea why QT don’t recognize it?

                              R 1 Reply Last reply
                              0
                              • ILI IL

                                @SGaist - As I have mention above, gstreamer package already installed on my PC.
                                Any idea why QT don’t recognize it?

                                R Offline
                                R Offline
                                raf924
                                wrote on last edited by raf924
                                #16

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

                                ILI 1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #17

                                  @raf924's right, the dev packages are needed

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  ILI 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    @raf924's right, the dev packages are needed

                                    ILI Offline
                                    ILI Offline
                                    IL
                                    wrote on last edited by
                                    #18

                                    @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?

                                    Thanks!

                                    1 Reply Last reply
                                    0
                                    • R raf924

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

                                      ILI Offline
                                      ILI Offline
                                      IL
                                      wrote on last edited by
                                      #19

                                      @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 gstreamer.pro it required:
                                      gstreamer-0.10
                                      gstreamer-base-0.10
                                      gstreamer-audio-0.10
                                      gstreamer-video-0.10
                                      gstreamer-pbutils-0.10
                                      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

                                      R 1 Reply Last reply
                                      0
                                      • ILI IL

                                        @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 gstreamer.pro it required:
                                        gstreamer-0.10
                                        gstreamer-base-0.10
                                        gstreamer-audio-0.10
                                        gstreamer-video-0.10
                                        gstreamer-pbutils-0.10
                                        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

                                        R Offline
                                        R Offline
                                        raf924
                                        wrote on last edited by
                                        #20

                                        @IL sudo yum install gstreamer-devel should do the trick

                                        ILI 1 Reply Last reply
                                        0
                                        • R raf924

                                          @IL sudo yum install gstreamer-devel should do the trick

                                          ILI Offline
                                          ILI Offline
                                          IL
                                          wrote on last edited by
                                          #21

                                          @raf924 Thanks!

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved