[gst-devel] GStreamer RTSP Server Multicast RTP Question

Robert Krakora rob.krakora at messagenetsystems.com
Tue Mar 2 20:18:11 CET 2010


> ------------------------------
>
> Message: 4
> Date: Tue, 02 Mar 2010 18:46:17 +0100
> From: Wim Taymans <wim.taymans at gmail.com>
> Subject: Re: [gst-devel] GStreamer RTSP Server Multicast RTP Question
> To: Discussion of the development of GStreamer
>        <gstreamer-devel at lists.sourceforge.net>
> Cc: Jerry Geis <geisj at messagenetsystems.com>
> Message-ID: <1267551977.3328.50.camel at metal>
> Content-Type: text/plain; charset="UTF-8"
>
> 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
>> ------------------------------------------------------------------------------

O.K., so is there a way that I can set up the RTSP server to only
advertise and provide multicast?  Thanks in advance.

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




More information about the gstreamer-devel mailing list