For the record, I've tried to cook up something doing this, but I
ended up with this overly long one-liner that moreover freezes
liquidsoap during startup:
liquidsoap 'server.execute = fun(s)->ignore(server.execute(s)) ; live
= input.harbor("foo.ogg",port=9876,max=30.) ;
output.file(fallible=true,%vorbis,"/tmp/%H%M%S.ogg",start=false,live)
; live =
on_track(fun(_)->server.execute("record.start"),on_end(fun(_,_)->server.execute("server.stop"),live))
; from_live = fun(a,b)->b ; to_live =
fun(a,b)->add(normalize=false,[sequence([blank(duration=10.),b]),
fade.final(duration=10.,a)]) ;
output.pulseaudio(fallback(track_sensitive=false,[live,amplify(0.2,noise())],transitions=[to_live,from_live]))'
I'll investigate it this evening...
An alternative idea is to create "passive" outputs, ie. outputs that
only act on a stream when it is pulled by something else. But this is
too wild for now, and we should avoid core changing when reasonable
solutions can be scripted. In principle, the above should work.
David
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users