Hi,

Input.http() pulls data from an icecast or shoutcast server -- or even
an HTTP server. It means that you need a server between your winamp
and liquidsoap. Winamp connects to it (normal procedure) and
liquidsoap connects as a client using an URL like
"http://yourcastserver:8000/mount";. 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.

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

Have fun,

David

Reply via email to