Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How To Play RTP-VideoStreams with QML2 VideoOutput?

    QML and Qt Quick
    3
    5
    6237
    Loading More Posts
    • 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.
    • H
      hpollak last edited by

      Hy!!!

      I am trieing to play rtp-VideoStreams with VideoOutput using MediaPlayer-Component.

      I have build a qml-File:

      @
      import QtQuick 2.0
      import QtMultimedia 5.0

      Item {

      property alias src : video.source
      
      MediaPlayer {
          id: video
          autoPlay: true
          muted: true
      }
      
      VideoOutput {
          source: video
          anchors.fill: parent
          focus : visible // to receive focus and capture key events when visible
          fillMode: VideoOutput.Stretch
      }
      

      }
      @

      by setting

      @
      src: "rtp://@239.2.16.1:8208"
      @

      with a recordet ( by vlc ) File every thing works fine, allso work if I use vlc to restream ( without transcodeing ) from rtp to rtsp.

      but on using rtp application gives folloing output:

      GStreamer; Unable to pause - "rtp://@239.2.16.1:8208"
      GStreamer; Unable to play - "rtp://@239.2.16.1:8208"

      Error: "no URI-Handler for »rtp« implemented"

      put when I'm checking gst-inspect rtp-components are installed.

      Has anyone an idea?

      1 Reply Last reply Reply Quote 0
      • T
        tiftof last edited by

        I'm having the same problem. Gstreamer backend only support rtsp links and not rtp. Have you found a way around this?

        1 Reply Last reply Reply Quote 0
        • H
          hpollak last edited by

          Sorry not at this time, with GStreamer.

          But a possible Way ( but only for playing one Video-Stream ) is to use VLC.
          If tested it, but only one rtp multicast stream can be shown.

          See "":http://mikesshop.net/?p=89
          "libVLC"http://wiki.videolan.org/LibVLC_SampleCode_Qt

          Hope it helps on your problem.

          Some time ago i tested it on Win and Linux it works on both.

          But for my Problem i havn't found a solution yet,:-(

          1 Reply Last reply Reply Quote 0
          • H
            hpollak last edited by

            "I used this one:":http://qt-apps.org/content/show.php/VLC-Qt+library?content=133649

            M 1 Reply Last reply Reply Quote 0
            • M
              Mohammad Kanan @hpollak last edited by

              on Linux (GStreamer backend) , usually udp should be used to playback the stream

              1 Reply Last reply Reply Quote 0
              • First post
                Last post