Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Input the stream,
- # from an Icecast server or any other source
- url = "http://199.19.105.65/Trance"
- input = mksafe(input.http(url))
- # First transcoder: MP3 32 kbps
- # We also degrade the samplerate, and encode in mono
- # Accordingly, a mono conversion is performed on the input stream
- output.icecast(
- %mp3(bitrate=32, samplerate=22050, stereo=false),
- mount="/dontmatter"
- host="streaming.example.com", port=8000, password="xxxxxxx
- mean(input))
- # Second transcoder : MP3 128 kbps
- output.icecast(
- %mp3(bitrate=128),
- mount="/TranceMPEG",
- host="199.19.105.65", port=8000, password="xxxxxxx",
- input)
Advertisement
Add Comment
Please, Sign In to add comment