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. RTSP Stream with QML
Forum Updated to NodeBB v4.3 + New Features

RTSP Stream with QML

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

    Hello,

    I'm trying to figure out, how is possible do a RTSP Streaming from IP Camera directly on Qml and with a good performance.

    I can do it on my desktop computer, but it should work on a Embedded System. Actually I'm using a Colibri iMX6 to develop and this streaming should work in this environment.

    The problem is about performance on iMX6. When we start the
    stream, the Qml application is a little "lazy". We can percept this
    on "onClick" events, screen change, flickable components, ... There
    is somethink like a "delay" in the application.

    I'm using QML and the components MediaPlayer and VideoOutput, with the following code:

    MediaPlayer {
    id: videoPlayer
    source:: "rtsp://admin:admin@192.168.0.10/cam/realmonitor
    ?channel=1&subtype=0"
    muted: true
    autoPlay: true
    }
    
    VideoOutput {
    id: camera1
    width: 100
    height: 100
    anchors.horizontalCenter: parent.horizontalCenter
    source: videoPlayer
    }
    

    I saw something about gstreamer plugins to qml, Vlc plugins, ... but I can't understand why specific qml objects to Video aren't with a good performance. I believe I can improve this.

    What whould you do in this case? What you are doing for this kind of application?

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

      Hi,

      Something to take into account:

      • What is the framerate of the stream ?
      • what is the size of the streamed images ?

      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
      • Egn1n3E Offline
        Egn1n3E Offline
        Egn1n3
        wrote on last edited by
        #3

        Maybe this can help?
        https://forum.qt.io/topic/59758/how-to-display-rtsp-stream-using-qt-i-already-used-libvlc-qt-for-display-but-i-didn-t-get-control-over-stream-after-using-this-library-so-i-don-t-want-to-use-libvlc-qt

        1 Reply Last reply
        1

        • Login

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