<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">I am building an application where several clients should be able to watch a video stream from a CCTV IP camera.</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">I think that the best solution bandwidth-wise is to have a single computer in the network connect to the rtsp stream from the camera, and then broadcast this stream via UDP (to some address like 255.255.255.255) so all other computers in the network only need to "tap" that UDP port to get the video stream.</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""></div></blockquote><div><br class=""></div>First, you shouldn’t be sending to the ‘broadcast’ address 255.255.255.255, because that will cause the packets to get received (and then discarded, if inappropriate) by all computers on your LAN. Instead, you should be using an IP multicast address - which will cause the packets to get delivered only to the computer(s) that have subscribed to that address, and also (with appropriate routing) allows for the possibility of the packets being forwarded beyond a single LAN.</div><div><br class=""></div><div>And, of course, you should be using the standard RTP protocol (over UDP), rather than raw UDP.</div><div><br class=""></div><div>We have several demo applications - in the “testProgs” directory - that will stream (from a video file) via IP multicast. You didn’t say what video codec you are using, but if you’re using H.264 (the most commonly-used video codec these days), then you can use our “testH264VideoStreamer” application.</div><div><br class=""></div><div>Then, once you have demonstrated multicast streaming from a file (using an appropriate “test*Streamer” demo application), then see here</div><div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://live555.com/liveMedia/faq.html#liveInput" class="">http://live555.com/liveMedia/faq.html#liveInput</a></div><div>for tips on how to adapt this to stream from a live video source.</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;" class="">I implemented this with VLC and it works, but... as the network gets more load from several devices, the VLC instances start falling behind the real time stream from the camera. With one Full HD camera and four standard cameras in the network, VLC (the "source" or re-streaming instance mainly) falls behind at an astonishing rate and after some 10 minutes the output stream is like 5 minutes behind real time!</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" class=""></div></blockquote><div><br class=""></div>We can’t help you with VLC problems (because VLC is not our problem), but I wonder if perhaps you’re running into network capacity problems. Note that if any of your cameras are streaming over WiFi, then broadcast (or multicast) over WiFi is notoriously slow.</div><br class=""><br class=""><div apple-content-edited="true" class="">
<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; "><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; ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>