Le Thursday 10 May 2007 00:05:56 Jorge Ignacio Jiménez, vous avez écrit :
> Now can somebody teach me a little bit about advanced configurations?

I think I can !

> 1) I'd need to reencode on the fly mp3 songs and create parallel mount
> points with the same playlist but different bitrates

Let source be the original source, then you may define for instance:
output.icecast.mp3(bitrate=96,source,...)

You can even define a partial applicaction:

def downgraded(source,bitrate)
    output.icecast.mp3(bitrate=bitrate,source=source,...)
end

And then:
source1 = downgraded(source,96)
etc..


> 2) I'd need to add jingles everytime a client connects, i found examples in
> the savonet website, i will try them.

This should be done at icecast2 level: liquidsoap sends a continous stream and 
does not know about client connection..
See directive intro at:
http://www.icecast.org/docs/icecast-2.3.1/icecast2_config_file.html#mount

> 3) I'd need something like a "check service" that if a mount point is off,
> play something while i fix it (does liquidsoap support that?)

Yes !
You define some fallback source:
# A file for playing during failures
 interlude =
   single("/data/jingles/RadioPi - Jingles - Ségou & Barington Levy.mp3")

And then a fallback (source is the other source):
source2 = fallback(tracksensitive=false,[source,interlude])
which you can shorten by reusing the source name:
source = fallback(tracksensitive=false,[source,interlude])

The tracksensitive is there to select source as soon as it is ready, if set to 
true, it will try to switch only at any end of track.

> 4) I'd need to create a switchable online-to-offline mount point, because
> actually i have a client who streams live to icecast2 at 8-10am using
> winamp and when he disconnects call me to the office to launch an offline
> mount point with the same name. The idea is to avoid the call and create
> something that detects when he connects or disconnects.

Again, yes !
You define the live source:
live = input.http(id="live",autostart=true,"http://localhost:8080/live.ogg";)

and use a fallback like above for instance..
Note that with autostart=true, the source will continously try to connect to 
mount point.. For more confortable use, you can set it to false and have it 
started lately, using telnet for instance, and the on-mount directive from 
icecast2 (same link)

Now all of this was precisly why we switched to liquidsoap with radio, we had 
exactly the same need, plus some extra things..
I think paying a visit on our configuration page on the wiki there:
http://savonet.sourceforge.net/wiki/RadioPi
may be of a great benefit !

I can comment some part of the configuration if you will !


Romain
-- 
mama say
son, you've got to stay home today
there's a hole in the roof
you've got to make it waterproof

Reply via email to