Music Player Daemon (MPD) is a server that allows remote access for playing music in various formats and managing playlists. It makes a great desktop player with frontend options (Qt, GTK, ncurses, Windows, and Web clients are available). It is also appropriate as a console player that is scriptable, and is especially useful if X is restarted frequently. A set of rapid development tools for clients are being developed and include a C library, Python module, PHP class, Perl module, and Java Class. The goals are to be easy to install and use, to have minimal resource requirements, to be stable and flexible, and easy to interface.
Through plugins and libraries it can play a variety of sound files while being controlled by its network protocol. For more information, read about what mpd is and is not.
Support:
Decoder Plugins: AudioFile, libfaad (aac and mp4), ffmpeg, FLAC, fluidsynth, libmad and libmpg123 (mp3), Musepack, OggFlac, OggTremor, OggVorbis, WavPack, libsidplay, libsndfile, wildmidi
Output Plugins: ALSA, FIFO, JACK, OSS, OSX, libao, PulseAudio, Media MVP, Shoutcast/MP3, Shoutcast/Ogg Vorbis
Metadata: APEv2, id3v1, id3v2, MP4, Vorbis
Mixers: ALSA, OSS, Software Mixing
Protocols: TCP, IPv6, and Unix Domain Sockets
General Installing From Source
- First check that you have all the dependencies that you want from Dependencies
- Retrieving the sources
- Follow the procedure at linuxquestions.org going straight to the ./configure step if you downloaded from subversion. A hint that that link doesn't give is there are specific options that you can look through by typing ./configure --help, then adding those to your ./configure will make your MPD turn out differently, although the defaults will do just fine.
- you may need to update your ports tree (use CVSup, see the FreeBSD handbook)
- make sure internet works, or put the source file in /usr/ports/distfiles
- if portupgrade is installed
otherwise
cd /usr/ports/audio/musicpd
make install cle
Installing with Packages
- you may need to set some options, otherwise you will probably get an outdated MPD release (see the FreeBSD handbook)
- make sure internet works, then do a
pkg_add -r musicpd
- without internet download the package from http://www.freebsd.org/ or http://www.freshports.org/, then do
Configure MPD
- for general configuration: edit /usr/local/etc/mpd.conf (see Configuration for details)
- to start MPD at boot time: edit /etc/rc.conf and include musicpd_enable=YES
- initial database creation:
Kernel compilers beware
- MPD needs System V shared memory; make sure 'SYSVSHM' is included in your kernel!
- First, edit
/etc/apt/sources.list
and enable the 'universe' repository. After you make this change, you will have to runapt-get update
. - You can use Synaptic. If for some reason this installation fails, this howto on the Ubuntu Forums may help.
OR
If you just need only MP3 and FLAC support through ALSA, then you can compile it from source:
- download the latest sources
- extract them to some directory (for example mpd-x-x-x)
- go to this directory (for example cd mpd-x-x-x)
- install the dependencies, compile and install:
sudo aptitude install libasound2-dev libmad0-dev libid3tag0-dev libflac-dev libflac++-dev ./configure
make
sudo make install
Mac OS X 10.3, 10.4 Install Procedure
- Install MacPorts from http://www.macports.org/
- You may need to have a look at http://trac.macports.org/projects/macports/wiki/GettingStarted to use MacPorts/Darwinports.
- sudo port install faad2 (optional)
- sudo port install faac (optional)
- sudo port install mpd
See the osx page for details.
- First select all the dependencies that you want from Dependencies and put the appropriate indications in the PKG_OPTIONS.musicpd variable. Possibilities are: aac, audiofile, flac, iconv, id3, and ogg.
- install MPD through pkgsrc
- you may need to update your pkgsrc tree (2004Q2 and up have it) (see the documentation for more information on updating)
- configure MPD:
- for general configuration edit /usr/pkg/etc/mpd.conf (see Configuration for details) (example is in /usr/pkg/share/examples/mpd/mpd.conf)
- initial database creation:
SPARC/SPARC64 notes
Since libmad is integer only, performance isn't the best on NetBSD/sparc{,64}. In case you don't want MPD to use 15% CPU on a 440 MHz UltraSPARC-IIi, you might consider adding these lines to your /usr/pkgsrc/audio/libmad/Makefile:
CONFIGURE_ARGS+= --enable-fpm=sparc
CONFIGURE_ARGS+= --enable-speed
and then run
make clean all replace
These are the configure script flags I found helpful for getting mpd running on Openbsd 3.8 i386.
MPD 0.11:
- ./configure --with-ao-includes=/usr/local/include --with-ao=/usr/local/lib --disable-ipv6
MPD 0.12:
- ./configure --enable-ao --with-ao-includes=/usr/local/include --with-ao=/usr/local/lib
If you have a spare machine (virtual or real) and you don't want to deal with configuration and setup yourself, there is a software appliance based on MusicPD available at http://www.rpath.org/rbuilder/project/musicpd/ -- it's currently shipped as a VMware virtual machine image, and comes with a minimal version of rPath Linux, MusicPD installed and configured, phpMp, and the beginnings of a web-based configuration tool. It also supports music shares over NFS and Samba. Word of warning: the appliance does not include MP3 support.
source: About.com Linux
If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:
0 comments:
Post a Comment