Skip to content

Instantly share code, notes, and snippets.

@daslicht
Created March 20, 2016 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daslicht/2f06408f1d29a605b288 to your computer and use it in GitHub Desktop.
Save daslicht/2f06408f1d29a605b288 to your computer and use it in GitHub Desktop.
/etc/liquidsoap/radio.liq
#!/usr/bin/liquidsoap
input = mksafe(playlist(mode="normal","./ogg/ogg.m3u"))
output.icecast(%vorbis,
host = "localhost",
port = 8000,
password = "*",
mount = "stream.ogg",
input)
# Second transcoder : MP3 128 kbps
output.icecast(%mp3(bitrate=128),
host ="localhost",
port = 8000,
password ="*",
mount = "stream.mp3",
input)
not working:
/etc/init.d/liquidsoap start
no error tho
working:
sudo -u liquidsoap liquidsoap radio.liq
@daslicht
Copy link
Author

icecast displays the mount points but the playlist seams not start

@daslicht
Copy link
Author

^Croot@v22015072938226788:/etc/liquidsoap# sudo -u daslicht liquidsoap radio.liq -d
root@v22015072938226788:/etc/liquidsoap# Fatal error: exception Sys_error("/var/run/liquidsoap/radio.pid: Permission denied")
Raised by primitive operation at file "pervasives.ml", line 239, characters 21-47
Called from file "pervasives.ml", line 242, characters 2-74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment