Music Player Daemon

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Music Player Daemon
Developer(s) Max Kellermann
Initial release 2003; 15 years ago (2003)
Stable release 0.21.1 (November 4, 2018; 8 days ago (2018-11-04)[1]) [±]
Preview release none [±]
Repository
  • github.com/MusicPlayerDaemon/MPD
Written in C++ (since 0.18)[2]
Operating system Unix-like (BSDs, Linux, macOS,…) Windows
Type Audio player
License GPL (free software)
Website www.musicpd.org

Music Player Daemon (MPD) is a free and open music player server. It plays audio files, organizes playlists and maintains a music database. In order to interact with it, a client program is needed. The MPD distribution includes mpc, a simple command line client.

MPD is widely used in proprietary audio hardware. The MPD project maintains a list of vendors, some of which infringe the GPL.[3]

Design

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.[4]

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.

Features

  • 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).
  • Plays 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 macOS.
  • 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.

Clients

ncmpcpp

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

Console
  • mpc (part of the MPD project) is a simple command line interface to most of the server's functions.[6]
  • ncmpc is a more fully featured ncurses client similar in concept to MOC.[7][8]
  • ncmpcpp is another ncurses client that clones ncmpc's functionality, but includes new features, such as a tag editor.[9]
  • Practical Music Search is another ncurses client with a Vim-like interface.[10]
  • fmui is an terminal user interface created with fzf and mpc. [11]
Web Clients
  • Bragi-MPD full featured, mobile friendly, fully client side, HTML5 web-client capable of controlling multiple instances and multiple outputs per MPD instance. Its non-UI functionality is maintained in a separate project MPD.js allowing easy creation of new clients.
  • netjukebox is a web-based media jukebox for MPD, VideoLAN and Winamp/httpQ.[12]
  • O!MPD is a responsive, rich client based on PHP and MySQL
Graphical
  • Ario is GTK+-based and uses tabs in its interface.[13]
  • Cantata runs on Windows, macOS and Linux, and uses Qt 5 to manage the library or playlists, with extras like tags editor, lyrics and cover fetching from Internet, and support for mass storage devices.[14] Cantata gained some traction from being made the standard audio player of Linux distribution Kubuntu in October 2017 at the expense of audio player Amarok.[15][better source needed]
  • Gimmix provides a simple interface with a very small memory footprint.[16]
  • 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.[17]
  • 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.
  • mpdlirc interfaces MPD via an infrared remote control.[18]
  • Qmobilempd provides a Qt4 client especially for mobile devices like Symbian.[19]
  • Qmpdplasmoid provides a client directly embedded into the KDE desktop.[20]
  • Sonata uses GTK+ to provide a GUI for playing files and managing playlists.[21]

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

Simple clients can script the mpc program to issue commands to the server. Some clients provide an HTML or AJAX user interface 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,[23] one as a Xfce panel plugin,[24] and one as a Wii application,[25] 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, Lua and Haskell.[26] libmpdee is an Emacs Lisp library allowing MPD to be controlled from Emacs.[27]

See also

References

  1. ^ "Releases - MusicPlayerDaemon/MPD". Retrieved 8 Nov 2018 – via GitHub.
  2. ^ https://www.musicpd.org/news/2013/10/mpd-0-dot-18-released/
  3. ^ Commercial Products running MPD, www.musicpd.org, 2018-02-13, retrieved 2018-02-15
  4. ^ Tag editing patches, nomius.blogspot.com, 2008-01-02, retrieved 2013-03-18
  5. ^ Protocol Reference – Music Player Daemon Community Wiki
  6. ^ Client:Mpc - Music Player Daemon Community Wiki, mpd.wikia.com, 2013-02-28, retrieved 2013-03-18
  7. ^ Client (2008-11-28), Client:Ncmpc - Music Player Daemon Community Wiki, mpd.wikia.com, retrieved 2013-03-18
  8. ^ Client (2008-11-28), Client:Ncmpc - Music Player Daemon Community Wiki, mpd.wikia.com, retrieved 2013-03-18
  9. ^ ncmpcpp MPD client, ncmpcpp.rybczak.net, retrieved 2013-03-18
  10. ^ Practical Music Search
  11. ^ fzf mpd user interface
  12. ^ netjukebox - the flexible media share
  13. ^ Ario, Ario-player.sourceforge.net, retrieved 2013-03-18
  14. ^ Cantata – Qt5 Graphical MPD Client for Linux, Windows, macOS, Haiku, github.com, retrieved 2018-03-14
  15. ^ Kubuntu#Releases
  16. ^ Gimmix
  17. ^ Gnome Music Player Client, gmpclient.org, retrieved 2013-11-13
  18. ^ Client:MpdLIRC - Music Player Daemon Community Wiki, mpd.wikia.com, retrieved 2013-03-18
  19. ^ qmobilempd – MPD (musicpd) client, code.google.com, retrieved 2013-03-18
  20. ^ mpdqml plasmoid, kde-look.org, retrieved 2013-03-18
  21. ^ Sonata Music Client for MPD
  22. ^ MPD Clients, musicpd.org, 2017-10-13, retrieved 2017-10-13
  23. ^ Music Player Minion, mpd.wikia.com, 2010-02-27, retrieved 2013-03-18
  24. ^ xfce4-mpc-plugin, goodies.xfce.org, 2012-06-30, retrieved 2013-03-18
  25. ^ WiiMPC, WiiBrew.org, 2009-08-10, retrieved 2013-03-18
  26. ^ MPD Client Libraries, mpd.wikia.com, 2013-03-05, retrieved 2013-03-18
  27. ^ "An Emacs lisp client library for mpd".

External links

  • Official website
Retrieved from "https://en.wikipedia.org/w/index.php?title=Music_Player_Daemon&oldid=867406577"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Music_Player_Daemon
This page is based on the copyrighted Wikipedia article "Music Player Daemon"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA