kewlhotrod

Untitled

Dec 27th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # Input the stream,
  2. # from an Icecast server or any other source
  3. url = "http://199.19.105.65/Trance"
  4. input = mksafe(input.http(url))
  5.  
  6. # First transcoder: MP3 32 kbps
  7. # We also degrade the samplerate, and encode in mono
  8. # Accordingly, a mono conversion is performed on the input stream
  9. output.icecast(%mp3(bitrate=32, samplerate=22050, stereo=false),
  10. mount="/dontmatter
  11. host="streaming.example.com", port=8000, password="xxxxxxx"
  12. mean(input))
  13. # Second transcoder : MP3 128 kbps
  14. output.icecast(%mp3(bitrate=128),
  15.  
  16. mount="/TranceMPEG",
  17. host="199.19.105.65", port=8000, password="xxxxxxx",
  18. input)
Advertisement
Add Comment
Please, Sign In to add comment