RPi Streaming Music with MPD/MPC/ALSAPLAYER
Needed
- RaspBIAN WHEEZY
- working Internet connection
- Headphones at the analog output (or amplifier/speaker combo)
Getting the stuff:
- Boot the RPi
- Log in as pi/raspberry but do not start the GUI (startx)
sudo -i[ENTER] # to get the privileges
apt-get install mpd mpc alsamixer[ENTER] # download and install the stuff
.../...
To ad a stream:
mpc add "streaming radio source URL"[ENTER]
Example:
mpc add http://46.249.57.192:8016[ENTER] # url of SKY.FM
To play the stream:
mpc play [ENTER]
Increase the volume:
mpc volume +10[ENTER] # increase with 10%
Decrease the volume:
mpc volume -10[ENTER] # decrease with 10%
or to use the alsamixer GUI :
alsamixer[ENTER]
And use the GUI:
M = mute/unmute
Cursor up = increase volume
cursor down = decrease volume
To stop playing the stream:
mpc stop[ENTER]
You can use this stuff also from within the startx GUI by opening a root terminal window
and using mpc play and alsamixer.
Saving a station is quite easy:
First check if the station is actually playing.
Then enter this command:
mpc save <stationname>[ENTER]
Example:
mpc save SKY[ENTER]
To test:
mpc stop[ENTER] # this will end the streaming
mpc clear[ENTER] # clears the URL (http://46.249.57.192:8016 in this example)
mpc load SKY[ENTER] # load the SKY file
mpc play[ENTER] # et voila: runs again from the loaded file
ENJOY!
No comments:
Post a Comment