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. [SOLVED] QtMultimedia : defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QtMultimedia : defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

Scheduled Pinned Locked Moved General and Desktop
qtmultimediano serviceqt5
35 Posts 16 Posters 82.7k 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.
  • tomasz3dkT Offline
    tomasz3dkT Offline
    tomasz3dk
    wrote on last edited by
    #2

    Hi. I got same error, but on my Raspberry, and other device based on Angstrom Linux, i didn't find any solution to fix this problem ;|, but i saw that many peoples have this problem on Windows and Linux, and nobody have solution for this.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wouterh
      wrote on last edited by
      #3

      Did you had a wmfengine.dll inside the /plugins/mediaservice directory? If yes, it means that Qt was compiled with WMF support.

      If that's the case, then dsengine.dll will only contain camera support, not player support. You need to re-compile dsengine.dll with player support.

      To do this, open directshow.pro and change the line:

      @!config_wmf: include(player/player.pri)@

      into:

      @include(player/player.pri)@

      Then you should be able to open directshow.pro and recompile the plugin.

      1 Reply Last reply
      1
      • R Offline
        R Offline
        raf924
        wrote on last edited by
        #4

        OK i just tried that on the 5.1.0 source but when i try to compile directshow it says that it misses a .qmake.conf file. I'm compiling with Qt 5.1.0 mscv2012 64 bit.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raf924
          wrote on last edited by
          #5

          So I recompiled the entire multimedia module with the modified directshow pro file then I copied the resulting mediaservice directory in my Qt installation plugins folder but it still doesn't work. If you have recompiled the dsenggine.dll file would you mind sending it to me?

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wouterh
            wrote on last edited by
            #6

            Make sure wmfengine.dll isn't in the mediaservice directory. I currently only have build a debug version of dsengine (dsengined.dll). If you want, I can send you that one for evaluation.

            I'm currently adding a -no-wmf-backend configuration flag for configure, to simplify this building process.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              raf924
              wrote on last edited by
              #7

              I removed wmfengine.dll but it still doesn't work so yes, i would like you to send me the debug version thank you.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                raf924
                wrote on last edited by
                #8

                Ok actually i rebuilt the qmultimedia module again and this time i commented the following :

                @config_wmf: SUBDIRS += wmf@

                in the plugins pro file and it worked !

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  raf924
                  wrote on last edited by raf924
                  #9

                  Reminder : these particular instructions are supposed to work for windows. If you have similar issues on Linux the solution seems to be to install libgstreamer.

                  So for those who have the same issue as I did :
                  -Dowload and extract the "qtmultimedia submodule" (for the corresponding version of Qt) from the Qt archives
                  -Delete the following line in the plugins.pro file:
                  config_wmf: SUBDIRS += wmf

                  -Change in the directshow.pro file:
                  !config_wmf: include(player/player.pri)

                  into
                  include(player/player.pri)

                  -Compile it all (with the same verison of MSVC you use to compile your program)
                  -Copy the resulting mediaservice folder next to your executable

                  I have only tested this solution on Qt 5.1 but I don"t see why it shouldn't work on later versions.

                  1 Reply Last reply
                  0
                  • tomasz3dkT Offline
                    tomasz3dkT Offline
                    tomasz3dk
                    wrote on last edited by
                    #10

                    Has anybody a solution for Linux and gstremer?

                    H 1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      wouterh
                      wrote on last edited by
                      #11

                      @diabolic: your question has nothing in common with directshow/windows media foundation. I suggest you start a new question.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        raf924
                        wrote on last edited by
                        #12

                        Download some other backend like xine or make sure that you really and correctly have installed gstreamer

                        1 Reply Last reply
                        0
                        • martin_kyM Offline
                          martin_kyM Offline
                          martin_ky
                          wrote on last edited by
                          #13

                          Hi. I'm experiencing the same problem. My config is:

                          • Windows Vista 64bit
                          • qt-windows-opensource-5.1.0-msvc2010-x86-offline.exe

                          @raf924 So you're saying the wmf engine nor the ds engine from the official 5.1 SDK build does not work? Do I really have to compile it myself? Is perhaps the MinGW SDK version worh a shot?

                          Thanks.

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            raf924
                            wrote on last edited by
                            #14

                            Well it seems that it doesn't work. Maybe there is some tweak to perform on your machine to have it working but i think it easier to just recompile the multimedia module with the aforementionned modifications, if you want to use msvc as a compiler. I should point out that the reason i prefer using msvc rather than mingw in this case is that you can't get the metadata with the latter, or at least i couldn't. But if you don't care about getting the metadata from the Qt lib, yes i suggest you use MinGW.

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              pklemm
                              wrote on last edited by
                              #15

                              I am still seeing this problem.

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

                              Qt 5.1.1
                              QCreator 2.8.1
                              Os win7 x64
                              Target Windows Surface 2 Pro (Win8.1 x64)

                              I have tried the above fix with no success. Any suggestions for isolating what the problem may be? I have tried with WAV and WMA sound clips.

                              Pete Klemm, consultant with Embedded Systems Research, Inc.

                              1 Reply Last reply
                              0
                              • P Offline
                                P Offline
                                pklemm
                                wrote on last edited by
                                #16

                                Solved my problem.

                                I had placed the dsengine.dll and qtmedia_audioengine.dll in the folder:

                                <app dir>/plugins/mediaservice

                                it needs to be:

                                <app dir>/mediaservice

                                Pete Klemm, consultant with Embedded Systems Research, Inc.

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  Mega4alik
                                  wrote on last edited by
                                  #17

                                  Hi, I'm experiencing the same problem on building Static.
                                  I descriped my problem in the next link.
                                  http://qt-project.org/forums/viewthread/40102/

                                  Solutions above won't work for me

                                  1 Reply Last reply
                                  0
                                  • R Offline
                                    R Offline
                                    raf924
                                    wrote on last edited by
                                    #18

                                    Well, I believe it should be rather simple to fix your problem. You just need to apply the modifications to the source as indicated then build it statically then copy the result in your static Qt folder. I am by no means certain it will work but I think it should.

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Mega4alik
                                      wrote on last edited by
                                      #19

                                      Sorry, I'm nube in QT

                                      This is QT folder that runs Static "C:\Qt\Static\5.2.0"

                                      This is source folder it build from "C:\Qt\Static\src\qt-everywhere-opensource-src-5.2.0".

                                      Now, I have to
                                      -Dowload and extract the qtmultimedia submodule [download.qt-project.org]
                                      to "C:\Qt\Static\src\qt-everywhere-opensource-src-5.2.0\qtmultimedia"
                                      -Delete the following in the plugins.pro file:
                                      config_wmf: SUBDIRS += wmf
                                      -Change in the directshow.pro file:
                                      !config_wmf: include(player/player.pri)
                                      into
                                      include(player/player.pri)

                                      go to "C:\Qt\Static\src\qt-everywhere-opensource-src-5.2.0\qtmultimedia" with MinGW and run "qmake" command to compile it?

                                      And than copy some resulting folder to "C:\Qt\Static\5.2.0" ?

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        raf924
                                        wrote on last edited by
                                        #20

                                        Right, that's it I guess. I've never built Qt statically so I wouldn't know for sure. You try it and tell me if it works. If it doesn't compile the whole framework after the modifications, it'll take more time but it should work.

                                        1 Reply Last reply
                                        0
                                        • V Offline
                                          V Offline
                                          VoiD
                                          wrote on last edited by
                                          #21

                                          Hi,
                                          Do you have a feedback on that (even though I tried)?
                                          Cause I've been trying to build a static 5.2.1 but so far, i can't get qtmultimedia to work...
                                          (defaultServiceProvider::requestService(): no service found for - “org.qt-project.qt.mediaplayer”)
                                          Of course everything works perfectly on the dynamic side.

                                          [quote author="Mega4alik" date="1395811707"]Sorry, I'm nube in QT

                                          This is QT folder that runs Static "C:\Qt\Static\5.2.0"

                                          This is source folder it build from "C:\Qt\Static\src\qt-everywhere-opensource-src-5.2.0".

                                          Now, I have to
                                          -Dowload and extract the qtmultimedia submodule [download.qt-project.org]
                                          to "C:\Qt\Static\src\qt-everywhere-opensource-src-5.2.0\qtmultimedia"
                                          -Delete the following in the plugins.pro file:
                                          config_wmf: SUBDIRS += wmf
                                          -Change in the directshow.pro file:
                                          !config_wmf: include(player/player.pri)
                                          into
                                          include(player/player.pri)

                                          go to "C:\Qt\Static\src\qt-everywhere-opensource-src-5.2.0\qtmultimedia" with MinGW and run "qmake" command to compile it?

                                          And than copy some resulting folder to "C:\Qt\Static\5.2.0" ?
                                          [/quote]

                                          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