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

    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
                      • S Offline
                        S Offline
                        SherifOmran
                        wrote on last edited by
                        #22

                        guys, i have the same issue but with debian 11. When i run the player example, i get the following

                        defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
                        
                        sherif@debian:~/sndmod$ sudo apt list --installed | grep gstreamer
                        [sudo] password for sherif: 
                        
                        WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
                        
                        gir1.2-gstreamer-1.0/stable,now 1.18.4-2.1 amd64 [installed,automatic]
                        gira-gstreamer-vanilla/testing,now 1.0.0-4 all [installed,automatic]
                        gstreamer1.0-alsa/stable,now 1.18.4-2 amd64 [installed,automatic]
                        gstreamer1.0-clutter-3.0/stable,now 3.0.27-2 amd64 [installed,automatic]
                        gstreamer1.0-gl/stable,now 1.18.4-2 amd64 [installed,automatic]
                        gstreamer1.0-gtk3/stable,now 1.18.4-2 amd64 [installed,automatic]
                        gstreamer1.0-libav/stable,now 1.18.4-3 amd64 [installed]
                        gstreamer1.0-packagekit/stable,now 1.2.2-2 amd64 [installed]
                        gstreamer1.0-pipewire/stable,now 0.3.19-4 amd64 [installed,automatic]
                        gstreamer1.0-plugins-bad/stable,now 1.18.4-3 amd64 [installed,automatic]
                        gstreamer1.0-plugins-base/stable,now 1.18.4-2 amd64 [installed]
                        gstreamer1.0-plugins-good/stable,now 1.18.4-2 amd64 [installed]
                        gstreamer1.0-plugins-ugly/stable,now 1.18.4-2 amd64 [installed]
                        gstreamer1.0-pulseaudio/stable,now 1.18.4-2 amd64 [installed]
                        gstreamer1.0-tools/stable,now 1.18.4-2.1 amd64 [installed,automatic]
                        gstreamer1.0-x/stable,now 1.18.4-2 amd64 [installed,automatic]
                        libgstreamer-gl1.0-0/stable,now 1.18.4-2 amd64 [installed,automatic]
                        libgstreamer-plugins-bad1.0-0/stable,now 1.18.4-3 amd64 [installed,automatic]
                        libgstreamer-plugins-base1.0-0/stable,now 1.18.4-2 amd64 [installed,automatic]
                        libgstreamer1.0-0/stable,now 1.18.4-2.1 amd64 [installed,automatic]
                        libgstreamer1.0-dev/stable,now 1.18.4-2.1 amd64 [installed,automatic]
                        qtgstreamer-plugins-qt5/stable,now 1.2.0-5.1 amd64 [installed,auto-removable]
                        sherif@debian:~/sndmod$ 
                        
                        
                        
                        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