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. No Mp4 Playback on Release Deployment
Forum Updated to NodeBB v4.3 + New Features

No Mp4 Playback on Release Deployment

Scheduled Pinned Locked Moved Solved General and Desktop
45 Posts 4 Posters 5.5k Views 3 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.
  • C celica

    Thanks for the replies.
    So the command I used was -
    cd C:\Qt\5.12.2\msvc2017\bin
    windeployqt C:\Users\me\Documents\incommandCopy\Win32\Release

    The ListDLLs displays a lot more entries for when the video plays compared to when it doesn't.
    Not sure where to start ->

    Working - https://easyupload.io/jbbnku
    Not Working - https://easyupload.io/2xu2tt

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #5

    @celica said in No Mp4 Playback on Release Deployment:

    windeployqt C:\Users\me\Documents\incommandCopy\Win32\Release

    there you have it, you did not give the tool the path to (your) QMl files -> QML imports are not present

    --qmldir

    If your application uses Qt Quick, run:
      windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
    

    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    C 1 Reply Last reply
    4
    • J.HilkJ J.Hilk

      @celica said in No Mp4 Playback on Release Deployment:

      windeployqt C:\Users\me\Documents\incommandCopy\Win32\Release

      there you have it, you did not give the tool the path to (your) QMl files -> QML imports are not present

      --qmldir

      If your application uses Qt Quick, run:
        windeployqt --qmldir <path-to-app-qml-files> <path-to-app-binary>
      
      C Offline
      C Offline
      celica
      wrote on last edited by
      #6

      @J-Hilk Ah I see, thanks. I thought that was definitely the solution
      However videos still not playing for the release build.
      I ran the following command

      windeployqt.exe --qmldir C:\Users\me\Documents\incommand2017\InCommand\Resources C:\Users\me\Documents\incommand2017\Win32\Release

      I even then pointed to the entire QML folder, still no luck
      windeployqt.exe --qmldir C:\Qt\5.12.2\msvc2017\qml C:\Users\me\Documents\incommand2017\Win32\Release

      I'm probably doing something silly here

      1 Reply Last reply
      0
      • C celica

        Thanks for the replies.
        So the command I used was -
        cd C:\Qt\5.12.2\msvc2017\bin
        windeployqt C:\Users\me\Documents\incommandCopy\Win32\Release

        The ListDLLs displays a lot more entries for when the video plays compared to when it doesn't.
        Not sure where to start ->

        Working - https://easyupload.io/jbbnku
        Not Working - https://easyupload.io/2xu2tt

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by JKSH
        #7

        @celica said in No Mp4 Playback on Release Deployment:

        Not sure where to start ->

        Working - https://easyupload.io/jbbnku
        Not Working - https://easyupload.io/2xu2tt

        Start by cross-checking the list of Qt DLLs. I've highlighted the ones that were present in your Debug build but not your Release deployment (some of them should now be captured when you use windeployqt with --qmldir):

        Working Not Working
        C:\Qt\5.12.2\msvc2017\plugins\bearer\qgenericbearerd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\bearer\qgenericbearer.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qgifd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qgif.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qicnsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qicns.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qicod.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qico.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qjpegd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qjpeg.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qsvgd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qsvg.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qtgad.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qtga.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qtiffd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qtiff.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qwbmpd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qwbmp.dll
        C:\Qt\5.12.2\msvc2017\plugins\imageformats\qwebpd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qwebp.dll
        C:\Qt\5.12.2\msvc2017\plugins\mediaservice\dsengined.dll
        C:\Qt\5.12.2\msvc2017\plugins\platforms\qwindowsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\platforms\qwindows.dll
        C:\Qt\5.12.2\msvc2017\plugins\styles\qwindowsvistastyled.dll C:\Users\USER\Documents\incommand2017\Win32\Release\styles\qwindowsvistastyle.dll
        C:\Qt\5.12.2\msvc2017\qml\QtQuick\Controls.2\qtquickcontrols2plugind.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\bearer\qnativewifibearerd.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\imageformats\qddsd.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\imageformats\qjp2d.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\imageformats\qmngd.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\InCommand.exe C:\Users\USER\Documents\incommand2017\Win32\Release\InCommand.exe
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Cored.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Core.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Guid.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Gui.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Multimediad.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Multimedia.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5MultimediaWidgetsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5MultimediaWidgets.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Networkd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Network.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5OpenGLd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5OpenGL.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Qmld.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Qml.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5QuickControls2d.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Quickd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Quick.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5QuickTemplates2d.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5SerialPortd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5SerialPort.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Svgd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Svg.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Widgetsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Widgets.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick.2\qtquick2plugind.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick\Controls.2\qtquickcontrols2plugind.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick\Templates.2\qtquicktemplates2plugind.dll
        C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick\Window.2\windowplugind.dll

        See https://wiki.qt.io/Deploy_an_Application_on_Windows for manual deployment. Note that you also need to deploy the qmldir files for the Qt Quick plugins.

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

        C 1 Reply Last reply
        2
        • JKSHJ JKSH

          @celica said in No Mp4 Playback on Release Deployment:

          Not sure where to start ->

          Working - https://easyupload.io/jbbnku
          Not Working - https://easyupload.io/2xu2tt

          Start by cross-checking the list of Qt DLLs. I've highlighted the ones that were present in your Debug build but not your Release deployment (some of them should now be captured when you use windeployqt with --qmldir):

          Working Not Working
          C:\Qt\5.12.2\msvc2017\plugins\bearer\qgenericbearerd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\bearer\qgenericbearer.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qgifd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qgif.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qicnsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qicns.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qicod.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qico.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qjpegd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qjpeg.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qsvgd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qsvg.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qtgad.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qtga.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qtiffd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qtiff.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qwbmpd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qwbmp.dll
          C:\Qt\5.12.2\msvc2017\plugins\imageformats\qwebpd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\imageformats\qwebp.dll
          C:\Qt\5.12.2\msvc2017\plugins\mediaservice\dsengined.dll
          C:\Qt\5.12.2\msvc2017\plugins\platforms\qwindowsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\platforms\qwindows.dll
          C:\Qt\5.12.2\msvc2017\plugins\styles\qwindowsvistastyled.dll C:\Users\USER\Documents\incommand2017\Win32\Release\styles\qwindowsvistastyle.dll
          C:\Qt\5.12.2\msvc2017\qml\QtQuick\Controls.2\qtquickcontrols2plugind.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\bearer\qnativewifibearerd.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\imageformats\qddsd.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\imageformats\qjp2d.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\imageformats\qmngd.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\InCommand.exe C:\Users\USER\Documents\incommand2017\Win32\Release\InCommand.exe
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Cored.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Core.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Guid.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Gui.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Multimediad.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Multimedia.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5MultimediaWidgetsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5MultimediaWidgets.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Networkd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Network.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5OpenGLd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5OpenGL.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Qmld.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Qml.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5QuickControls2d.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Quickd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Quick.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5QuickTemplates2d.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5SerialPortd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5SerialPort.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Svgd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Svg.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\Qt5Widgetsd.dll C:\Users\USER\Documents\incommand2017\Win32\Release\Qt5Widgets.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick.2\qtquick2plugind.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick\Controls.2\qtquickcontrols2plugind.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick\Templates.2\qtquicktemplates2plugind.dll
          C:\Users\USER\Documents\incommand2017\Win32\Debug\QtQuick\Window.2\windowplugind.dll

          See https://wiki.qt.io/Deploy_an_Application_on_Windows for manual deployment. Note that you also need to deploy the qmldir files for the Qt Quick plugins.

          C Offline
          C Offline
          celica
          wrote on last edited by
          #8

          @JKSH Thanks for the help
          I ended up finding every file missing (there was 110) and moving them all to -:

          C:\Users\me\Documents\incommand2017\Win32\Release
          And still no mp4 playback when it runs as a release version rather than debug

          JKSHJ 1 Reply Last reply
          0
          • C celica

            @JKSH Thanks for the help
            I ended up finding every file missing (there was 110) and moving them all to -:

            C:\Users\me\Documents\incommand2017\Win32\Release
            And still no mp4 playback when it runs as a release version rather than debug

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #9

            @celica said in No Mp4 Playback on Release Deployment:

            I ended up finding every file missing (there was 110) and moving them all

            That's too many! You don't need to copy the DLLs from C:\Windows, for example.

            And still no mp4 playback when it runs as a release version rather than debug

            1. Did you deploy the qmldir files?
            2. What does ListDLLs show after you've moved the DLLs?

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

            C 1 Reply Last reply
            1
            • JKSHJ JKSH

              @celica said in No Mp4 Playback on Release Deployment:

              I ended up finding every file missing (there was 110) and moving them all

              That's too many! You don't need to copy the DLLs from C:\Windows, for example.

              And still no mp4 playback when it runs as a release version rather than debug

              1. Did you deploy the qmldir files?
              2. What does ListDLLs show after you've moved the DLLs?
              C Offline
              C Offline
              celica
              wrote on last edited by
              #10

              @JKSH
              OK thanks, just to be safe I took everything.

              The differential is a lot less now. (around 50 files)

              Working - https://easyupload.io/9f8zb0
              Not working - https://easyupload.io/38ngbq

              JKSHJ 1 Reply Last reply
              0
              • C celica

                @JKSH
                OK thanks, just to be safe I took everything.

                The differential is a lot less now. (around 50 files)

                Working - https://easyupload.io/9f8zb0
                Not working - https://easyupload.io/38ngbq

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #11

                @celica said in No Mp4 Playback on Release Deployment:

                just to be safe I took everything.

                Don't do that. It can cause crashes if you move system DLLs to a different PC with a slightly different version of Windows.

                The differential is a lot less now. (around 50 files)

                Working - https://easyupload.io/9f8zb0
                Not working - https://easyupload.io/38ngbq

                I'm still seeing C:\Windows DLLs that shouldn't be in your deployment folder, like C:\Users\USER\Documents\incommand2017\Win32\Release\WINMM.dll.

                Please clean up your build folder (delete everything), build your app from scratch, then deploy ONLY Qt files.

                BTW, I'm not seeing plugins\mediaservice\dsengine.dll get loaded. That's the one needed to play videos. One thing to try:

                • Put plugins\mediaservice\dsengine.dll in your release folder but delete plugins\mediaservice\wmfengine.dll
                • Put plugins\mediaservice\wmfengine.dll in your release folder but delete plugins\mediaservice\dsengine.dll

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

                C 1 Reply Last reply
                1
                • JKSHJ JKSH

                  @celica said in No Mp4 Playback on Release Deployment:

                  just to be safe I took everything.

                  Don't do that. It can cause crashes if you move system DLLs to a different PC with a slightly different version of Windows.

                  The differential is a lot less now. (around 50 files)

                  Working - https://easyupload.io/9f8zb0
                  Not working - https://easyupload.io/38ngbq

                  I'm still seeing C:\Windows DLLs that shouldn't be in your deployment folder, like C:\Users\USER\Documents\incommand2017\Win32\Release\WINMM.dll.

                  Please clean up your build folder (delete everything), build your app from scratch, then deploy ONLY Qt files.

                  BTW, I'm not seeing plugins\mediaservice\dsengine.dll get loaded. That's the one needed to play videos. One thing to try:

                  • Put plugins\mediaservice\dsengine.dll in your release folder but delete plugins\mediaservice\wmfengine.dll
                  • Put plugins\mediaservice\wmfengine.dll in your release folder but delete plugins\mediaservice\dsengine.dll
                  C Offline
                  C Offline
                  celica
                  wrote on last edited by
                  #12

                  @JKSH Tried that, still no luck.
                  Clean build.
                  I just have a multimedia folder no plugins folder, don't know if that makes a difference -> \mediaservice\dsengine.dll

                  I notice during the Listdll for when it works in debug it loads lots of codec files which are not present during the Release run, would this matter?

                  0x0000000005a70000 0x23c000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avutil-lav-56.dll
                  0x0000000005cb0000 0x49000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\libbluray.dll
                  0x0000000005d00000 0x389000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avformat-lav-58.dll
                  0x0000000006090000 0x1350000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avcodec-lav-58.dll
                  0x00000000073f0000 0x2d000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avresample-lav-4.dll

                  C JKSHJ 2 Replies Last reply
                  0
                  • C celica

                    @JKSH Tried that, still no luck.
                    Clean build.
                    I just have a multimedia folder no plugins folder, don't know if that makes a difference -> \mediaservice\dsengine.dll

                    I notice during the Listdll for when it works in debug it loads lots of codec files which are not present during the Release run, would this matter?

                    0x0000000005a70000 0x23c000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avutil-lav-56.dll
                    0x0000000005cb0000 0x49000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\libbluray.dll
                    0x0000000005d00000 0x389000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avformat-lav-58.dll
                    0x0000000006090000 0x1350000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avcodec-lav-58.dll
                    0x00000000073f0000 0x2d000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avresample-lav-4.dll

                    C Offline
                    C Offline
                    celica
                    wrote on last edited by
                    #13

                    @celica Hi Guys
                    Still having issues, do you think the lack of codec files deployed during the release build has an effect?

                    1 Reply Last reply
                    0
                    • C celica

                      @JKSH Tried that, still no luck.
                      Clean build.
                      I just have a multimedia folder no plugins folder, don't know if that makes a difference -> \mediaservice\dsengine.dll

                      I notice during the Listdll for when it works in debug it loads lots of codec files which are not present during the Release run, would this matter?

                      0x0000000005a70000 0x23c000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avutil-lav-56.dll
                      0x0000000005cb0000 0x49000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\libbluray.dll
                      0x0000000005d00000 0x389000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avformat-lav-58.dll
                      0x0000000006090000 0x1350000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avcodec-lav-58.dll
                      0x00000000073f0000 0x2d000 C:\Program Files (x86)\K-Lite Codec Pack\Filters\LAV\avresample-lav-4.dll

                      JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by JKSH
                      #14

                      @celica said in No Mp4 Playback on Release Deployment:

                      I just have a multimedia folder no plugins folder, don't know if that makes a difference -> \mediaservice\dsengine.dll

                      Sorry, The deployment shouldn't have a "plugins" folder. Rephrasing my last post, try:

                      • Put mediaservice\dsengine.dll in your release folder but delete mediaservice\wmfengine.dll
                      • Put mediaservice\wmfengine.dll in your release folder but delete mediaservice\dsengine.dll

                      Your folder structure should be something like

                      • app.exe
                      • platform\qwindows.dll
                      • mediaservice\dsengine.dll
                      • ...

                      I notice during the Listdll for when it works in debug it loads lots of codec files which are not present during the Release run, would this matter?

                      Yes, it kind of matters because those codecs are used to play videos. However, you should not deploy those codec DLLs directly. They should be installed on your PC via the codec installer.

                      Qt loads the codecs via a mediaservice plugin.

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

                      C 1 Reply Last reply
                      1
                      • JKSHJ JKSH

                        @celica said in No Mp4 Playback on Release Deployment:

                        I just have a multimedia folder no plugins folder, don't know if that makes a difference -> \mediaservice\dsengine.dll

                        Sorry, The deployment shouldn't have a "plugins" folder. Rephrasing my last post, try:

                        • Put mediaservice\dsengine.dll in your release folder but delete mediaservice\wmfengine.dll
                        • Put mediaservice\wmfengine.dll in your release folder but delete mediaservice\dsengine.dll

                        Your folder structure should be something like

                        • app.exe
                        • platform\qwindows.dll
                        • mediaservice\dsengine.dll
                        • ...

                        I notice during the Listdll for when it works in debug it loads lots of codec files which are not present during the Release run, would this matter?

                        Yes, it kind of matters because those codecs are used to play videos. However, you should not deploy those codec DLLs directly. They should be installed on your PC via the codec installer.

                        Qt loads the codecs via a mediaservice plugin.

                        C Offline
                        C Offline
                        celica
                        wrote on last edited by
                        #15

                        @JKSH Thanks, I tried that. You're right dsengine.dll does not get loaded.
                        In fact nothing does from the mediaservice folder.
                        Both from the output window within visual studio after a release build and from the Listdll result when it is running.
                        Is there any way of forcing it to load this file?

                        I tried removing the files you mention to no avail.
                        All the codecs were installed via the codec installer.

                        JKSHJ 1 Reply Last reply
                        0
                        • C celica

                          @JKSH Thanks, I tried that. You're right dsengine.dll does not get loaded.
                          In fact nothing does from the mediaservice folder.
                          Both from the output window within visual studio after a release build and from the Listdll result when it is running.
                          Is there any way of forcing it to load this file?

                          I tried removing the files you mention to no avail.
                          All the codecs were installed via the codec installer.

                          JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by JKSH
                          #16

                          @celica said in No Mp4 Playback on Release Deployment:

                          In fact nothing does from the mediaservice folder.
                          Both from the output window within visual studio after a release build

                          Ah, this is an important clue.

                          That means it's not a deployment issue. Rather, there's something broken in the Release build. Don't bother trying to deploy until the Release build works fine in Visual Studio.

                          Try setting the environment variable QT_DEBUG_PLUGINS to 1 before running the app from Visual Studio OR from the command line. What messages do you see when it tries to load plugins?

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

                          C 1 Reply Last reply
                          1
                          • JKSHJ JKSH

                            @celica said in No Mp4 Playback on Release Deployment:

                            In fact nothing does from the mediaservice folder.
                            Both from the output window within visual studio after a release build

                            Ah, this is an important clue.

                            That means it's not a deployment issue. Rather, there's something broken in the Release build. Don't bother trying to deploy until the Release build works fine in Visual Studio.

                            Try setting the environment variable QT_DEBUG_PLUGINS to 1 before running the app from Visual Studio OR from the command line. What messages do you see when it tries to load plugins?

                            C Offline
                            C Offline
                            celica
                            wrote on last edited by
                            #17

                            @JKSH said in No Mp4 Playback on Release Deployment:

                            QT_DEBUG_PLUGINS

                            Great, getting closer
                            I'm not sure how to set that variable as I run the app from within Visual Studio 2017
                            I tried and got this response does this look right?

                            [9952] PPLE [Informational] LIFECYCLE: OnResuming
                            [9952] PPLE [Informational] LIFECYCLE: OnSuspending
                            [10420] VSMSOUI: Button 'Suspend' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:385) defined by package 'Visual Studio Debugger' ({C9DD4A57-47FB-11D2-83E7-00C04F9902C1}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button 'Resume' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:386) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button 'Suspend and shutdown' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:387) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button 'No Background Tasks' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:388) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:389) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:390) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:391) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:392) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:393) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:394) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:395) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:396) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:397) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:398) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:399) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:400) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:401) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:402) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:403) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:404) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:405) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:406) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:407) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:408) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:409) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:410) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:411) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:412) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:413) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:414) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:415) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                            [9952] PPLE [Informational] LIFECYCLE: OnResuming
                            [9952] PPLE [Informational] LIFECYCLE: OnSuspending
                            
                            JKSHJ 1 Reply Last reply
                            0
                            • C celica

                              @JKSH said in No Mp4 Playback on Release Deployment:

                              QT_DEBUG_PLUGINS

                              Great, getting closer
                              I'm not sure how to set that variable as I run the app from within Visual Studio 2017
                              I tried and got this response does this look right?

                              [9952] PPLE [Informational] LIFECYCLE: OnResuming
                              [9952] PPLE [Informational] LIFECYCLE: OnSuspending
                              [10420] VSMSOUI: Button 'Suspend' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:385) defined by package 'Visual Studio Debugger' ({C9DD4A57-47FB-11D2-83E7-00C04F9902C1}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button 'Resume' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:386) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button 'Suspend and shutdown' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:387) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button 'No Background Tasks' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:388) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:389) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:390) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:391) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:392) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:393) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:394) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:395) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:396) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:397) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:398) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:399) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:400) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:401) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:402) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:403) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:404) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:405) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:406) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:407) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:408) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:409) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:410) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:411) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:412) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:413) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:414) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [10420] VSMSOUI: Button '' ({C9DD4A59-47FB-11D2-83E7-00C04F9902C1}:415) defined by package 'Unknown' ({No Match}) uses icon guidOfficeIcon:746, which is no longer supported 
                              [9952] PPLE [Informational] LIFECYCLE: OnResuming
                              [9952] PPLE [Informational] LIFECYCLE: OnSuspending
                              
                              JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote on last edited by JKSH
                              #18

                              @celica said in No Mp4 Playback on Release Deployment:

                              I'm not sure how to set that variable as I run the app from within Visual Studio 2017

                              You could temporarily set it in your PC's global environment. Just remember to un-set it after.

                              I tried and got this response does this look right?

                              Unfortunately not. It should look something like this:

                              QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.14.1/msvc2017/plugins/mediaservice" ...
                              QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.14.1/msvc2017/plugins/mediaservice/dsengine.dll"
                              Found metadata in lib C:/Qt/5.14.1/msvc2017/plugins/mediaservice/dsengine.dll, metadata=
                              {
                                  "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
                                  "MetaData": {
                                      "Keys": [
                                          "directshow"
                                      ],
                                      "Services": [
                                          "org.qt-project.qt.camera",
                                          "org.qt-project.qt.mediaplayer"
                                      ]
                                  },
                                  "archreq": 0,
                                  "className": "DSServicePlugin",
                                  "debug": false,
                                  "version": 331264
                              }
                              
                              "The plugin 'C:/Qt/Online/5.14.1/msvc2017/plugins/mediaservice/dsengine.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                                       not a plugin
                              

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

                              C 1 Reply Last reply
                              1
                              • JKSHJ JKSH

                                @celica said in No Mp4 Playback on Release Deployment:

                                I'm not sure how to set that variable as I run the app from within Visual Studio 2017

                                You could temporarily set it in your PC's global environment. Just remember to un-set it after.

                                I tried and got this response does this look right?

                                Unfortunately not. It should look something like this:

                                QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/5.14.1/msvc2017/plugins/mediaservice" ...
                                QFactoryLoader::QFactoryLoader() looking at "C:/Qt/5.14.1/msvc2017/plugins/mediaservice/dsengine.dll"
                                Found metadata in lib C:/Qt/5.14.1/msvc2017/plugins/mediaservice/dsengine.dll, metadata=
                                {
                                    "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
                                    "MetaData": {
                                        "Keys": [
                                            "directshow"
                                        ],
                                        "Services": [
                                            "org.qt-project.qt.camera",
                                            "org.qt-project.qt.mediaplayer"
                                        ]
                                    },
                                    "archreq": 0,
                                    "className": "DSServicePlugin",
                                    "debug": false,
                                    "version": 331264
                                }
                                
                                "The plugin 'C:/Qt/Online/5.14.1/msvc2017/plugins/mediaservice/dsengine.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                                         not a plugin
                                
                                C Offline
                                C Offline
                                celica
                                wrote on last edited by
                                #19

                                @JKSH Thanks
                                I set it within my code using this: qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));
                                This is what I get:
                                https://easyupload.io/11rf2k

                                Note it says defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
                                Not sure if this is relevant.

                                JKSHJ 1 Reply Last reply
                                1
                                • C celica

                                  @JKSH Thanks
                                  I set it within my code using this: qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));
                                  This is what I get:
                                  https://easyupload.io/11rf2k

                                  Note it says defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
                                  Not sure if this is relevant.

                                  JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on last edited by JKSH
                                  #20

                                  @celica said in No Mp4 Playback on Release Deployment:

                                  Note it says defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
                                  Not sure if this is relevant.

                                  Yes, it's relevant -- it shows that your app has not loaded your mediaservice plugins.

                                  Your QFactoryLoader lines are:

                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/mediaservice" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platforms" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms" ... 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/qwindows.dll" 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platformthemes" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platformthemes" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/styles" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/styles" ... 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/styles/qwindowsvistastyle.dll" 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/bearer" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer" ... 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer/qgenericbearer.dll" 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/imageformats" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats" ... 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qgif.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qicns.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qico.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qjpeg.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qsvg.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtga.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtiff.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwbmp.dll" 
                                  QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwebp.dll" 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessible" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessible" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessiblebridge" ... 
                                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessiblebridge" ... 
                                  
                                  1. You have plugin folders in 2 places. How did this happen? (The folders should only be in 1 place, by the way)
                                    • C:/Users/USER/Documents/incommandnew/platforms/
                                    • C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/
                                  2. What's in C:/Users/USER/Documents/incommandnew/Win32/Release/mediaservice?

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

                                  C 3 Replies Last reply
                                  1
                                  • JKSHJ JKSH

                                    @celica said in No Mp4 Playback on Release Deployment:

                                    Note it says defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
                                    Not sure if this is relevant.

                                    Yes, it's relevant -- it shows that your app has not loaded your mediaservice plugins.

                                    Your QFactoryLoader lines are:

                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/mediaservice" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platforms" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms" ... 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/qwindows.dll" 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platformthemes" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platformthemes" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/styles" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/styles" ... 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/styles/qwindowsvistastyle.dll" 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/bearer" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer" ... 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer/qgenericbearer.dll" 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/imageformats" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats" ... 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qgif.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qicns.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qico.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qjpeg.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qsvg.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtga.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtiff.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwbmp.dll" 
                                    QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwebp.dll" 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessible" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessible" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessiblebridge" ... 
                                    QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessiblebridge" ... 
                                    
                                    1. You have plugin folders in 2 places. How did this happen? (The folders should only be in 1 place, by the way)
                                      • C:/Users/USER/Documents/incommandnew/platforms/
                                      • C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/
                                    2. What's in C:/Users/USER/Documents/incommandnew/Win32/Release/mediaservice?
                                    C Offline
                                    C Offline
                                    celica
                                    wrote on last edited by
                                    #21

                                    @JKSH Based on your advice I have totally removed all versions of QT (I had two - 5.5 for a legacy project & 5.12.2 for this project)
                                    Now if I run the application from visual studio in release mode it works fine.
                                    Which was your advice to get that working first.
                                    So that's a good first step I think, thanks,
                                    Now I'll try and delpoy it.

                                    1 Reply Last reply
                                    0
                                    • JKSHJ JKSH

                                      @celica said in No Mp4 Playback on Release Deployment:

                                      Note it says defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
                                      Not sure if this is relevant.

                                      Yes, it's relevant -- it shows that your app has not loaded your mediaservice plugins.

                                      Your QFactoryLoader lines are:

                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/mediaservice" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platforms" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms" ... 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/qwindows.dll" 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platformthemes" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platformthemes" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/styles" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/styles" ... 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/styles/qwindowsvistastyle.dll" 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/bearer" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer" ... 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer/qgenericbearer.dll" 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/imageformats" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats" ... 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qgif.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qicns.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qico.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qjpeg.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qsvg.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtga.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtiff.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwbmp.dll" 
                                      QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwebp.dll" 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessible" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessible" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessiblebridge" ... 
                                      QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessiblebridge" ... 
                                      
                                      1. You have plugin folders in 2 places. How did this happen? (The folders should only be in 1 place, by the way)
                                        • C:/Users/USER/Documents/incommandnew/platforms/
                                        • C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/
                                      2. What's in C:/Users/USER/Documents/incommandnew/Win32/Release/mediaservice?
                                      C Offline
                                      C Offline
                                      celica
                                      wrote on last edited by celica
                                      #22
                                      This post is deleted!
                                      1 Reply Last reply
                                      0
                                      • JKSHJ JKSH

                                        @celica said in No Mp4 Playback on Release Deployment:

                                        Note it says defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer
                                        Not sure if this is relevant.

                                        Yes, it's relevant -- it shows that your app has not loaded your mediaservice plugins.

                                        Your QFactoryLoader lines are:

                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/mediaservice" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platforms" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms" ... 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/qwindows.dll" 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/platformthemes" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/platformthemes" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/styles" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/styles" ... 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/styles/qwindowsvistastyle.dll" 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/bearer" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer" ... 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/bearer/qgenericbearer.dll" 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/imageformats" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats" ... 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qgif.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qicns.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qico.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qjpeg.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qsvg.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtga.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qtiff.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwbmp.dll" 
                                        QFactoryLoader::QFactoryLoader() looking at "C:/Users/USER/Documents/incommandnew/Win32/Release/imageformats/qwebp.dll" 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessible" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessible" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/InCommand/accessiblebridge" ... 
                                        QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/USER/Documents/incommandnew/Win32/Release/accessiblebridge" ... 
                                        
                                        1. You have plugin folders in 2 places. How did this happen? (The folders should only be in 1 place, by the way)
                                          • C:/Users/USER/Documents/incommandnew/platforms/
                                          • C:/Users/USER/Documents/incommandnew/Win32/Release/platforms/
                                        2. What's in C:/Users/USER/Documents/incommandnew/Win32/Release/mediaservice?
                                        C Offline
                                        C Offline
                                        celica
                                        wrote on last edited by
                                        #23

                                        @JKSH
                                        Hi, So now it works in release mode within VS.
                                        Videos however still don't play if I deploy using -
                                        windeployqt --qmldir C:\Users\me\Documents\incommand2017\InCommand\Resources\videos C:\Users\me\Documents\incommandCopy\Win32\Debug

                                        Whats weird is if I run the above command then try and run a release build from within VS the videos will also no longer play.
                                        I have to delete all files from the release folder then rebuild the project and then it works again.

                                        JKSHJ 1 Reply Last reply
                                        0
                                        • C celica

                                          @JKSH
                                          Hi, So now it works in release mode within VS.
                                          Videos however still don't play if I deploy using -
                                          windeployqt --qmldir C:\Users\me\Documents\incommand2017\InCommand\Resources\videos C:\Users\me\Documents\incommandCopy\Win32\Debug

                                          Whats weird is if I run the above command then try and run a release build from within VS the videos will also no longer play.
                                          I have to delete all files from the release folder then rebuild the project and then it works again.

                                          JKSHJ Offline
                                          JKSHJ Offline
                                          JKSH
                                          Moderators
                                          wrote on last edited by
                                          #24

                                          @celica said in No Mp4 Playback on Release Deployment:

                                          C:\Qt\5.12.2\msvc2017 to C:\Users\me\Documents\incommandCopy\Win32\Release

                                          Great!

                                          windeployqt --qmldir C:\Users\me\Documents\incommand2017\InCommand\Resources\videos C:\Users\me\Documents\incommandCopy\Win32\Debug

                                          Debug or Release?

                                          Whats weird is if I run the above command then try and run a release build from within VS the videos will also no longer play.

                                          • Before you run windeployqt, your app tries to load DLLs from C:\Qt\5.12.2\msvc2017.
                                          • windeployqt copies DLLs from C:\Qt\5.12.2\msvc2017 to C:\Users\me\Documents\incommandCopy\Win32\Release
                                          • After you run windeployqt, your app won't try to load DLLs from C:\Qt\5.12.2\msvc2017 anymore.
                                          • After you run windeployqt, your app tries to load DLLs from C:\Users\me\Documents\incommandCopy\Win32\Release

                                          Here's the thing: If windeployqt "forgets" to copy some DLLs from C:\Qt\5.12.2\msvc2017 to C:\Users\me\Documents\incommandCopy\Win32\Release, then your app won't work correctly. Yes, it can miss important DLLs; it is not perfect.

                                          So, use QT_DEBUG_PLUGINS and ListDLLs again to find out which DLLs are missing. Manually copy the missing DLLs from C:\Qt\5.12.2\msvc2017 to C:\Users\me\Documents\incommandCopy\Win32\Release.

                                          IMPORTANT NOTE: You should only manually copy Qt DLLs. Do not touch non-Qt DLLs.

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

                                          C 1 Reply Last reply
                                          3

                                          • Login

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