Qt World Summit: Register Today!

Video player on ubuntu isn't working

  • I wrote a simple video player in Qt :

    import QtQuick 2.7
    import QtQuick.Controls 2.0
    import QtQuick.Layouts 1.0
    import QtMultimedia 5.9
    ApplicationWindow {
    visible: true
         id: video
         width: 800
         height: 600
         autoPlay: true
         source: "C:/Users/papu/apps/a.mp4"

    On Windows everything is working fine. When I run this code on Ubuntu I can only see a white background and I dont' have any errors or warnings. I tried with several paths like "/home/papu/a.mp4", "file:///home/papu/a.mp4" etc. Question is, is there a problem with the path or am I missing some drivers?

    Best Regards!

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Which version of Qt are you using ?
    Can you read that file with GStreamer directly ?

Log in to reply