Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Using Video from QtMultimedia on RPi4

Using Video from QtMultimedia on RPi4

Scheduled Pinned Locked Moved Unsolved QtonPi
1 Posts 1 Posters 599 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.
  • T Offline
    T Offline
    thealse
    wrote on last edited by
    #1

    I am using a RPi4 and running QML nativly. In the past I used to cross-compile QT but I don't think it is really needed on the RPi4.

    I am on the following version:

    $ uname -a
    Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
    

    After installing needed QT modules, I gave the Video element a test and nothing shows up, no error messages either.

    Here is the basic code:

    import QtQuick 2.9
    import QtQuick.Window 2.2
    import QtMultimedia 5.5
    
    Window {
        visible: true
        color: "orange"
        width: 800
        height: 600
    
        Video {
            id: video
            source: "file:///home/pi/test.mp4"
            anchors.fill: parent
            autoLoad: true
            autoPlay: true
        }
        MouseArea {
            anchors.fill: parent
            onClicked: {
                console.log("xxx")
                video.play()
            }
        }
    }
    

    I have pretty much installed whatever gstreamer packages I could find and still nothing. The window shows but nothing is playing.

    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