<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>I am new to this live555 media server. I am trying to make a server running on ubuntu that can perform the following task:<br>It gets h.264 video data over RTP from others (e.g. ffmpeg), then it will broadcast the video to other viewers( e.g. vlc player) via rtsp protocol.<br></div></blockquote><div><br></div><div>If your H.264 video source is accessible via RTSP, then you could use our new "LIVE555 Proxy Server" application, which already does all of this:</div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://www.live555.com/proxyServer/">http://www.live555.com/proxyServer/</a></div><div><br></div><div><br><blockquote type="cite"><div>After reading the codes of live555MediaServer.cpp and testOnDemandRTSPServer.cpp and some other files plus a little guessing, I think I shall prepare a class that will treat h.264 RTP data derived from OnDemandServerMediaSubsession. I call it H264VideoUDPServerMediaSubsession.<br><br> In this class, function createNewStreamSource() will create an instance of class H264VideoStreamFramer</div></blockquote><div><br></div>Almost. Because the data source (a "H264VideoRTPSource") delivers discrete H.264 NAL units (i.e., one at a time), rather than a byte stream, you must use a "H264VideoStreamDiscreteFramer", not a "H264VideoStreamFramer".</div><div><br></div><div>Everything else looks correct, as far as I can tell.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>