Skip to content

Instantly share code, notes, and snippets.

@svandragt
Last active February 27, 2016 10:06
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 svandragt/af43c07d5842c9c429d5 to your computer and use it in GitHub Desktop.
Save svandragt/af43c07d5842c9c429d5 to your computer and use it in GitHub Desktop.
LiquidSoap flow, connecting to http://example.com:8124 transcoding an ice cast stream to a shoutcast server.
set("log.file",false)
set("log.stdout",true)
source_url = "http://localhost:8000/traktor.ogg"
output_host = "example.com"
output_port = 8124
output_pass = "mypassword"
s = input.http(buffer=4.0,source_url)
output.shoutcast(
%mp3(bitrate=192),
host=output_host,
port=output_port,
password=output_pass,
fallible=true,
url="http://#{output_host}:#{output_port}",
s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment