Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deployment on Windows with Qt Multimedia
QtWS25 Last Chance

Deployment on Windows with Qt Multimedia

Scheduled Pinned Locked Moved Installation and Deployment
qt multimediawindows
6 Posts 3 Posters 5.3k Views
  • 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.
  • I Offline
    I Offline
    iKrosoft
    wrote on 6 May 2015, 17:37 last edited by
    #1

    Hello,

    I'm trying to deploy my Qt software on Windows (using dynamic linking), but I can't get Qt Multimedia working correctly on an other computer than my development computer. Probably some DLL missing...

    I've followed the instructions at http://wiki.qt.io/Deploy_an_Application_on_Windows, especially what they call the "Initial deployment", so now my software launches correctly on the computer without Qt installed. But my software makes use of Qt Multimedia to playback a video file, and this doesn't work (the video can't be started, even though I noticed that the video duration can be read correctly using the durationproperty of my MediaPlayer).

    Here's my setup :

    • Windows 8.1 64bits (both for compilation and on the test computer)
    • Qt 5.4.1
    • MSVC2013 64bits

    Could it have something to do with the Windows Media Foundation on which Qt Multimedia relies in my case ? Is there something special I should include with my software besides what is mentioned in the above link ?

    Thanks,
    iKrosoft

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 May 2015, 20:35 last edited by
      #2

      Hi and welcome to devnet,

      Did you deploy the QtMultimedia plugins ?

      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
      • J Offline
        J Offline
        JKSH
        Moderators
        wrote on 7 May 2015, 01:53 last edited by
        #3

        Hi @iKrosoft, and welcome to the Qt Dev Net!

        I've followed the instructions at http://wiki.qt.io/Deploy_an_Application_on_Windows, especially what they call the "Initial deployment", so now my software launches correctly on the computer without Qt installed.

        What happens when you perform the "Initial Deployment" steps (especially step #3) on your development PC?

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • I Offline
          I Offline
          iKrosoft
          wrote on 7 May 2015, 08:00 last edited by
          #4

          @SGaist said:

          Did you deploy the QtMultimedia plugins ?

          For QtMultimedia, I have copied next to my executable

          • the folder QtMultimedia (found under Qt\5.4\msvc2013_64\qml)
          • Qt5Multimedia.dll, Qt5MultimediaQuick_p.dll and Qt5MultimediaWidgets.dll (found under Qt\5.4\msvc2013_64\bin)

          @JKSH said:

          What happens when you perform the "Initial Deployment" steps (especially step #3) on your development PC?

          When I rename C:\Qt\ to C:\QtHidden\ on my development PC, my software works perfectly and is able to playback video files. So there must be something outside of the Qt folder that is needed (and absent on my test PC).

          Thank you

          J 1 Reply Last reply 7 May 2015, 15:02
          0
          • I iKrosoft
            7 May 2015, 08:00

            @SGaist said:

            Did you deploy the QtMultimedia plugins ?

            For QtMultimedia, I have copied next to my executable

            • the folder QtMultimedia (found under Qt\5.4\msvc2013_64\qml)
            • Qt5Multimedia.dll, Qt5MultimediaQuick_p.dll and Qt5MultimediaWidgets.dll (found under Qt\5.4\msvc2013_64\bin)

            @JKSH said:

            What happens when you perform the "Initial Deployment" steps (especially step #3) on your development PC?

            When I rename C:\Qt\ to C:\QtHidden\ on my development PC, my software works perfectly and is able to playback video files. So there must be something outside of the Qt folder that is needed (and absent on my test PC).

            Thank you

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 7 May 2015, 15:02 last edited by
            #5

            @iKrosoft said:

            For QtMultimedia, I have copied next to my executable

            • the folder QtMultimedia (found under Qt\5.4\msvc2013_64\qml)
            • Qt5Multimedia.dll, Qt5MultimediaQuick_p.dll and Qt5MultimediaWidgets.dll (found under Qt\5.4\msvc2013_64\bin)

            What about the "audio", "mediaservice", and "playlistformats" folders? The "Initial Deployment" told you to copy the contents of the "plugins" folder too.

            @JKSH said:

            What happens when you perform the "Initial Deployment" steps (especially step #3) on your development PC?

            When I rename C:\Qt\ to C:\QtHidden\ on my development PC, my software works perfectly and is able to playback video files. So there must be something outside of the Qt folder that is needed (and absent on my test PC).

            What video format is it? Did you install any codecs on your development PC?

            You can launch your app on your development PC, play a video, then use Sysinternals ListDLLs to show you the DLLs that it uses. Then, repeat the same on your test PC to find which DLLs are missing.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • I Offline
              I Offline
              iKrosoft
              wrote on 8 May 2015, 10:41 last edited by
              #6

              @JKSH said:

              What about the "audio", "mediaservice", and "playlistformats" folders? The "Initial Deployment" told you to copy the contents of the "plugins" folder too.

              I did copy everything that's mentioned in the "Initial Deployment" (see below). In my above post I only mentioned what I thought was directly related to QtMultimedia, sorry for the misunderstanding.
              http://wiki.qt.io/Deploy_an_Application_on_Windows:

              Copy the following into C:\Deployment\

              1. The release version of MyApp.exe
              2. All the .dll files from C:\Qt\5.2.1\mingw48_32\bin\
              3. All the folders from C:\Qt\5.2.1\mingw48_32\plugins\
              4. (If you used QML) All the folders from C:\Qt\5.2.1\mingw48_32\qml\

              @JKSH said:

              What video format is it? Did you install any codecs on your development PC?

              It is MP4 (codecs reported by VLC: Video: H264 - MPEG-4 AVC (part 10) (avc1), and Audio: MPEG AAC Audio (mp4a)). I also tried a MOV and a 3GP video, but none of these can be read by my software on my test PC. But all of those videos can be read by Windows Media Player on my test PC, and also by my software on my development PC with the Qt directory renamed.
              AFAIK I didn't explicitly install any codec on my development PC. The codecs set on both PCs match exactly (as reported by Windows Media Player), except for a CyberLink audio codec.

              @JKSH said:

              use Sysinternals ListDLLs to show you the DLLs that it uses

              Using ListDLLs, I see on my development PC that 10 DLLs get loaded as I open the video. On my test PC, the DLLs that get loaded as I open the video are the 10 same ones, except for the version build number (e.g. 12.0.9600.16477 instead of 12.0.9600.17415). Could the problem be these versions differences? In this case how can I fix this, because even if I distribute the newest versions with my software, the old ones still get loaded.

              Thanks a lot

              1 Reply Last reply
              0

              6/6

              8 May 2015, 10:41

              • Login

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