I connected my RPi onto my stereo so I can listen to my music.

However, I want to listen to a few internet-radio-streams. The streams are available in ASX, MP3 and some of them through SHOUTCAST.

I've already installed MPD and ICECAST and they are working correctly. How can I listen to these audio streams ?

3 Answers 3


You need a client that can connect to MPD and tell it what to play.

The simplest is the command line client mpc that can run on the Raspberry Pi. After installing it, you would do something like:

$ mpc add
$ mpc play

The URL to add will of course be different - it will be the address you set up in Icecast for your stream.

There are many other MPD clients available, for example MPDroid that runs on Android phones, and can connect over a local Wifi network.

  • I tried it but I get the following error: error: Timeout
    – Peter
    Dec 10, 2012 at 17:32
  • 1
    Make sure can access the internet via the Pi.
    – Munkeh
    Dec 10, 2012 at 20:20
  • It is conected to internet and I even tried it with another URL-stream and they all results in an timeout error
    – user3704
    Dec 10, 2012 at 20:47
  • Like @Munkeh suggested try to check if your internet connection is up and running (e.g. ping www.google.pl). Dec 11, 2012 at 8:01
  • Wow I don't no why but I tried again and now it's working fine. This stream shout://www.kickradio.nl:9000 don't work get the following error: error: unsupported URI scheme I replaced shout with http but that don't work either. Is a shout-stream not working in MPD?
    – Peter
    Dec 11, 2012 at 9:27

There are different ways to listen internet radio streams.

mkdir ~/.pyradio
echo "Romantik Radyo, http://rdshout.turkuvazgroup.net:7000/listen.pls" >> stations.csv


MPD can play streams. I've found that you can add them to your library by creating playlists. Create a text file with an .m3u extension in your MPD music library with a different stream on each line. Or create a separate playlist file for each station. For example /usr/lib/mpd/library/rock-1-radio.m3u could have the content:

Once you rebuild your mpd database (mpc update) then that radio station will appear in your library list for all clients.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.