GStreamer rtp stream to vlc

前端 未结 2 1251
栀梦
栀梦 2020-12-01 00:01

I\'m having some trouble figuring out how to create a simple rtp stream with gstreamer and display it on vlc.

I\'ve installed GStreamer 0.10.30 and VLC 1.1.3. My onl

相关标签:
2条回答
  • 2020-12-01 00:59

    I've solved the issue, it just needs an sdp file like this:

    v=0
    m=video 5000 RTP/AVP 96
    c=IN IP4 127.0.0.1
    a=rtpmap:96 MP4V-ES/90000
    

    and the option "send-config=true" for the rtpmp4vpay element:

    gst-launch videotestsrc ! ffenc_mpeg4 ! rtpmp4vpay send-config=true ! udpsink host=127.0.0.1 port=5000
    

    and then, it can be played with

    vlc <filename>.sdp
    
    0 讨论(0)
  • How to for H264 and new gstreamer (windows)

    gst-launch-1.0 videotestsrc ! openh264enc ! rtph264pay config-interval=10 pt=96 ! udpsink host=127.0.0.1 port=5000
    

    sdp file:

    v=0
    m=video 5000 RTP/AVP 96
    c=IN IP4 127.0.0.1
    a=rtpmap:96 H264/90000
    

    for other codec see https://en.wikipedia.org/wiki/RTP_audio_video_profile and corresponding SDP example in RFC link

    0 讨论(0)
提交回复
热议问题