World Library  
Flag as Inappropriate
Email this Article

Music Player Daemon

Music Player Daemon
Developer(s) Max Kellermann
Initial release 2003
Stable release 0.19.4 (November 18, 2014 (2014-11-18))
Preview release none
Written in C++ (since 0.18)[1]
Operating system Unix-like (BSDs, Linux, OS X,…) Windows
Type Audio player
License GPL (free software)
Website .org.musicpdwww

Music Player client is needed.


  • Design 1
  • Features 2
  • Clients 3
  • See also 4
  • References 5
  • External links 6


MPD simply runs in the background playing music from its playlist. Client programs communicate with MPD to manipulate playback, the playlist, and the database. It is not a full-featured music player program such as Amarok, but its clients can serve such role.

MPD uses a flat file database to maintain the basic music file information when it is not running. Once the daemon is started, the database is kept completely in-memory and no hard disk access is necessary to look up or search for local audio files. Usually, music files must be below the music root directory and are only added to the database when the update command is sent to the server. Playback of arbitrary files is only allowed for local clients which are connected to the server via Unix Domain Sockets. MPD does not provide a built-in tag editor; this functionality is handled by clients or external programs, though 3rd party patches do exist to add this functionality to the server.[2]

The client–server model provides several advantages over all-inclusive music players. Clients may communicate with the server remotely over an intranet or over the Internet. The server can be a headless computer located anywhere on the network. Music playback can continue seamlessly when not using X or restarting X. Different clients can be used for different purposes – a lightweight client left open all the time for controlling playback with a more fully featured client used for intensive database searches. Several clients can use the same database, even running simultaneously – side-by-side, remotely or under different user accounts.


  • Plays Ogg Vorbis, FLAC, Opus, WavPack, MP2, MP3, MP4/AAC, MOD, Musepack, wave files and any other files supported by FFmpeg.
  • Remotely control MPD over a network (IPv4 and IPv6 supported).
  • Play FLAC, OggFLAC, MP3 and Ogg Vorbis HTTP streams.
  • Reads and caches metadata information (ID3: ID3v1 and ID3v2), Vorbis Comments, and MP4 Metadata.
  • Metadata information can be searched.
  • Buffer support for playback (prevents skipping due to high load or network latency).
  • Gapless playback.
  • Crossfading support.
  • Seeking support.
  • Save, load, and manage playlists (in M3U format).
  • Native Zeroconf support.
  • libsamplerate and native sample rate conversion.
  • Support for ALSA, PulseAudio, OSS, MVP, JACK, Windows, and Mac OS X.
  • Can be used as a source for an Icecast stream, in Ogg Vorbis and MP3. Other formats can be converted to Ogg/MP3 on the fly before output to the stream server.
  • Built-in HTTP streaming server, capable of producing Ogg Vorbis and MP3 streams of a chosen quality on-the-fly.
  • Independent of a GUI. Music will continue playing whether a front-end is open or not, and will continue playing even if the X server is killed.


MPD has a variety of front-ends which communicate with the server using a custom protocol[3] over a TCP connection. Clients usually implement different types of interfaces.

  • mpc (part of the MPD project) is a simple command line interface to most of the server's functions.[4]
  • ncmpc is a more fully featured ncurses client similar in concept to MOC.[5] [6]
  • ncmpcpp is another ncurses client that clones ncmpc's functionality, but includes new features, such as a tag editor.[7]
  • Ario is GTK+-based and uses tabs in its interface.[8]
  • gmpc is the oldest maintained gtk+-2 (gtk+-3 development version) client, it provides many different ways of exploring the music collection and rich metadata like lyrics, covers, artist/album information, artist/album/backdrop images, similar artists and more. The client aims to be rich in features, but still lightweight enough to have constantly running on low end hardware.[9]
  • Sonata uses GTK+ to provide a GUI for playing files and managing playlists.[10]
  • Intelligent Music Player Client (IMPC) uses GTK+ 3.0 and supports loading related information (articles, covers, images) with actually playing song and it learns to classify related content.[11]
  • Cantata uses Qt 4/5 to manage the library or playlists, with extras like tags editor, lyrics and cover fetching from Internet and support for mass storage devices.[12]
  • Qmobilempd provides a Qt4 client especially for mobile devices like Symbian.[13]
  • Qmpdplasmoid provides a client directly embedded into the KDE desktop.[14]
  • Gimmix provides a simple interface with a very small memory footprint.[15]
  • mpdlirc interfaces MPD via an infrared remote control.[16]

For a more complete list, see the Clients MPD Wiki.[17]

Simple clients can script the mpc program to issue commands to the server. Some clients run within a web browser and can be located on the same computer as the server, requiring only a browser be installed on the client machine. There is a client implemented as a Firefox add-on,[18] one as a Xfce panel plugin,[19] and one as a Wii application,[20] and one as a Windows Store application for Windows 8/Windows RT.

Libraries exist to interface with MPD from many programming languages, including C, Python, Ruby, Perl, and Lua.[21]

See also


  1. ^
  2. ^ Tag editing patches,, 2008-01-02, retrieved 2013-03-18 
  3. ^ Protocol Reference – Music Player Daemon Community Wiki
  4. ^ Client:Mpc - Music Player Daemon Community Wiki,, 2013-02-28, retrieved 2013-03-18 
  5. ^ Client (2008-11-28), Client:Ncmpc - Music Player Daemon Community Wiki,, retrieved 2013-03-18 
  6. ^ Client (2008-11-28), Client:Ncmpc - Music Player Daemon Community Wiki,, retrieved 2013-03-18 
  7. ^ ncmpcpp MPD client,, retrieved 2013-03-18 
  8. ^ Ario,, retrieved 2013-03-18 
  9. ^ Gnome Music Player Client,, retrieved 2013-11-13 
  10. ^ Sonata Music Client for MPD,, retrieved 2013-03-18 
  11. ^ IMPC version 0.2 released!,, retrieved 2013-03-18 
  12. ^ Cantata – Qt4 / KDE4 Music Player Client,, retrieved 2013-11-24 
  13. ^ qmobilempd – MPD (musicpd) client,, retrieved 2013-03-18 
  14. ^ mpdqml plasmoid,, retrieved 2013-03-18 
  15. ^ Gimmix,, retrieved 2013-03-18 
  16. ^ Client:MpdLIRC - Music Player Daemon Community Wiki,, retrieved 2013-03-18 
  17. ^ MPD Clients Wiki,, 2013-02-26, retrieved 2013-03-18 
  18. ^ Music Player Minion,, 2010-02-27, retrieved 2013-03-18 
  19. ^ xfce4-mpc-plugin,, 2012-06-30, retrieved 2013-03-18 
  20. ^ WiiMPC,, 2009-08-10, retrieved 2013-03-18 
  21. ^ MPD Client Libraries,, 2013-03-05, retrieved 2013-03-18 

External links

  • Official website
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.