Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] No video plackback with QtMultimedia
Forum Update on Monday, May 27th 2025

[Solved] No video plackback with QtMultimedia

Scheduled Pinned Locked Moved QML and Qt Quick
videoubuntugstreamermpeg4mp4xvidaviqtmultimediaqtquickqml
1 Posts 1 Posters 1.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 11 Mar 2015, 21:16 last edited by A Former User 3 Nov 2015, 21:17
    #1

    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 Reply Last reply
    0

    1/1

    11 Mar 2015, 21:16

    • Login

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