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. [solved] Deploy app with QtMultimedia on Windows

[solved] Deploy app with QtMultimedia on Windows

Scheduled Pinned Locked Moved Installation and Deployment
deploywindowsmultimediaaudiovideo
7 Posts 2 Posters 4.6k 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.
  • H Offline
    H Offline
    helenebro
    wrote on 22 Jul 2015, 09:33 last edited by helenebro
    #1

    Hi,
    I have an app (with Qt5.2.1) which use QtMultimedia (5.0) to play Audio (or Video). When I run the app on Qt Creator, I've no problem. I want deploy this application but my media doesn't work.
    This is my main.qml :

    import QtQuick 2.2
    import QtQuick.Window 2.1
    import QtMultimedia 5.0

    Window {
    visible: true
    width: 360
    height: 360

    MouseArea {
        anchors.fill: parent
        onClicked: mediaplayer.play()
    }
    Video {
        id: mediaplayer
        anchors.fill: parent
        source: "file:/myVideo.mp4"
    }
    

    }

    and my folder of deployement :
    myFloderDeploy/
    |___myVideo.mp4
    |___icudt51.dll
    |___icuin51.dll
    |___icuuc51.dll
    |___libgcc_s_dw2-1.dll
    |___libstdc++-6.dll
    |___libwinpthread-1.dll
    |___Qt5Core.dll
    |___Qt5Gui.dll
    |___Qt5Multimedia.dll

    When I display state of Video, I see status : "noMedia", the error : "FormatError" and the source is correct.
    I don't find what's missing.

    Thnak you for your help
    |___Qt5MultimediaQuick_p.dll
    |___Qt5MultimediaWidgets.dll
    |___Qt5Network.dll
    |___Qt5Qml.dll
    |___Qt5Quick.dll
    |___Qt5Sql.dll
    |___Qt5Widgets.dll
    |___testVideo.exe
    |___imageformats/
    |___platforms/
    |___QtGraphicalEffects/
    |___QtMultimedia/
    |___QtQuick/
    |___QtQuick.2/
    |___sqldrivers/

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jul 2015, 09:59 last edited by
      #2

      Hi,

      You are missing the QtMultimedia plugins. You can use windeployqt to get all dependencies deployed

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

      H 1 Reply Last reply 22 Jul 2015, 11:21
      0
      • S SGaist
        22 Jul 2015, 09:59

        Hi,

        You are missing the QtMultimedia plugins. You can use windeployqt to get all dependencies deployed

        H Offline
        H Offline
        helenebro
        wrote on 22 Jul 2015, 11:21 last edited by helenebro
        #3

        @SGaist
        I have the folder QtMultimedia ( it's a copy of the file C:\Qt\5.2.1\mingw48_32\qml\QtMultimedia) . Is it the right file (and the right place)?

        I test windeployqt but it doesn't work. When I manually add dll : libgcc_s_dw2-1.dll, libstdc++-6.dll, libwinpthread-1.dll, Qt5Quick.dll and Qt5MultimediaQuick_p.dll, app run but I have the same problem : no video.

        This the tree when I deploy with windeployqt :
        |___arbre.txt
        |___icudt51.dll
        |___icuin51.dll
        |___icuuc51.dll
        |___libgcc_s_dw2-1.dll
        |___libstdc++-6.dll
        |___libwinpthread-1.dll
        |___main.o
        |___moc_myapp.cpp
        |___moc_myapp.o
        |___myapp.o
        |___qrc_qml.cpp
        |___qrc_qml.o
        |___qrc_ressources.cpp
        |___qrc_ressources.o
        |___Qt5Core.dll
        |___Qt5Gui.dll
        |___Qt5Multimedia.dll
        |___Qt5MultimediaQuick_p.dll
        |___Qt5Network.dll
        |___Qt5Qml.dll
        |___Qt5Quick.dll
        |___qt_cs.qm
        |___qt_de.qm
        |___qt_hu.qm
        |___qt_it.qm
        |___qt_ja.qm
        |___qt_ru.qm
        |___qt_sk.qm
        |___qt_uk.qm

        |___ testVideo.exe
        |___ accessible/
        |___ bearer/
        |___iconengines/
        |___imageformats/
        |___platforms/

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Jul 2015, 21:16 last edited by
          #4

          Again, you are missing 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
          • H Offline
            H Offline
            helenebro
            wrote on 23 Jul 2015, 07:01 last edited by
            #5

            I don't understand. Is the QtMultimedia plugins correspond to the folder QtMultimedia (on C:\Qt\5.2.1\mingw48_32\qml or C:\Qt\5.2.1\mingw48_32\include) ? When I include this folder (next to .exe), it doesn't work.
            myFloderDeploy/
            |___myVideo.mp4
            |___icudt51.dll
            |___icuin51.dll
            |___icuuc51.dll
            |___libgcc_s_dw2-1.dll
            |___libstdc++-6.dll
            |___libwinpthread-1.dll
            |___Qt5Core.dll
            |___Qt5Gui.dll
            |___Qt5Multimedia.dll
            |___Qt5MultimediaQuick_p.dll
            |___Qt5MultimediaWidgets.dll
            |___Qt5Network.dll
            |___Qt5Qml.dll
            |___Qt5Quick.dll
            |___Qt5Sql.dll
            |___Qt5Widgets.dll
            |___testVideo.exe
            |___platforms/
            |___accessible/
            |___bearer/
            |___iconengines/
            |___imageformats/
            |___platforms/
            |___qmltooling/
            |___QtGraphicalEffects
            |___QtMultimedia/
            |___QtMultimediaQuick_p/
            |___QtMultimediaWidgets/
            |___QtQuick/
            |___QtQuick.2/
            |___sqldrivers/

            1 Reply Last reply
            0
            • H Offline
              H Offline
              helenebro
              wrote on 23 Jul 2015, 16:02 last edited by
              #6

              I have found. It was missing : Qt5OpenGL.dll

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 23 Jul 2015, 21:48 last edited by
                #7

                Good !

                Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                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

                1/7

                22 Jul 2015, 09:33

                • Login

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