uho/nonstop_web_stream.liq

43 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/usr/bin/liquidsoap
# log dir
log.file.path.set("~/antena/logs/antena-radio_stream.log")
# music
kamizdat = playlist("~/antena/music/kam/kamizdat_flac.pls")
# bumps stings and jingles
jingles = playlist("~/antena/jingles_bumps_stings/placeholder.pls")
# fallback / security
security = single("/home/rizoma/sketchbook/libraries/minim/examples/Analysis/FFT/Windows/data/jingle.mp3")
# Start building the feed with music
radio = kamizdat
# jingles
radio = random(weights = [0, 4],[jingles, radio])
# security
radio = fallback(track_sensitive = false, [radio, security])
# dump to a file
timestamp = '%d-%m-%Y'
show_title = 'ANTENA'
output.file(%mp3(bitrate=320, id3v2=true), reopen_on_metadata=false,
"recorded_shows/#{show_title} Recorded On #{timestamp}.mp3", radio, fallible=true)
# stream it out
output.icecast(%vorbis,
host = "rizom.si", port = 8000,
password = "hackmeheklab", mount = "antena-rizoma",
genre= "Experimental",
url= "http://rizom.si/antena" ,
description = "Slovenian new and experimental music and sounds curated and produced by Zavod Rizoma",
id="MARS",
name="Antena/Rizoma : Radio MARŠ ",
radio)