On Wed, Jul 22, 2009 at 2:57 AM, <span dir="ltr"><<a href="mailto:tm18174@salle.url.edu">tm18174@salle.url.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I want to develop a server which streams H264 video (not on demand, just<br>
begins the streaming as soon as one client is connected, and uses the same<br>
stream for all the others clients connected; stops streaming when there's<br>
no clients connected).</blockquote><div><br>What you just described is an "on-demand" RTSP server; when a client connects, the stream is started. Take a look at the samples; they function exactly how you describe it (stream starts when first client connects, subsequent connections reuse the first stream).<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
As far as i've seen, i have to:<br>
<br>
-create my own H264MediaSubsession class<br>
-create RTSPServer and add my new subsession class<br>
-create H264RTPSource and provide the video source to this class<br>
-create H264RTPSink to handle the streaming itself<br>
</blockquote><div><br>That's pretty much it. You also need to know something about the H.264 stream your encoder produces (how to get SPS/PPS, something about what NALU it outputs, etc.) </div></div>