How To Play RTP-VideoStreams with QML2 VideoOutput?



  • 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?



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



  • 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,:-(




Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.