replicate a live stream from one server to another with php and wget [slightly ot]
| From: | Graham Anderson | Date: | Fri, 18 Nov 2005 01:38:25 +0000 |
| Subject: | replicate a live stream from one server to another with php and wget [slightly ot] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226021@lists.php.net to get a copy of this message | ||
has anyone here used wget or similar command to redirect/reflect a live stream data from one server to another server ?
I wanted to use each server's upload bandwidth to transfer a live stream to a new server
that way, my hope is that I can balance the bandwidth load a bit between servers for users in different areas.
Would it just be a question of duplicating the headers of the incoming file and redirecting it to another server?
I am 'fishing' a bit so any help from those who use php with live streaming is appreciated.
Server side:
live stream is encoded and sent to
streaming server 1 in Los Angeles which sends the data to
streaming server 2 in Chicago which sends the data to
streaming server 3 in Mexico City
Client Side:
The below is pretty simple to do :)
When the user tries to access the live broadcast stream, a php script determines the nearest non-overloaded server.
In this case, the user is directed to the live stream on server two in Chicago
many thanks
g