Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stream_password="dem0nfm02"
- stream_mount_prefix="demon"
- stream_name="DemonFM"
- stream_port=8000
- stream_host="10.2.224.73"
- stream_url="http://www.demonfm.co.uk"
- stream_description="LIVE from Leicester, UK - This is DemonFM"
- stream_genre="Community Radio"
- set("log.file.path", "/tmp/liquidsoap.log")
- def jackConnect()
- system("jack_connect stereo_tool:out_l liquidsoapstereo:in_0")
- system("jack_connect stereo_tool:out_r liquidsoapstereo:in_1")
- end
- source = (input.jack(id="liquidsoapstereo"):source(2,0,0))
- source = register_flow(
- radio = stream_name,
- website = stream_url,
- description = stream_description,
- genre = stream_genre,
- user = "demonfm",
- password = "radio123",
- streams = [("mp3/128k","http://live.demonfm.co.uk:8000/demon"),("mp3/320k","http://live.demonfm.co.uk:8000/demon320"),("aacplus/48k","http://live.demonfm.co.uk:8000/demon48")],
- source)
- #output.icecast(%mp3(stereo=true, samplerate=44100, bitrate=128),liveStereo, description=icecastDescription, genre=icecastGenre, url=icecastURL, name=icecastTitle, mount=icecastMountPointStereo, host=icecastHost, password=icecastPassword, port=icecastPort, on_start=jackConnect)
- ignore(output.icecast(%mp3(bitrate=128, samplerate=48000),
- host = stream_host, port = stream_port,
- password = stream_password, mount = stream_mount_prefix,
- name = "#{stream_name} 128k MP3",
- genre = stream_genre,
- timeout = 10.0,
- url = stream_url,
- description = stream_description,
- source,
- on_start=jackConnect))
- ignore(output.icecast(%mp3(bitrate=320, samplerate=48000),
- host = stream_host, port = stream_port,
- password = stream_password, mount = "#{stream_mount_prefix}320",
- name = "#{stream_name} 320k MP3",
- genre = stream_genre,
- timeout = 10.0,
- url = stream_url,
- description = stream_description,
- source))
- ignore(output.icecast(%aacplus(bitrate=48, channels=2, samplerate=48000),
- host = stream_host, port = stream_port,
- password = stream_password, mount = "#{stream_mount_prefix}48",
- name = "#{stream_name} 48k HE-AACv2",
- genre = stream_genre,
- timeout = 10.0,
- url = stream_url,
- description = stream_description,
- source))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement