Hi,
I tried with the modification. I still have an error, but different :
At line 59, char 164:
this value has type
source(audio=2+_,...) (infered at line 50, char 20-35)
but it should be a subtype of
source(audio=1,...)
If I don't use samplerate and stereo, it is ok.
Here is my liq script, striped-down :
in the complete script, line 59 is the last and line 50 is the one with
on_metadata.
#!/usr/local/bin/liquidsoap
set("log.file.path","/tmp/basic-radio.log")
set("server.telnet",true)
set("tag.encodings",["UTF-8","ISO-8859-1"])
root="/var/www/vhosts/muzeeli.fr/httpdocs/api"
# Music
myplaylist = playlist(reload_mode="seconds",reload=1800,"/var/www/vhosts/
muzeeli.fr/httpdocs/musique/total.pls")
def metadata(m)
system("echo #{quote(m['artist'])} > #{root}/currentsong.txt")
system("echo #{quote(m['title'])} >> #{root}/currentsong.txt")
system("echo #{quote(m['filename'])} >> #{root}/currentsong.txt")
system("echo #{file.duration(m['filename'])} >>
#{root}/currentsong.txt")
system("echo #{m['on_air']} >> #{root}/currentsong.txt")
end
def my_crossfade(s) =
def f(_,_, old_m, new_m, old, new) =
if old_m["type"] != "jingle" and new_m["type"] != "jingle" then
add([fade.initial(new), fade.final(old)])
else
sequence([old,new])
end
end
smart_cross(f,s)
end
radio =mksafe(myplaylist)
radio = skip_blank(radio)
radio = normalize(radio)
radio = my_crossfade(radio)
radio = on_metadata(metadata,radio)
# Stream it out
output.icecast(%mp3(bitrate=128),
host = "localhost", port = 8000,
password = "password", mount = "ange",name="Muzeeli", description="La
radio qui aime la musique libre",genre="Pop-Rock",url="http://www.muzeeli.fr
",radio)
#Stream for mobile phones
output.icecast(%mp3(bitrate=32,samplerate=22050,stereo=false),
host="localhost", port = 8000,
password = "password", mount="demon",name="Muzeeli Mobile",
description="La radio qui aime la musique libre", genre="Pop-Rock", url="
http://www.muzeeli.fr",radio)
Best,
Alain
--
http://www.netvibes.com/bolli#Contact
2011/7/26 David Baelde <[email protected]>
> Thanks, I have fixed it on the repository
> (http://savonet.hg.sourceforge.net/hgweb/savonet/savonet/rev/9dddebaf5527)
> and uploaded the fixed documentation (does not apply to documentation
> of already released versions, though).
>
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users