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. How To Play RTP-VideoStreams with QML2 VideoOutput?

How To Play RTP-VideoStreams with QML2 VideoOutput?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 6.8k 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.
  • H Offline
    H Offline
    hpollak
    wrote on 25 Dec 2012, 09:46 last edited by
    #1

    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
    0
    • T Offline
      T Offline
      tiftof
      wrote on 30 Jan 2013, 09:57 last edited by
      #2

      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
      0
      • H Offline
        H Offline
        hpollak
        wrote on 30 Jan 2013, 11:18 last edited by
        #3

        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
        0
        • H Offline
          H Offline
          hpollak
          wrote on 30 Jan 2013, 11:36 last edited by
          #4

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

          M 1 Reply Last reply 12 May 2022, 16:42
          0
          • H hpollak
            30 Jan 2013, 11:36

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

            M Offline
            M Offline
            Mohammad Kanan
            wrote on 12 May 2022, 16:42 last edited by
            #5

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

            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