QML - Video not working
-
Hello,
I have a problem with Video element, when I try to play .mp4 or any other .avi file, I will have just blank screen.
Itried this code
@import QtQuick 2.4
import QtQuick.Controls 1.3
import QtMultimedia 5.0ApplicationWindow {
title: qsTr("Hello World")
width: 640
height: 480
visible: trueVideo { source: "small.mp4" autoPlay: true anchors.fill: parent }
}
@I find only one .avi file, which can be played, but there are always some black flashes in background.
I tried these files: https://drive.google.com/folderview?id=0B_p9vAQIJUL6Qm9vRExESnp6T1k&usp=sharingThank you
-
Hi
Probably it's a matter of missing codeces.
If you are on windows using MinGW K-Lite Codec Pack is an option.
The tricky bit can be hardware decoding of certain formats and sizes.
The following pages contains some useful information : "backends":http://qt-project.org/wiki/Qt_Multimedia_Backends and "angel":http://qt-project.org/wiki/Qt-5-on-Windows-ANGLE-and-OpenGL