example = "/mp3/some_file.mp3" source = once(single(example))
liquidsoap -h once
Buffer overrun: Dropping 0.03s.
#!/usr/bin/liquidsoap set("log.stdout", true) set("log.file.path","/tmp/radio.log") set("server.telnet",true) set("server.telnet.bind_addr","172.16.116.20") myplaylist = playlist("/home/kirill/radio/music.m3u") jingles = playlist("/home/kirill/radio/jingles.m3u") security = single("/media/mp3/jingles/rock.mp3") radio = myplaylist radio = rotate(weights = [2, 1],[jingles, radio]) radio = fallback(track_sensitive = false, [radio, security]) set("harbor.bind_addr","172.16.116.20") djlive = input.harbor("test", port=8080, password="hackme") radio = fallback(track_sensitive=false, [djlive, radio]) output.icecast(%mp3, host = "172.16.116.29", port = 8000, password = "hackme", mount = "live", radio)
playlist = mksafe(fallback(track_sensitive=true,[queue, playlist])) playlist = mksafe(fallback(track_sensitive=false,([fallback.skip(input=live,playlist)]))) playlist = on_metadata(info2db, playlist) playlist = on_metadata(lastfm, playlist)
playlist = playlist ("/path/to/my/cool/music/")
#!/etc/liquidsoap -d set("init.daemon",true) set("init.daemon.pidfile",false) set("log.file.path","/var/log/liquidsoap/basic.log") set("log.stdout",true) set("log.level",3) set("server.telnet.bind_addr","127.0.0.1") set("server.telnet",true) myplaylist = mksafe(playlist(reload=360, '/home/radio/nonstop/')) radio = myplaylist radio = mksafe(radio) radio = crossfade(start_next=6.0, fade_out=3.0, fade_in=3.0, radio) output.icecast(%mp3(bitrate=256, samplerate = 44100, stereo = true), host = "localhost", port = 8000, name="EDM Radio 256 Kbit/s", genre="Elecrtonic", url="http://edmradio.ru/", description="Electronic Dance Music Radio", password = "Пароль", mount = "/autodj", radio) # другие потоки: url = "http://localhost:8000/live" input = mksafe(input.http(url)) output.icecast( %mp3(bitrate=192), mount="/192", host="localhost", name="EDM Radio 192 Kbit/s", genre="Elecrtonic", url="http://edmradio.ru/", description="Electronic Dance Music Radio", port=8000, password="Пароль", input) output.icecast( %mp3(bitrate=128), mount="/128", host="localhost", name="EDM Radio 128 Kbit/s", genre="Elecrtonic", url="http://edmradio.ru/", description="Electronic Dance Music Radio", port=8000, password="Пароль", input) output.icecast( %aacplus(channels=2, samplerate=44100, bitrate=32), mount="/32aac", host="localhost", port=8000, name="EDM Radio 32 AAC Kbit/s", genre="Elecrtonic", url="http://edmradio.ru/", description="Electronic Dance Music Radio", password="Пароль", input)
myplaylist = mksafe(playlist(reload=360, '/home/radio/nonstop/'))