Hi,
I am trying to write a script that will rotate in a static file playback
instead of a live stream from jack at certain times, and I am stuck. I just
havent seemed to have any action occur at the transition times.
What causes the predicate to be evalled at particular times? As i
understand switch it will return the first predicate that evals T ? How can
this ever leave a live stream, or an infinite playlist for that matter?
I would appreciate a hand in understanding what i am missing. If i could
even cause it to print to log an information at transition times I could see
something happening.
I have included what i am trying to do so far.
Thanks in advance,
Adrian Owen
#!/usr/local/bin/liquidsoap
set("log.file",false)
set("log.stdout",true)
set("log.level",5)
set("server.telnet",true)
set("server.telnet.bind_addr","127.0.0.1")
set("root.sync",false)
def jackconnect(m)
system('/usr/local/bin/jack_connect system:capture_1 live:in_0')
system('/usr/local/bin/jack_connect system:capture_2 live:in_1')
end
prerec = mksafe(playlist("/home/user/prerec.pls"))
live = input.jack(id="live", buffer_size=2)
radio = insert_metadata(id="meta", live)
radio = on_track(jackconnect, radio)
radio = fallback([ switch([({ 16h-17h }, prerec),
({ 22h-6h }, prerec)]),
prerec])
radio = add([radio, switch([({0m30s},live)])])
output.icecast(%external(process="/usr/local/bin/aacplusenc - - 48000 s"),
format="audio/aacp",
icy_metadata="true",
id = "aacplus-1",
host = "localhost", port = 1500,
password = "hackme", mount = "/testme-48k.aac",
url="",
description="",
genre="",
restart=true,
restart_delay=1,
mksafe (radio))
------------------------------------------------------------------------------
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