[Solved] No video plackback with QtMultimedia
-
wrote on 11 Mar 2015, 21:16 last edited by A Former User 3 Nov 2015, 21:17
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 } }
1/1