-
Notifications
You must be signed in to change notification settings - Fork 20
MPD Info
How to install MPD
sudo apt-get install mpd
Recommended changes to the mpd.conf file in /etc directory
Comment out the state_file to disable the resuming of last state when mpd starts up
#state_file "/var/lib/mpd/state"
Set the bind_to_address to be any, to enable you to connect external mpd clients
bind_to_address "any"
Set the Audio Output
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
}
If you are using a USB DAC that does not support hardware volume control you can try enabling software volume control
mixer_type "software"
If you are feeling adventurous you can try compiling the latest version of mpd:
Install MPD and MPC (Client)
sudo apt-get install mpd mpc
Install the pre-requirements
sudo apt-get install aptitude wget binutils gcc make subversion autoconf automake autotools-dev libtool pkg-config build-essential libncurses5-dev libncursesw5-dev gcc libglib2.0-dev
sudo apt-get install libfaad2 libfaad-dev libflac8 libflac-dev libogg0 libogg-dev libvorbis0a libvorbis-dev libid3tag0 libid3tag0-dev libmad0 libmad0-dev libcue-dev libcue1 libasound2 libasound-dev libasound2-dev libao-dev libwavpack-dev libwavpack1 libsamplerate0 libsamplerate-dev libmikmod2-dev libmikmod2 libmikmod-dev libshout-dev libavformat-dev libavcodec-dev libavutil-dev libaudiofile-dev libcurl4-openssl-dev libmms-dev libmms0 libtwolame-dev libtwolame0 libmp3lame-dev git-core libboost1.46-all
sudo su
cd /home/pi
You can either clone the mpd source from the git repository
git clone git://git.musicpd.org/master/mpd.git
Or you can download an earlier version from http://www.musicpd.org/download/mpd/
Or you can get the latest version from http://www.musicpd.org/download/mpd/stable/
Like this
wget http://www.musicpd.org/download/mpd/stable/mpd-0.19.1.tar.gz
And then extract the files
tar -zxvf <name>.tar.gz
Then
cd mpd-0.19.1
./autogen.sh
Configure some options
./configure --disable-bzip2 --disable-iso9660 --disable-zzip --enable-id3 --disable-sqlite --enable-ffmpeg --enable-alsa --disable-wave-encoder --enable-pipe-output --enable-httpd-output --disable-recorder-output --disable-sndfile --enable-oss --enable-shout --disable-pulse --disable-ao --enable-mad --disable-inotify --disable-ipv6 --enable-curl --enable-mms --enable-wavpack --disable-lame-encoder --disable-twolame-encoder --enable-vorbis --enable-lsr --enable-mikmod --with-zeroconf=auto
make
make install
sudo su
/etc/init.d/mpd stop
echo DAEMON=/usr/local/bin/mpd >>/etc/default/mpd
/etc/init.d/mpd start