jean-cloud-services/old_services/radiodemo.oma-radio.fr.classic/pige.liq

12 lines
501 B
Plaintext
Raw Normal View History

2024-01-02 16:50:14 +00:00
#!/usr/bin/liquidsoap
input = mksafe(input.http("https://radiodemo.oma-radio.fr/direct.ogg"))
#blank = single("/secours.ogg")
#input = fallback(track_sensitive=false, [input, blank])
#output.icecast(
# %mp3(bitrate=128, samplerate=22050, stereo=false),
# mount="/direct.mp3",
# host="icecast", port=8000, password="JsCabjWJUZXrrrKCaaRZma5wD4YKj5LQLXv6f",
# input)
output.file(%vorbis(samplerate=44100, channels=1, quality=0.5), '/archive/%Y-%m-%d/%Y-%m-%d-%H_%M_%S.mp3', input, reopen_when={0s})