Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Video player on ubuntu isn't working
Qt 6.11 is out! See what's new in the release blog

Video player on ubuntu isn't working

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 690 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    thomasons
    wrote on last edited by thomasons
    #1

    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
     Video{
         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!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

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