Skip to content

Instantly share code, notes, and snippets.

@renovatorruler
Created August 17, 2012 15:12
Show Gist options
  • Save renovatorruler/3379715 to your computer and use it in GitHub Desktop.
Save renovatorruler/3379715 to your computer and use it in GitHub Desktop.
Transcoding-Proxy.liq
#!/usr/local/bin/liquidsoap
def restream(s)
# Input the stream,
url = "http://127.0.0.1:7000/test#{s}.ogg"
input = mksafe(input.http(url))
mp3_url = "/test#{s}.mp3"
# Transcoder : MP3 128 kbps
output.icecast(
%mp3(bitrate=128),
mount=mp3_url,
host="127.0.0.1", port=7000, password="hackme",
input)
end
restream(argv(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment