Le Friday 28 March 2008 10:51:40 David Baelde, vous avez écrit : > Having an icecast server in > between means that there is one more buffer, so more latency. > Moreover, liquidsoap has no way to know when you're streaming: all it > will do is poll every couple seconds, asking the broadcast server > whether there is a stream to relay. This creates yet another extra > latency -- but try before deciding that it matters.
And spams the server's logs.. To me input.http is interesting when you want to relay a stream that will be most of the time available, or is expected to be.. > Input.harbor() has a mini-icecast server built-in. Your winamp can > then just connect to liquidsoap. But here, I think it doesn't work > that well if your client is for shoutcast and not icecast. This > solution avoids the extra hop throught a broadcasting server, and the > polling. Notice that it still won't give you a low latency, the > protocol isn't designed for that. Unfortunately I can't write a harbor > tutorial right now, I don't use it that often... from my memories it's > not too tricky. You can start with the harbor example there: > http://savonet.sourceforge.net/wiki/wikka.php?wakka=LiqExamples Quick and dirty howto: 1) Relevant settings are: set("harbor.bind_addr","127.0.0.1"): Use "0.0.0.0" here if you want the harbor server to receive streams from external machines, or a better value if you want to restrict to your LAN or else.. set("harbor.icy",false): Set to true is the source client is designed for shoutcast. ICY protocol is normaly supported, but more testing wouldn't hurt, on the contrary :-) set("harbor.username","source"), set("harbor.password","hackme"): Source user and password. Most of the time, the user shoudn't be changed. set("harbor.port",8005): Port for listening to incoming connections. Is isually 8000 with icecast and shoutcast. Also, note that if your use ICY (shoutcast), the port n+1 (here 8006) must also be open. But, the source client is setup to connect to port n (here 8005). set("harbor.timeout",30.): Timeout for source connection when latency happens (in seconds). 2) Create a source in your script: source = input.harbor("prout") Then, when you run the script, a harbor server will be started, accepting source connections for mountpoint "prout" (or "/prout"), with associated settings. source is then available when a source client is connected and sending audio data, as with icecast.. I'll write a tutorial for the new website.. Romain -- There is a land far, far away Where there's no night, there's only day Look into the book of life and you will see That there's a land far, far away
