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. QML video speed
Qt 6.11 is out! See what's new in the release blog

QML video speed

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 1 Posters 3.7k 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.
  • S Offline
    S Offline
    secureboot
    wrote on last edited by
    #1

    I'm trying to simply play a .mov video in QML. Nothing else.

    I can get it to start, but on a new 2011 Macbook, it's choppy and slow. I really like QML, and I'd love to use it, but if I can't get reasonable performance out of it, I can't use it.

    Any thoughts on where to start looking into this? I'm curious if the wrong backend is somehow being chosen (not utilizing the capabilities of my graphics card), or some other thing is coming into play. The same video is fantastic with QtWebkit, on the same machine.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      secureboot
      wrote on last edited by
      #2

      Here's the code, if that's helpful. Also includes the hack i put in to loop the video, which is NOT where the slowdown is coming from.

      @
      Video {
      anchors.fill: parent
      source: "/background.mov"

          MouseArea {
              anchors.fill: parent
              onClicked: {
                  console.log("Clicky")
              }
          }
      
          focus: true
          playing: true
          Keys.onLeftPressed: video.position -= 5000
          Keys.onRightPressed: video.position += 5000
          onStopped: {
              console.log("Starting to loop back");
              position = 0
              playing = true
              console.log("Done looping back")
          }
      

      }@

      1 Reply Last reply
      0
      • S Offline
        S Offline
        secureboot
        wrote on last edited by
        #3

        Also, this seems to grow in memory usage by about 50-100MB/s, which is insane.

        Is this just not being used by anyone? Just not on a mac?

        I used the latest released qt-mobility compiled from scratch, if that's helpful.

        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