Icecast

Från Wikipedia, den fria encyklopedin.

By installing Icecast on top of MPD you will turn your computer into a streaming music server!

  1. Make sure MPD is installed and configured, see Applications_for_Linux for more info.
  2. Install Icecast:
    sudo aptitude install icecast2
  3. Configure Icecast:
    1. sudo vim /etc/icecast2/icecast.xml
    2. Change all passwords from hackme to one of your own choice
    3. Change hostname to the hostname/ip your clients will connect to.
    4. If you want only one ip to connect you can configure that. The config file is well documented, just read it and you'll find what you need.
  4. Configure MPD:
    1. sudo vim /etc/mpd.conf
    2. Add an audio output for icecast (probably it's already there, just uncomment it and change the necessities, i.e. the password from hackme):
      audio_output {
              type                    "shout"
              name                    "My Shout Stream"
              host                    "localhost"
              port                    "8000"
              mount                   "/mpd.ogg"
              password                "hackme"
              bitrate                 "128"
              format                  "44100:16:1"
      }
      

  5. Restart services:
    1. sudo /etc/init.d/icecast2 restart
    2. sudo /etc/init.d/mpd restart
All done!
In Pitchfork (see Applications_for_Linux) you can choose output under Server Settings, there you will see your new stream! Simply enable it and start playing. Now open the stream http://hostname:8000/mpd.ogg in your favorite player (Amarok, Winamp etc)!

Thanks to: How I use it (from work):
  • Login to my box using Putty (which I have configured to also set up a tunnel from local port 8000 to remote port 8000)
  • Surf to my mpd web interface (pitchfork)
    • Make sure Shout stream is enabled
    • Start playing
  • Start Winamp and open URL http://localhost:8000/mpd.ogg
Software
Personliga verktyg