Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QMediaPlayer ERROR defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer ERROR defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
23 Posts 3 Posters 6.3k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #9

    You should check the Qt configuration logs. There might be something that is not found thus your issue of missing plugins.

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

    L 1 Reply Last reply
    0
    • SGaistS SGaist

      You should check the Qt configuration logs. There might be something that is not found thus your issue of missing plugins.

      L Offline
      L Offline
      Luisa
      wrote on last edited by
      #10

      Where can I find it?

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

        As silly as it may sound, in the folder where Qt was built using 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

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Luisa
          wrote on last edited by
          #12

          Found it

          cat ./build/tmp/work/aarch64-xilinx-linux/qtmultimedia/5.9.4+gitAUTOINC+d83467be15-r0/temp/log.do_configure.1884

          DEBUG: Executing shell function qmake5_base_preconfigure
          DEBUG: Shell function qmake5_base_preconfigure finished
          DEBUG: Executing shell function do_configure
          NOTE: qmake prevar substitution: ' '
          NOTE: qmake configure substitution: ' -alsa -no-feature-openal -pulseaudio -no-gstreamer'
          Info: creating stash file /home/posani/PetaLinux2018.2/NOX/build/tmp/work/aarch64-xilinx-linux/qtmultimedia/5.9.4+gitAUTOINC+d83467be15-r0/build/.qmake.stash
          Info: creating cache file /home/posani/PetaLinux2018.2/NOX/build/tmp/work/aarch64-xilinx-linux/qtmultimedia/5.9.4+gitAUTOINC+d83467be15-r0/build/.qmake.cache

          Running configuration tests...
          Checking for ALSA... yes
          Checking for Vivante GPU... no
          Checking for Video for Linux... yes
          Checking for PulseAudio >= 0.9.10... yes
          Checking for libresourceqt5... no
          Done running configuration tests.

          Configure summary:

          Qt Multimedia:
          ALSA ................................... yes
          GStreamer 1.0 .......................... no
          GStreamer 0.10 ......................... no
          Video for Linux ........................ yes
          OpenAL ................................. no
          PulseAudio ............................. yes
          Resource Policy (libresourceqt5) ....... no
          Windows Audio Services ................. no
          DirectShow ............................. no
          Windows Media Foundation ............... no

          Qt is now configured for building. Just run 'make'.
          Once everything is built, you must run 'make install'.
          Qt will be installed into '/home/posani/PetaLinux2018.2/NOX/build/tmp/work/aarch64-xilinx-linux/qtmultimedia/5.9.4+gitAUTOINC+d83467be15-r0/recipe-sysroot/usr'.

          Prior to reconfiguration, make sure you remove any leftovers from
          the previous build.

          DEBUG: Shell function do_configure finished
          DEBUG: Executing python function do_qa_configure
          DEBUG: Python function do_qa_configure finished
          DEBUG: Executing shell function qmake5_base_postconfigure
          DEBUG: Shell function qmake5_base_postconfigure finished

          In effect my qtmultimedia doesn't see gstreamer..

          where did I go wrong?

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

            Check the test build logs to see what fails with the QtMultimedia module.

            If you add the -v option to your configure call you should see it on the console already.

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

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Luisa
              wrote on last edited by
              #14

              QT multimedia did not configure gstreamer among its packages.
              I have modified the configuration file adding

              @PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}
              ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}
              gstreamer010 " @

              and now it no longer gives me the error.
              If I want to play h264 files instead it gives me the error:

              Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, width=(int)640, height=(int)512, parsed=(boolean)true, align....

              and the video doesn't start...

              I'm discouraged..

              I looked for solutions to my problem but nothing seems to work.
              Grazie per il tuo aiuto

              Luisa

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

                Did you install the gstreamer plugins packages ?

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

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Luisa
                  wrote on last edited by
                  #16

                  Yes I install all gstreamer plugins packages.

                  I try to install gstreamer 1.0 plugins packages.

                  Unfortunately the situation does not change.
                  I also installed x264.
                  Same story...

                  What could I try to do?

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

                    Can you play that file from the command line using gstreamer directly ?

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

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      Luisa
                      wrote on last edited by
                      #18

                      The solution to my problem was to insert ugly gst plugins, forcing the commercial license.

                      Thanks for your help

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        Luisa
                        wrote on last edited by
                        #19

                        But I have another problem. When I try to view a video I have the following error

                        Warning: "Failed to connect: Connection refused"
                        GET_DMA_PHY: Invalid argument
                        Failed to import fd : 1973231776
                        myprogram: base/omx_codec/omx_codec.cpp:1275: void Codec::TreatFillBufferCommand(Task*): Assertion `success' failed.

                        and the software crashes.

                        Has anyone solved a problem similar to mine?
                        Thanks in advance

                        Luisa

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

                          Again: is it working on the command line with gstreamer directly ?

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

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            Luisa
                            wrote on last edited by
                            #21

                            I am working with an embedded system so gstreamer could not throw the output on the screen.
                            I use the QMediaPlayer class.
                            The instruction that fails is the

                            myPlayer-> setMedia (qurl :: fromLocalFile (video2show.at (0)));

                            Small and low resolution videos work very badly. Larger videos cause the crash.

                            Are there any environment variables to set to allocate more resources to the running program?

                            Thanks in advance

                            Luisa

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

                              I don't see the relation between an embedded system and the fact that streamer output on screen.

                              What is that device ?
                              What are its specifications ?

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

                              1 Reply Last reply
                              0
                              • V Offline
                                V Offline
                                vicky_mac
                                wrote on last edited by
                                #23

                                hi @Luisa i am also having same issue with Qt in petalinux.. QMediaPlayer not found ,
                                I went through your comments and saw that you got it working . Can you please help me how to enable it.

                                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