MPD

MPD (Music Player Daemon) is Article description::a flexible, server-side application for playing music. Through plugins and libraries it can play a variety of sound files while being controlled by a network protocol.

Configuration
After finished installation MPD should be working with the Gentoo shipped default configuration.

A list of supported plugins/features of your MPD can be obtained by issuing:

MPD can be configured in a system-wide or per-user fashion. The configuration style choice depends on the intended usage.

Basic configuration
Below an example of a simple configuration:

At this point MPD should be able to run as a system daemon with its own user called, which is the default setting of MPD.

PulseAudio (optional)
If MPD was build with PulseAudio support ( USE flag), add a dedicated audio_output section to your :

Built-in HTTP streaming server (optional)
If MPD was build with  USE flag, add a dedicated audio_output section to your :

Replace  with   or a specific interface IP. Bind to address  means here: stream on all local found IP interfaces. You could change it to a specific interface IP address like e.g.  then the streaming server is bound to that interface IP only.

Bluetooth headset (optional)
Setup a Bluetooth headset first, according to the Bluetooth headset article.

ALSA (non-PulseAudio) setup with BlueZ 5
Put a user level file in MPD's $HOME directory, which is  by default. MPD will be able to control the volume of the headset.

To be able to switch between the Bluetooth headset and the default sound card, add these lines to the audio_output section in :

MPD might crash when switching output _while_ playing (if so, pause before switching).

If you experience some issues while trying to play AAC or other files, like:

Then add this line to your audio_output :

OpenRC
To start MPD:

To start MPD at boot time, add it the default runlevel:

systemd
To start MPD immediately:

To start MPD at boot time:

Per-user configuration
It may be handy to run MPD configured for a specific user.

Basic configuration
Start with copying to. Then you need to adjust the configuration to your needs.

Sample configuration using PulseAudio output:

Now it should be possible to start MPD simply issuing:

systemd
It is possible to leverage user services to control MPD in a per-user way.

To start MPD immediately:

To start MPD at user's first login:

Clients

 * Sorted List of MPD clients

Commandline/Console

 * — A commandline client for Music Player Daemon (media-sound/mpd) (useful for key-bindings)
 * — An ncurses client for the Music Player Daemon (MPD)
 * — An ncurses mpd client, ncmpc clone with some new features, written in C++
 * — Practical Music Search, another ncurses based mpd client with vi like keys, written in Golang
 * — An ncurses based mpd client with vi like key bindings
 * Ampc — Asynchronous Music Player Controller for Emacs
 * clerk — mpd client, based on rofi/fzf, written in Perl
 * vimus — An MPD client with vim-like key bindings, written in Haskell

Web

 * ympd — MPD Web GUI - written in C, utilizing Websockets and Bootstrap/JS

Scrobblers
Scrobblers are clients that submit to Audioscrobbler — compatible services (eg. libre.fm or last.fm)

Troubleshooting
For general troubleshooting refer to the MPD user manual troubleshooting section

External resources

 * MPD Forum
 * MPD on Sourceforge
 * MPD at Arch Wiki