Icecast
Från Wikipedia, den fria encyklopedin.
By installing Icecast on top of MPD you will turn your computer into a streaming music server!
- Make sure MPD is installed and configured, see Applications_for_Linux for more info.
- Install Icecast:
sudo aptitude install icecast2
- Configure Icecast:
- sudo vim /etc/icecast2/icecast.xml
- Change all passwords from hackme to one of your own choice
- Change hostname to the hostname/ip your clients will connect to.
- 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.
- Configure MPD:
- sudo vim /etc/mpd.conf
- 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" }
- Restart services:
- sudo /etc/init.d/icecast2 restart
- sudo /etc/init.d/mpd restart
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:
- http://news.softpedia.com/news/Streaming-Audio-Using-MPD-and-Icecast-52181.shtml
- http://mpd.wikia.com/wiki/Configuration
- http://ubuntu-se.org/phpBB3/viewtopic.php?f=80&t=21365
- 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
