2ck

xmms2-start-stream.sh

2ck
Aug 4th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. #!/bin/sh                                                                    
  2.  
  3. RADIO=ices2
  4. PORT=8000
  5. SPASS="" # set to match icecast server configs
  6. PUBLISH=0 # should the stream appear in public directories?
  7. MOUNT= # should end in .ogg, but most players will be able to read it anyway
  8. RADIO_NAME=""
  9. DESC=""
  10. BITRATE=64000
  11. HOST="" # only used for informing users
  12.  
  13. xmms2 <<encom
  14. server config playlist.repeat_all 1
  15. server config playlist.repeat_one 0
  16. server config ices.host  localhost
  17. server config ices.mount $MOUNT
  18. server config ices.password  "$SPASS"
  19. server config ices.port  $PORT
  20. server config ices.public  $PUBLISH
  21. server config ices.streamdescription "$DESC"
  22. server config ices.streamgenre  
  23. server config ices.streamname  "$RADIO_NAME"
  24. server config ices.streamurl  $HOST:$PORT/$MOUNT                            
  25. server config ices.user  source
  26. playlist switch Radio
  27. server config output.plugin ices
  28. exit
  29. encom
  30. xmms2 play
Add Comment
Please, Sign In to add comment