Streaming using 3 Gateways?

About encoding, codec settings, muxers and filter usage
CoDeX2k
New Cone
New Cone
Posts: 8
Joined: 31 Jan 2007 00:16

Streaming using 3 Gateways?

Postby CoDeX2k » 06 Jul 2008 14:18

Hello everbody,

I have 3 VDSL Gateways. Each has 1 MBit Upload Speed. 1 MBit is to slow for streaming DiVX without problems. Is there a way to use all 3 Gateways to stream the file?

Regards,
CoDeX2k

olegkirillov
Blank Cone
Blank Cone
Posts: 46
Joined: 29 Jun 2008 21:04

Re: Streaming using 3 Gateways?

Postby olegkirillov » 09 Jul 2008 11:13

Nope, your gateways all use the different local and global IP addresses and unless you use some sort of load balancing software you can't accomplish the task. Even with the load balancer your clients will be forced to try each of your gateways until they find the least loaded one.

CoDeX2k
New Cone
New Cone
Posts: 8
Joined: 31 Jan 2007 00:16

Re: Streaming using 3 Gateways?

Postby CoDeX2k » 09 Jul 2008 11:53

We have a big company central site gateway from Cisco which does load balancing very well. But it does like if you do an HTTP download you get 20 MBits if you do a second at the same time you will get another 20 MBit but you can't get 40 MBit with just one normal HTTP Session. You need the download with Download Managers like FlashGet. So I was wondering if it's someway possible to do that with VLC using more than one datastream or sending on more than one data stream...

olegkirillov
Blank Cone
Blank Cone
Posts: 46
Joined: 29 Jun 2008 21:04

Re: Streaming using 3 Gateways?

Postby olegkirillov » 09 Jul 2008 13:00

You look from the perspective of internal user, receiving the stream from the single source (Cisco router) as it balances the load on its outside interfaces. Unfortunately when you send stream to the outside world you have three separate interfaces/IPs presented to the users and no load balancer for them.
Your option is to use P2P streaming software like SopCast with one server and two relay clients inside your network, but your users will have to install special software (i. e. SopCast Player).
The other option is to use external relay with lot of bandwidth. You'll send a single stream up to relay and it'll distribute the data across users. I'm using TVU (as it is free), but again it needs special client and has a lot of problems. Also it is optimised for 360-384kbps streams.

CoDeX2k
New Cone
New Cone
Posts: 8
Joined: 31 Jan 2007 00:16

Re: Streaming using 3 Gateways?

Postby CoDeX2k » 10 Jul 2008 23:39

Okay, even if im in the same net trough a VPN session?

olegkirillov
Blank Cone
Blank Cone
Posts: 46
Joined: 29 Jun 2008 21:04

Re: Streaming using 3 Gateways?

Postby olegkirillov » 12 Jul 2008 09:58

I'm not sure what you mean.
VPN does not help either, it has nothing to do with load balancing.
Using NAT you can set up simple TCP load balancing, but you can't do this for the external users.

CoDeX2k
New Cone
New Cone
Posts: 8
Joined: 31 Jan 2007 00:16

Re: Streaming using 3 Gateways?

Postby CoDeX2k » 12 Jul 2008 13:22

Yeah, I think you are right. Is there a possibility to use the 1MBit to stream? What are the optimal settings for a streaming with 1MBit?

I tried h264 with 600kb for video, mp3 with 64kb for audio, TTL I used 1 -> works quite good

But I have one problem. All 50 - 60 seconds the data transfer is colapsing for one or two seconds and transfers only 60 - 70 Kbyte/Sec instead of the 100 - 115 Kbyte/Sec. So I get ghostings and pixel failures.

Is there a possible to fix that? Caching? Or something like that?

Regards,
CoDeX2k

olegkirillov
Blank Cone
Blank Cone
Posts: 46
Joined: 29 Jun 2008 21:04

Re: Streaming using 3 Gateways?

Postby olegkirillov » 12 Jul 2008 18:07

First you have to be quite sure that your codec won't produce the stream of more than your channel's bandwidth. Check the settings and play the stream in another vlc to see the actual bandwidth (it'll be higher than codec's output because of the container and packetizing overhead. Lower the codec's bitrate, if necessary. Also look at the played output - the scenes may contain fast motion or entire scene panning that are the hardest cases for almost every codec. The H.264 is a complex codec and could eat your CPU out, this can be the cause of the troubles with the stream.
If you satisfied with the result, try to stream over your Inet connection. If you did everything right, there will be no problems. But do not forget the possible troubles from the oversubscribed provider's network.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests