FM broacast show liq added

main
Rob Canning 2024-01-05 01:48:28 +01:00
parent 0edf61ec7d
commit 55c1d34344
1 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,45 @@
#!/usr/bin/liquidsoap
# Log dir
log.file.path.set("/tmp/antena-radio.log")
# Music
kamizdat = playlist("~/antena/music/kam/kamizdat_flac.pls")
# Some jingles
jingles = playlist("~/antena/jingles_bumps_stings/placeholder.pls")
# If something goes wrong, we'll play this
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 = [1, 4],[jingles, radio])
# security
radio = fallback(track_sensitive = false, [radio, security])
# dump live_dj recordings 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)