install mpd [raspberry pi]

install software:
sudo apt-get install mpd mpc alsa-utils
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 1

change the mpd.conf:
sudo nano /etc/mpd.conf

#bind_to_address

audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
# format "44100:16:2" # optional
# mixer_device "default" # optional
# mixer_control "PCM" # optional
# mixer_index "0" # optional
}

change the modules file:
sudo nano /etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

snd-bcm2835

change some permissions and so on:
sudo chmod g+w /var/lib/mpd/music/ /var/lib/mpd/playlists/
sudo chgrp audio /var/lib/mpd/music/ /var/lib/mpd/playlists/

music files directory:
/var/lib/mpd/music

Playlists for streams:
/var/lib/mpd/playlists

create a playlist file:
sudo nano /var/lib/mpd/playlists/radio_stations.pls

[ playlist ]
NumberOfEntries=49
Title1=1live 
File1=http://1live.akacast.akamaistream.net/7/706/119434/v1/gnl.akacast.akamaistream.net/1live 
Title2=wdr-2 
File2=http://wdr-mp3-m-wdr2-koeln.akacast.akamaistream.net/7/812/119456/v1/gnl.akacast.akamaistream.net/wdr-mp3-m-wdr2-koeln 
Title3=wdr-3 
File3=http://wdr-3.akacast.akamaistream.net/7/47/119437/v1/gnl.akacast.akamaistream.net/wdr-3 
Title4=wdr-4 
File4=http://wdr-4.akacast.akamaistream.net/7/42/119438/v1/gnl.akacast.akamaistream.net/wdr-4 
Title5=wdr-5 
File5=http://wdr-5.akacast.akamaistream.net/7/41/119439/v1/gnl.akacast.akamaistream.net/wdr-5 
Title6=ostseewelle 
File6=http://edge.live.mp3.mdn.newmedia.nacamar.net/ostseewellelive/livestream.mp3 
Title7=downtown_ireland 
File7=http://icy-e-02.sharp-stream.com/downtown.mp3
Title8=1dancefm
File8=http://173.192.207.51:8062
Title9=kronehit 
File9=http://onair.krone.at/kronehit.mp3
Title10=ffn 
File10=http://player.ffn.de/ffn.mp3
Title11=antenne1 
File11=http://stream.antenne1.de/stream1/livestream.mp3
Title12=m94 
File12=http://stream.m945.mwn.de/m945-hq.mp3
Title13=from_sweden 
File13=http://sverigesradio.se/topsy/direkt/132-hi-mp3
Title14=midwest 
File14=http://tx.sharp-stream.com/icecast.php?i=midwestfmie.mp3 
Title15=Radio Brocken (Radio Brocken)
File15=http://80.237.210.58 
Title16=energy_zuerich 
File16=http://broadcast.infomaniak.ch/energyzuerich-high.mp3 
Title17=Planet Radio 
File17=http://mp3.planetradio.de/planetradio/hqlivestream.mp3 
Title18=klassik_radio 
File18=http://edge.live.mp3.mdn.newmedia.nacamar.net/klassikradio96/livestream.mp3 
Title19=SWR3
File19=http://swr.ic.llnwd.net/stream/swr_mp3_m_swr3a 
Title20=Radio Gong
File20=http://radigo01.nci.de:8000/high_q 
Title21=Fritz vom rbb live hoeren 
File21=http://rbb.ic.llnwd.net/stream/rbb_fritz_mp3_m_a 
Title22=lautfm-kinderradio
File22=http://stream.laut.fm/kinderradio 
Title23=dradio wissen 
File23=http://dradio_mp3_dwissen_m.akacast.akamaistream.net/7/728/142684/v1/gnl.akacast.akamaistream.net/dradio_mp3_dwissen_m 
Title24=funkhaus europa 
File24=http://funkhaus-europa.akacast.akamaistream.net/7/264/119440/v1/gnl.akacast.akamaistream.net/funkhaus-europa 
Title25=bayern1 
File25=http://br-mp3-bayern1obb-m.akacast.akamaistream.net/7/273/142690/v1/gnl.akacast.akamaistream.net/br_mp3_bayern1obb_m 
Title26=bayern2 
File26=http://br-mp3-bayern2sued-m.akacast.akamaistream.net/7/731/256282/v1/gnl.akacast.akamaistream.net/br_mp3_bayern2sued_m 
Title27=schwany-maerchen
File27=http://streamplus40.leonex.de:19746 
Title28=radio paradise
File28=http://stream-sd.radioparadise.com:8056 
Title29=osradio
File29=http://osr.rcm-hosting.de:8500
Title30=radioq
File30=http://stream.radioq.de:8000/gross.mp3
Title31=radioaktiv
File31=http://stream.radioaktiv.org:8233/HiFi
Title32=m945
File32=http://stream.m945.de:80/m945-lq
Title33=campusradio-jena
File33=http://crjstream.stud.fh-jena.de:8090/Campusradio-Jena
Title34=tonkuhle
File34=http://stream.tonkuhle.de:8000/tonkuhle.mp3
Title35=stadtradio-goettingen
File35=http://stream.stadtradio-goettingen.de:8000/stadtradiolow.mp3
Title36=ernst-fm
File36=http://80.237.159.66:8000/stream.mp3
Title37=hochschulradio-rwth-aachen
File37=http://evans.hochschulradio.rwth-aachen.de:8000/radio_low.mp3
Title38=radiohertz
File38=http://stream.radiohertz.de/hertz-lq.ogg
Title39=eldoradio
File39=http://sender.eldoradio.de:8000/128.mp3
Title40=hochschulradio-stuttgart
File40=http://realserver3.hdm-stuttgart.de:8080/horads
Title41=sunshine-live
File41=http://stream.sunshine-live.de/live/mp3-192/
Title42=sunshine-live-classics
File42=http://stream.sunshine-live.de/classics/mp3-192/
Title43=sunshine-live-edm
File43=http://stream.sunshine-live.de/edm/mp3-192/
Title44=sunshine-live-festival
File44=http://stream.sunshine-live.de/festival/mp3-192/
Title45=sunshine-live-hard
File45=http://stream.sunshine-live.de/hard/mp3-192/
Title46=sunshine-live-house
File46=http://stream.sunshine-live.de/house/mp3-192/
Title47=sunshine-live-lounge
File47=http://stream.sunshine-live.de/lounge/mp3-192/
Title48=sunshine-live-trance
File48=http://stream.sunshine-live.de/trance/mp3-192/
Title49=sunshine-live-90er
File49=http://stream.sunshine-live.de/90er/mp3-192/

copy your mp3’s with winscp to:
/var/lib/mpd/music
update your library:
sudo mpc update
add all files to playlist:
mpc add /

some more stuff to do:
sudo /etc/init.d/mpd restart
sudo mpc update

mpc load radio_stations.pls
mpc play 1

change permissions after musicfiles are in folder /var/lib/mpd/music/:
sudo chmod -R u=rw,go+r /var/lib/mpd/music/.

add another stream to playlist:
mpc add http://173.192.207.51:8062
mpc add http://stream-uk1.radioparadise.com/mp3-128

install client on raspberry pi:
sudo apt-get install sonata -y

more streams:
http://www.radio-browser.info
http://www.ard.de/home/radio/ARD_Radios_im_Ueberblick/109996/index.html
https://www.reciva.com/

Android app:
—————-
https://play.google.com/store/apps/details?id=com.namelessdev.mpdroid

windows 7/8 program:
—————————–
http://code.google.com/p/auremo/downloads/list

others:
———-
http://mpd.wikia.com/wiki/Clients
http://www.forum-raspberrypi.de/Thread-tutorial-music-player-daemon-mpd-und-mpc-auf-dem-raspberry-pi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s