[gst-devel] GStreamer RTSP Server Multicast RTP Question
Wim Taymans
wim.taymans at gmail.com
Tue Mar 2 18:46:17 CET 2010
On Mon, 2010-03-01 at 16:33 -0500, Robert Krakora wrote:
> Hello,
>
> I can successfully capture and send unicast video and audio data from
> a v4l2 webcam and microphone via gst-rtsp RTSP server when requested
> by an RTSP client. However, I cannot seem to figure out how to send
> multicast video and audio data. I am using the test-launch example
> provided with gst-rtsp in both cases. However, case (2) below yeilds
> nothing when an RTSP client request arrives. What am I doing wrong?
> Thanks in advance. ;-)
>
> Case 1 (Unicast)
>
> /home/silentm/MessageNet/totem/gst-rtsp-0.10.5/examples/test-launch
> --gst-debug=255 "( v4l2src device=/dev/video0 ! ffmpegcolorspace !
> video/x-raw-yuv,width=640,height=480,framerate=30/1 ! theoraenc
> quality=10 bitrate=6000 speed-level=2 ! rtptheorapay pt=96 name=pay0
> alsasrc device="hw:0,0" ! audioconvert ! vorbisenc ! rtpvorbispay
> pt=97 name=pay1 )"
>
> Case 2 (Multicast?)
>
> /home/silentm/MessageNet/totem/gst-rtsp-0.10.5/examples/test-launch
> --gst-debug=255 "( gstrtpbin name=rtpbin v4l2src ! ffmpegcolorspace !
> theoraenc ! rtptheorapay ! rtpbin.send_rtp_sink_0
> rtpbin.send_rtp_src_0 ! udpsink port=5000 host=224.2.8.13
> rtpbin.send_rtcp_src_0 ! udpsink port=5001 host=224.2.8.13 sync=false
> async=false udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0 alsasrc
> device="hw:0,0" ! audioconvert ! vorbisenc ! rtpvorbispay !
> rtpbin.send_rtp_sink_1 rtpbin.send_rtp_src_1 ! udpsink port=5002
> host=224.2.8.13 rtpbin.send_rtcp_src_1 ! udpsink port=5003
> host=224.2.8.13 sync=false async=false )"
This won't work. gst-rtsp-server can only deal with launch lines that
end with a payloader. The transport that is then negotiated with the
client depends on the client (so if you want multicast, you need a
client that asks for multicast). Also currently it's not possible to
instruct a resource to be delivered on a multicast address AFAICR.
You can however set the mediafactory as 'shared' and then you can
connect with multiple clients (over unicast) to watch the stream
simultaneously.
Wim
>
> Best Regards,
>
> --
> Rob Krakora
> Senior Software Engineer
> MessageNet Systems
> 101 East Carmel Dr. Suite 105
> Carmel, IN 46032
> (317)566-1677 Ext. 206
> (317)663-0808 Fax
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list