daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Feb 4th, 2016 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stream_password="dem0nfm02"
  2. stream_mount_prefix="demon"
  3. stream_name="DemonFM"
  4. stream_port=8000
  5. stream_host="10.2.224.73"
  6. stream_url="http://www.demonfm.co.uk"
  7. stream_description="LIVE from Leicester, UK - This is DemonFM"
  8. stream_genre="Community Radio"
  9.  
  10. set("log.file.path", "/tmp/liquidsoap.log")
  11.  
  12. def jackConnect()
  13.   system("jack_connect stereo_tool:out_l liquidsoapstereo:in_0")
  14.   system("jack_connect stereo_tool:out_r liquidsoapstereo:in_1")
  15. end
  16.  
  17. source = (input.jack(id="liquidsoapstereo"):source(2,0,0))
  18.  
  19. source = register_flow(
  20.   radio = stream_name,
  21.   website = stream_url,
  22.   description = stream_description,
  23.   genre = stream_genre,
  24.   user = "demonfm",
  25.   password = "radio123",
  26.   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")],
  27.   source)
  28.  
  29. #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)
  30.  
  31. ignore(output.icecast(%mp3(bitrate=128, samplerate=48000),
  32.   host = stream_host, port = stream_port,
  33.   password = stream_password, mount = stream_mount_prefix,
  34.   name = "#{stream_name} 128k MP3",
  35.   genre = stream_genre,
  36.   timeout = 10.0,
  37.   url = stream_url,
  38.   description = stream_description,
  39.   source,
  40.   on_start=jackConnect))
  41.  
  42. ignore(output.icecast(%mp3(bitrate=320, samplerate=48000),
  43.   host = stream_host, port = stream_port,
  44.   password = stream_password, mount = "#{stream_mount_prefix}320",
  45.   name = "#{stream_name} 320k MP3",
  46.   genre = stream_genre,
  47.   timeout = 10.0,
  48.   url = stream_url,
  49.   description = stream_description,
  50.   source))
  51.  
  52. ignore(output.icecast(%aacplus(bitrate=48, channels=2, samplerate=48000),
  53.   host = stream_host, port = stream_port,
  54.   password = stream_password, mount = "#{stream_mount_prefix}48",
  55.   name = "#{stream_name} 48k HE-AACv2",
  56.   genre = stream_genre,
  57.   timeout = 10.0,
  58.   url = stream_url,
  59.   description = stream_description,
  60.   source))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top