[Solved] No video plackback with QtMultimedia
-
Hi guys,
I've spent some time searching the web to solve this issue. So, in case you're on Ubuntu 14.10 and QtMultimedia player won't play your videos because of missing decoder plugins, installing gstreamer0-10-ffmpeg should help.
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep sudo apt-get update sudo apt-get install gstreamer0.10-ffmpeg
Found here: http://askubuntu.com/questions/575869/how-do-i-install-gstreamer0-10-ffmpeg-on-ubuntu-14-10
Example code:
import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2 import QtMultimedia 5.4 ApplicationWindow { title: qsTr("Hello world") width: 640 height: 480 visible: true Video { source:"file:///home/user/1.mp4" anchors.fill: parent autoPlay: true } }