Hello,
Here is my script. I'm using 0.9.1.
--CODE ON--
#!/usr/local/bin/liquidsoap
# Logging!
set("scheduler.log",false)
set("log.level", 3)
fluxid = argv(1)
name = argv(2)
description = argv(3)
finaldesc = string.replace(pattern="_",(fun (s) -> " "),description)
genre = argv(4)
mountpoint = "flux-"^fluxid
cmd = "/mm/grabcf.php "^fluxid
# Our input is the output of a php-script..
input = request.dynamic(id=fluxid, fun () -> request(get_process_output
(cmd)))
def our_crossfade(~start_next,~fade_in,~fade_out,s)
s = fade.in(duration=fade_in,s)
s = fade.out(duration=fade_out,s)
fader = fun (a,b) -> add(normalize=false,[b,a])
cross(conservative=true,duration=start_next,minimum = -1.0,fader, s)
end
# Crossfade
input2=our_crossfade(start_next=6.0,fade_in=3.0,fade_out=3.0, input)
# Compress/Normalize
input2 = nrj(input2)
input2 = rewrite_metadata([("artist",'$(if $(display_artist),"$
(display_artist)","$(artist)")'),("title", '$(if $(display_title),"$
(display_title)","$(title)")'),("album", '$(if $(display_id),"$
(display_id)","$(album)")')],input2)
input2 = on_metadata(fun (meta) -> system("curl http://url/script?string=
"^fluxid^","^quote(meta["album"])^" &"),input2)
# Output to icecast
output.icecast.mp3(mount=mountpoint, host="localhost", port=8000,
password="secret", genre=""^genre, url="http://www.radionomy.com",
name=""^name,description = ""^finaldesc, mksafe(input2))
--CODE OFF--
TIA,
Jef
On 03 Sep 2009, at 18:19, Romain Beauxis wrote:
> Hi Jef !
>
> Le jeudi 3 septembre 2009 10:19:08, Jean-Francois Mauguit a écrit :
>> As you have a huge load, I can understand that something happened
>> that
>> make liquidsoap switched to blank. But i don't see why it didn't come
>> back.
>
> Indeed. In order to understand the issue better it would be nice if
> we can see
> the script also. If you do not want to disclose it here, you can
> sent it as a
> private message.
>
> Also, what version of liquidsoap are you using ?
>
>
> Romain
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users