Hello Romain,

Here is the script
----
#!/usr/local/bin/liquidsoap
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 = "/radionomy/getsoundtoplay.php "^fluxid
input = request.dynamic(id=fluxid, fun () -> request(get_process_output(cmd)), 
conservative=true)

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

input2=our_crossfade(start_next=6.0,fade_in=3.0,fade_out=3.0, input)

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://dummy.radionomy.com/dummy.php?string="^fluxid^","^quote(meta["album"])^" 
&"),input2)

output.icecast.mp3(mount=mountpoint, host="localhost", port=1234, 
password="dummy", genre=""^genre, url="http://www.radionomy.com";, 
name=""^name,description = ""^finaldesc, mksafe(input2))
----

Concerning the test, I can test a new 'stable' version in production (our test 
environment is not powerfull enough to manage a so huge amount of simultaneous 
play).

Sounds we give to liquidsoap are all in the MP3 format (but a lot of them are 
encoded higher than 128 kbps).

TIA,

Jef

On 19 Jan 2010, at 18:34, Romain Beauxis wrote:

> Le lundi 18 janvier 2010 11:44:28, Jean-Francois Mauguit a écrit :
>> Hello,
> 
>       Hi Jeff !
> 
>> We are using a lot of instances of liquidsoap (arount 1000 instances  
>> on 14 core i7 servers). We've tried to use the 0.9.2 on this  
>> production servers. When 80 0.9.1 instances cause a load around 8.0 on  
>> the servers, the same amout of 0.9.2 cause a load of around 15.0 (same  
>> liq file).
>> 
>> The limits before having stream troubles are :
>> - 0.9.1 => 90 instances
>> - 0.9.2 => 83 instances
> 
> Thanks for this report !
> 
> This increase of load may be caused by several different issues. 
> Hence, it would proably be easier if we could have a script to check,
> to see what features of liquidsoap you are using.
> 
> A first candidate for this could be switch from ocaml-shout to ocaml-cry.
> I have no other suggestion for now, but with the script we may perhaps 
> see other possible issues..
> 
> Additionaly, would you be able to test any possible enhancement ?
> 
> 
> Romain
> 
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to