[Live-devel] RTSP Server

Ross Finlayson finlayson at live555.com
Mon Jul 27 01:35:21 PDT 2009


>I'd like to know if there's any tutorial about RTSP Servers, because im a
>newbie programmer

Unfortunately, this software is not intended for "newbie programmers".


>I want to develop  a server which streams H264 video (not on demand, just
>begins the streaming as soon as one client is connected, and uses the same
>stream for all the others clients connected; stops streaming when there's
>no clients connected).
>
>As far as i've seen, i have to:
>
>-create my own H264MediaSubsession class

Yes.  This should be a subclass of "OnDemandServerMediaSubsession", 
and must set the "reuseFirstSource" parameter to True (because you 
want to use the same input source for all downstream clients).

>-create RTSPServer and add my new subsession class

Yes.

>-create H264RTPSource

No!  "RTPSource"s are used only for RTP *receivers* (i.e., clients). 
You are writing a server, not a client.

Instead, you need to write your own subclass of 
"H264VideoStreamFramer" (to encapsulate your input source, to deliver 
H.264 NAL units).

>-create H264RTPSink to handle the streaming itself

Yes.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list