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 without output
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer without output

Scheduled Pinned Locked Moved Unsolved General and Desktop
24 Posts 4 Posters 9.2k 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.
  • W William.Tran

    Hi All,

    I am facing a problem with QMediaPlayer on Windows Server 2013. When my app play a mp3 file. I received an error message :

    "QMediaPlayer object does not have a valid service"

    There is not output sound. I don't know what exactly is problem here? Missing DLL or something like that. But it is working correctly on other Windows version.

    Thanks in advice!

    Regards.

    jsulmJ Online
    jsulmJ Online
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @William.Tran You can try to set QT_DEBUG_PLUGINS (http://doc.qt.io/qt-5/debug.html) before starting your application.
    Not sure however why you want to play MP3 on a server :-)

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • W William.Tran

      Hi All,

      I am facing a problem with QMediaPlayer on Windows Server 2013. When my app play a mp3 file. I received an error message :

      "QMediaPlayer object does not have a valid service"

      There is not output sound. I don't know what exactly is problem here? Missing DLL or something like that. But it is working correctly on other Windows version.

      Thanks in advice!

      Regards.

      D Offline
      D Offline
      Devopia53
      wrote on last edited by
      #3

      @William.Tran

      Is DirectX(DirectShow) installed?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        William.Tran
        wrote on last edited by William.Tran
        #4

        Thank you for your answers.

        @jsulm
        I have an application which support to play media files. Everything is working well on Windows 7, 8, 10. But when i install it on Windows Server i got problem. I tried to install QT Creator version 5.7.0 in this Windows Server machine. However, i got the same problem. I could not hear sound when run my application directly from QT. The Media service seems not existing.

        @Devopia53
        No. It is not.

        Do you have any ideas?

        jsulmJ 1 Reply Last reply
        0
        • W William.Tran

          Thank you for your answers.

          @jsulm
          I have an application which support to play media files. Everything is working well on Windows 7, 8, 10. But when i install it on Windows Server i got problem. I tried to install QT Creator version 5.7.0 in this Windows Server machine. However, i got the same problem. I could not hear sound when run my application directly from QT. The Media service seems not existing.

          @Devopia53
          No. It is not.

          Do you have any ideas?

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #5

          @William.Tran Can you play sound at all on this server machine?
          Also: why do you want to play MP3 on a server?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • W Offline
            W Offline
            William.Tran
            wrote on last edited by
            #6

            @jsulm

            Yes, I could play sound on this server machine. I have installed Winamp and tried to play my audio file, It worked.

            I would like my application support on Windows server also.

            jsulmJ 1 Reply Last reply
            0
            • W William.Tran

              @jsulm

              Yes, I could play sound on this server machine. I have installed Winamp and tried to play my audio file, It worked.

              I would like my application support on Windows server also.

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @William.Tran Did you try what I suggested before (QT_DEBUG_PLUGINS)?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • W Offline
                W Offline
                William.Tran
                wrote on last edited by
                #8

                @jsulm

                Could you tell me how to config QT_DEBUG_PLUGINS in application? Sorry i don't know how to use it.

                jsulmJ 1 Reply Last reply
                0
                • W William.Tran

                  @jsulm

                  Could you tell me how to config QT_DEBUG_PLUGINS in application? Sorry i don't know how to use it.

                  jsulmJ Online
                  jsulmJ Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  @William.Tran You don't do it in your application - it is an environment variable. Either set it in the terminal where you start your app or add it in "Projects/Run/Run Environment" in QtCreator.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • W Offline
                    W Offline
                    William.Tran
                    wrote on last edited by
                    #10

                    @jsulm

                    I did setting QT_DEBUG_PLUGIN as system variable. Its value is 1. is it correct? I am using Windows Server 2013. Then Could you please tell me how to view the logs file?

                    jsulmJ 1 Reply Last reply
                    0
                    • W William.Tran

                      @jsulm

                      I did setting QT_DEBUG_PLUGIN as system variable. Its value is 1. is it correct? I am using Windows Server 2013. Then Could you please tell me how to view the logs file?

                      jsulmJ Online
                      jsulmJ Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @William.Tran Just execute you app and check its output (in QtCreator "Application Output" tab).

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • W Offline
                        W Offline
                        William.Tran
                        wrote on last edited by
                        #12

                        @jsulm

                        I received the log informations related to media server :

                        "The plugin 'C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/qtmedia_audioengined.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
                        not a plugin
                        QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/qtmedia_audioengined.pdb"
                        "Plugin verification data mismatch in 'C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/qtmedia_audioengined.pdb'"
                        not a plugin
                        QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/dsengine.dll" : "Cannot load library C:\Qt\Qt5.7.0\5.7\msvc2013_64\plugins\mediaservice\dsengine.dll: The specified module could not be found."
                        defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

                        As i can see now, it looks like QT could not load the plugin. Do you have any idea?

                        jsulmJ 1 Reply Last reply
                        0
                        • W William.Tran

                          @jsulm

                          I received the log informations related to media server :

                          "The plugin 'C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/qtmedia_audioengined.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)"
                          not a plugin
                          QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/qtmedia_audioengined.pdb"
                          "Plugin verification data mismatch in 'C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/qtmedia_audioengined.pdb'"
                          not a plugin
                          QLibraryPrivate::loadPlugin failed on "C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/dsengine.dll" : "Cannot load library C:\Qt\Qt5.7.0\5.7\msvc2013_64\plugins\mediaservice\dsengine.dll: The specified module could not be found."
                          defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

                          As i can see now, it looks like QT could not load the plugin. Do you have any idea?

                          jsulmJ Online
                          jsulmJ Online
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          @William.Tran said in QMediaPlayer without output:

                          Cannot mix debug and release libraries.

                          This says what the problem is: you're mixing debug and release libraries.
                          How did you deploy your app?
                          This plug-in is missing: Cannot load library C:\Qt\Qt5.7.0\5.7\msvc2013_64\plugins\mediaservice*dsengine.dll*: The specified module could not be found."

                          Take a look at http://doc.qt.io/qt-5/windows-deployment.html

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          W 1 Reply Last reply
                          0
                          • W Offline
                            W Offline
                            William.Tran
                            wrote on last edited by William.Tran
                            #14

                            @jsulm
                            I may have problem with deployment process. But this is the log information when i run my project on QT directly. so i think it should work right?

                            I have checked the DLL in C:\Qt\Qt5.7.0\5.7\msvc2013_64\plugins\mediaservice they are there. But i don't know why they could not be loaded. Is it QT Creator problem ?

                            I did clean project and run again but still get the same problem. Do you have any suggestion?

                            1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @William.Tran said in QMediaPlayer without output:

                              Cannot mix debug and release libraries.

                              This says what the problem is: you're mixing debug and release libraries.
                              How did you deploy your app?
                              This plug-in is missing: Cannot load library C:\Qt\Qt5.7.0\5.7\msvc2013_64\plugins\mediaservice*dsengine.dll*: The specified module could not be found."

                              Take a look at http://doc.qt.io/qt-5/windows-deployment.html

                              W Offline
                              W Offline
                              William.Tran
                              wrote on last edited by
                              #15

                              @jsulm

                              Do you have any ideas? Util now i could not resolve this problem on windows server.

                              jsulmJ 1 Reply Last reply
                              0
                              • W William.Tran

                                @jsulm

                                Do you have any ideas? Util now i could not resolve this problem on windows server.

                                jsulmJ Online
                                jsulmJ Online
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                @William.Tran Are you trying to execute debug or release build?
                                Did you try to delete the build directory, execute qmake and then build again?

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                mrjjM W 2 Replies Last reply
                                1
                                • jsulmJ jsulm

                                  @William.Tran Are you trying to execute debug or release build?
                                  Did you try to delete the build directory, execute qmake and then build again?

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #17

                                  Besides the log warnings, are you sure the needed backend is in place ?
                                  https://bugreports.qt.io/browse/QTBUG-60376

                                  You could run dxdia and see if all is as expected.

                                  W 1 Reply Last reply
                                  0
                                  • jsulmJ jsulm

                                    @William.Tran Are you trying to execute debug or release build?
                                    Did you try to delete the build directory, execute qmake and then build again?

                                    W Offline
                                    W Offline
                                    William.Tran
                                    wrote on last edited by
                                    #18

                                    @jsulm

                                    I have tried both of build mode. But it is the same. I also deleted build directory... However i always receive issue above.

                                    1 Reply Last reply
                                    0
                                    • mrjjM mrjj

                                      Besides the log warnings, are you sure the needed backend is in place ?
                                      https://bugreports.qt.io/browse/QTBUG-60376

                                      You could run dxdia and see if all is as expected.

                                      W Offline
                                      W Offline
                                      William.Tran
                                      wrote on last edited by
                                      #19

                                      @mrjj

                                      I have installed Winamp in this computer. I can play audio file normally. So i think problem not from device. It comes from QT. How does QT load DLL to combine app?

                                      jsulmJ mrjjM 2 Replies Last reply
                                      0
                                      • W William.Tran

                                        @mrjj

                                        I have installed Winamp in this computer. I can play audio file normally. So i think problem not from device. It comes from QT. How does QT load DLL to combine app?

                                        jsulmJ Online
                                        jsulmJ Online
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #20

                                        @William.Tran Does C:/Qt/Qt5.7.0/5.7/msvc2013_64/plugins/mediaservice/dsengine.dll exist?

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        W 1 Reply Last reply
                                        1
                                        • W William.Tran

                                          @mrjj

                                          I have installed Winamp in this computer. I can play audio file normally. So i think problem not from device. It comes from QT. How does QT load DLL to combine app?

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #21

                                          @William.Tran
                                          As far as i know, winamp can play mp3 by itself and can work with no directX installed. ?
                                          If true it dont help test.

                                          https://wiki.qt.io/Qt_5.5.0_Multimedia_Backends

                                          • How does QT load DLL to combine app?

                                          Its the operating system that does it. DLL handling.

                                          W 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