Answer for Viewing live stream on LAN while pushing to a CDN

Hi, This operation is simple. All needs to be done is to point all those 5000 clients to the server. In your example, you will have 1+1+5000 connections: 1 input RTSP stream 1 output stream to the CDN 5000 output LAN streams From a logical perspective, that 1 output stream to the CDN is absolutely no different from those 5000 LAN streams. They all are output streams. At deep technical level, the only difference between them is who initiated the connection. For the CDN connection, EMS was the one connecting to the distant party (CDN). For the 5000 connections, EMS is an acceptor (clients connecting to view it). So, performance-wise they are identical. Example: if your input stream is called test1, than you should give this URL to all your clients: rtmp://1.2.3.4/live/test1 (change the ip, of course) Needless to say, there are protocols alternatives, I’m just showing the worst case scenario here. Because I spoke about performance, you do need to make sure you satisfy the following general requirements: 1. have enough bandwidth. For ~5000 connections, your stream must be at most ~200kbps for a 1Gbps network card. Of course, it scales up. Just brought in the numbers so you have a big picture on the problem 2. while EMS can happily hold that much traffic, we usually advise people not to put all eggs in the same basket, especially if that basket containing that one single very important CDN connection. Things may go south: a network glitch in the switch for example, will cause EMS to do some aggressive buffering (holding data till the network is back on tracks). Holding the data for 1 connection is, obviously 3 orders of magnitude cheaper than holding it for 5000 connections (3 zeros figure). You will see the mem being eaten alive because of that. See our performance graphs on memory and see what happens when we reach the intentionally limit of having only 1Gbps network card: https://evostream.com/products/efficiency. 3. launching the server in cluster mode is mandatory 4. tweaking the network stack at OS level is desired. I don’t currently have a link at hand to give you, but one of my colleagues could give you that. I’m talking about TCP keep alive settings 5. You need to run on a UNIX to achieve this kind of performance Best regards, Andrei P.S. I have removed the other 3 posts, there were accidental duplicates I believe

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.