Created
August 17, 2012 15:12
-
-
Save renovatorruler/3379715 to your computer and use it in GitHub Desktop.
Transcoding-Proxy.liq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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