Input plugins

alsa

Allows MPD on Linux to play audio directly from a soundcard using the scheme alsa://. Audio is formatted as 44.1 kHz 16-bit stereo (CD format). Examples:

mpc add alsa:// plays audio from device hw:0,0

mpc add alsa://hw:1,0 plays audio from device hw:1,0

cdio_paranoia

Plays audio CDs. The URI has the form: "cdda://[DEVICE][/TRACK]". The simplest form cdda:// plays the whole disc in the default drive.

SettingDescription
default_byte_order little_endian|big_endian If the CD drive does not specify a byte order, MPD assumes it is the CPU's native byte order. This setting allows overriding this.

curl

Opens remote files or streams over HTTP.

SettingDescription
proxy Sets the address of the HTTP proxy server.
proxy_user, proxy_password Configures proxy authentication.

despotify

Plays Spotify tracks using the despotify library. The despotify plugin uses a spt:// URI and a Spotify URL. So for example, you can add a song with:

mpc add spt://spotify:track:5qENVY0YEdZ7fiuOax70x1

You need a Spotify premium account to use this plugin, and you need to setup username and password in the configuration file. The configuration settings are global since the despotify playlist plugin use the same settings.

SettingDescription
despotify_user Sets up the Spotify username (required)
despotify_password Sets up the Spotify password (required)
despotify_high_bitrate Set up if high bitrate should be used for Spotify tunes. High bitrate sounds better but slow systems can have problems with playback (default yes).

file

Opens local files.

mms

Plays streams with the MMS protocol.

nfs

Allows MPD to access files on NFSv3 servers without actually mounting them (i.e. in userspace, without help from the kernel's VFS layer). All URIs with the nfs:// scheme are used according to RFC2224. Example:

mpc add nfs://servername/path/filename.ogg

Note that this usually requires enabling the "insecure" flag in the server's /etc/exports file, because MPD cannot bind to so-called "privileged" ports. Don't fear: this will not make your file server insecure; the flag was named in a time long ago when privileged ports were thought to be meaningful for security. By today's standards, NFSv3 is not secure at all, and if you believe it is, you're already doomed.

smbclient

Allows MPD to access files on SMB/CIFS servers (e.g. Samba or Microsoft Windows). All URIs with the smb:// scheme are used. Example:

mpc add smb://servername/sharename/filename.ogg