Radio-dodsorfas/state/liquidsoap/config/main.liq

58 lines
1.6 KiB
Plaintext

set("log.file",false)
set("log.stdout",true)
set("server.telnet",true)
set("server.telnet.port", 5000)
set("server.telnet.bind_addr", "0.0.0.0")
set("decoder.file_extensions.gstreamer",["wav", "webm"])
set("decoder.mime_types.gstreamer",["audio/x-wav", "audio/wav", "video/webm"])
def crossfade(a,b)
add(normalize=false,
[ sequence([ blank(duration=5.),
fade.initial(duration=5.,b) ]),
fade.final(duration=5.,a) ])
end
rad_io = input.http("http://relay0.r-a-d.io:80/main.mp3")
output.dummy(fallible=true, rad_io)
live = audio_to_stereo(
rewrite_metadata(
[
("title", "$(title) (LIVE - Dodsorfas Radio)"),
("comment", "http://www.radio.dodsorf.as")
],
stretch(
ratio=interactive.float("test", 1.00005),
input.harbor(
"dodsorfas.live",
id="dodsorfas.live",
port=5002,
password=getenv("LIVE_PASSWORD"),
user="source",
logfile="/tmp/harbor.log"
)
)
)
)
requests = audio_to_stereo(drop_video(request.queue(id="request")))
mix = blank()
mix = fallback(track_sensitive=false, transitions=[crossfade], [rad_io,mix])
mix = fallback(track_sensitive=false, transitions=[crossfade], [requests,mix])
mix = fallback(track_sensitive=false, transitions=[crossfade], [live, mix])
# OUTPUTS
output.icecast(
password=getenv("HARBOR_PASSWORD"),
host=getenv("BROADCAST_PORT_5001_TCP_ADDR"),
port=int_of_string(getenv("BROADCAST_PORT_5001_TCP_PORT")),
%wav,
mount="dodsorfas.main",
mix
)