понедельник, 8 октября 2018 г.

Подключение liquidsoap к Icecast2

1) создаём файл test.liq в каталоге /etc/liquidsoap/

#!/usr/bin/liquidsoap
music = playlist("/home/music/")

security = single("/home/music/lp.ogg")

radio = music
# Now add some jingles
radio = random(weights = [1, 4],[music, radio])
# And finally the security
radio = fallback(track_sensitive = false, [radio, security])

#connect to icecast2
output.icecast(%vorbis,
  host = "localhost", port = 8000,
  password = "hackme", mount = "meteora.mp3",
  radio)

2) service liquidsoap restart




Комментариев нет:

Отправить комментарий