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. Render multiple videos on seperated threads on QML

Render multiple videos on seperated threads on QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 237 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.
  • A Offline
    A Offline
    Arian
    wrote on last edited by
    #1

    I want to show live video of multiple video surveillance cameras in a QML project. I have access to MJPEG video streams of each camera. How ever, I have problems with playing MJPEG video stream from a url in QML.

    I currently use Video. This is the code I currently use:

    Video
    {
    id : myVideo
    width: parent.width
    height: parent.height
    anchors.centerIn: parent
    source : cameraPath
    autoPlay: true
    }

    But when I play one video, it has lags and glitches, some times even it makes my program to freeze. And when I play two videos, my program will definitely freeze and I have to force exit.

    I used Image instead of Video, but it didn't work. I also used Mediaplayer, but it is exactly the same as Video.

    I think the problem is that QML can't render multiple vidoes at once. And because I have some timers in my code, my main thread will be blocked. Is there any way in QML so that I can render each video separately in another thread? Does QML Video have problems with MJPEG? Is there any other component that I can work with?

    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