Video does not play in the format mp4
-
I use Qt 5.0.2 for Windows 32-bit (MinGW 4.7). I created simple Qt Quick 2 Application (Built-in Elements) with this code:
@import QtQuick 2.0
import QtMultimedia 5.0Rectangle {
width: 800
height: 600
color: "#f5e7c9"
Text {
text: qsTr("Hello Harrix")
anchors.centerIn: parent
}Video { id: video width : 800 height : 600 source: "file://video.mp4" MouseArea { anchors.fill: parent onClicked: { video.play() console.log("111"); } } focus: true Keys.onSpacePressed: video.paused = !video.paused Keys.onLeftPressed: video.position -= 5000 Keys.onRightPressed: video.position += 5000 }
}@
The program works fine. But I'm trying to run on an empty Windows 7 or 8 with codecs (K-Lite Codec Pack). And the program does not show the video. But the sound is coming. If I use the wmv file format, the program works and the video is. How to make a show video MP4? Many thanks in advance!
I use the following libraries to the program run on the operating system without Qt:
- plugins\mediaservice\dsengine.dll
- plugins\platforms\qminimal.dll
- plugins\platforms\qwindows.dll
- qml\QtMultimedia\declarative_multimedia.dll
- qml\QtMultimedia\qmldir
- qml\QtMultimedia\Video.qml
- qml\QtQuick.2\qtquick2plugin.dll
- qml\QtQuick.2\qmldir
- D3DCompiler_43.dll
- icudt49.dll
- icuin49.dll
- icuuc49.dll
- libEGL.dll
- libgcc_s_sjlj-1.dll
- libGLESv2.dll
- libstdc++-6.dll
- libwinpthread-1.dll
- qt.conf
- Qt5Core.dll
- Qt5Gui.dll
- Qt5Multimedia.dll
- Qt5MultimediaQuick_p.dll
- Qt5MultimediaWidgets.dll
- Qt5Network.dll
- Qt5OpenGL.dll
- Qt5Qml.dll
- Qt5Quick.dll
- Qt5V8.dll
- Qt5Widgets.dll
-
Did you ever get this to work?
-
Try another codec pack. I recommend "CCCP":http://www.cccp-project.net/download.php?type=cccp