2006-09-13 01:16:14 +02:00
|
|
|
# An example configuration file for MPD
|
2006-09-13 19:04:14 +02:00
|
|
|
# See the mpd.conf man page for a more detailed description of each parameter.
|
2006-09-13 01:16:14 +02:00
|
|
|
|
|
|
|
######################## REQUIRED PATHS ########################
|
|
|
|
music_directory "~/music"
|
|
|
|
playlist_directory "~/.mpd/playlists"
|
|
|
|
db_file "~/.mpd/mpd.db"
|
|
|
|
log_file "~/.mpd/mpd.log"
|
|
|
|
error_file "~/.mpd/mpd.error"
|
2008-12-08 09:00:38 +01:00
|
|
|
#follow_outside_symlinks "yes"
|
2008-11-28 10:57:39 +01:00
|
|
|
#follow_inside_symlinks "yes"
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
|
|
######################## OPTIONAL PATHS ########################
|
2005-03-12 05:06:16 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# If you wish to use mpd --kill to stop MPD, then you must
|
|
|
|
# specify a file here in which to store MPD's process ID.
|
2005-03-06 05:27:19 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#pid_file "~/.mpd/mpd.pid"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# If specified, MPD will save its current state (playlist,
|
|
|
|
# current song, playing/paused, etc.) at exit. This will be
|
|
|
|
# used to restore the session the next time it is run.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#state_file "~/.mpd/mpdstate"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
######################## DAEMON OPTIONS ########################
|
|
|
|
#
|
2008-12-20 17:37:12 +01:00
|
|
|
# This specifies the user that MPD will run as, if set. MPD should
|
|
|
|
# never run as root, and you may use this option to make MPD change
|
|
|
|
# its user id after initialization. Do not use this option if you
|
|
|
|
# start MPD as an unprivileged user.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#user "nobody"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# The address and port to listen on.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#bind_to_address "any"
|
|
|
|
#port "6600"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2008-12-16 21:31:52 +01:00
|
|
|
# Bind to a Unix domain socket:
|
|
|
|
#
|
|
|
|
#bind_to_address "/var/run/mpd/socket"
|
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Controls the amount of information that is logged. Can be
|
|
|
|
# "default", "secure", or "verbose".
|
|
|
|
#
|
|
|
|
#log_level "default"
|
|
|
|
#
|
2007-06-03 22:09:12 +02:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
|
|
########################### ZEROCONF ###########################
|
|
|
|
#
|
|
|
|
# If yes, service information will be published with Zeroconf.
|
2007-06-03 20:08:51 +02:00
|
|
|
#
|
|
|
|
#zeroconf_enabled "yes"
|
|
|
|
#
|
2007-06-03 22:09:12 +02:00
|
|
|
# The service name to publish. This name should be unique on
|
|
|
|
# your local network.
|
2007-01-11 21:41:17 +01:00
|
|
|
#
|
|
|
|
#zeroconf_name "Music Player"
|
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
########################## PERMISSIONS #########################
|
2004-10-28 07:14:55 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# MPD can require that users specify a password before using it.
|
|
|
|
# You may specify one ore more here, along with what users who
|
|
|
|
# log in with that password are allowed to do.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#password "password@read,add,control,admin"
|
|
|
|
#
|
|
|
|
# Specifies what permissions a user who has not logged in with a
|
|
|
|
# password has. By default, all users have full access to MPD
|
|
|
|
# if no password is specified above, or no access if one or
|
|
|
|
# more passwords are specified.
|
2004-11-09 14:04:20 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#default_permissions "read,add,control,admin"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
2004-07-18 14:48:17 +02:00
|
|
|
|
2004-10-29 20:28:06 +02:00
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
########################## AUDIO OUTPUT ########################
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# MPD supports many audio output types, as well as playing
|
|
|
|
# through multiple audio outputs at the same time. You can
|
|
|
|
# specify one or more here. If you don't specify any, MPD will
|
|
|
|
# automatically scan for a usable audio output.
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2006-09-15 02:48:46 +02:00
|
|
|
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
|
|
|
|
# for examples of other audio outputs.
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# An example of an ALSA output:
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#audio_output {
|
|
|
|
# type "alsa"
|
|
|
|
# name "My ALSA Device"
|
|
|
|
# device "hw:0,0" # optional
|
|
|
|
# format "44100:16:2" # optional
|
|
|
|
#}
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# An example of an OSS output:
|
|
|
|
#
|
|
|
|
#audio_output {
|
|
|
|
# type "oss"
|
|
|
|
# name "My OSS Device"
|
|
|
|
# device "/dev/dsp" # optional
|
|
|
|
# format "44100:16:2" # optional
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
# An example of a shout output (for streaming to Icecast):
|
|
|
|
#
|
|
|
|
#audio_output {
|
|
|
|
# type "shout"
|
2008-10-31 13:19:50 +01:00
|
|
|
# encoding "ogg" # optional
|
2006-09-13 01:16:14 +02:00
|
|
|
# name "My Shout Stream"
|
|
|
|
# host "localhost"
|
|
|
|
# port "8000"
|
|
|
|
# mount "/mpd.ogg"
|
|
|
|
# password "hackme"
|
|
|
|
# quality "5.0"
|
|
|
|
# bitrate "128"
|
|
|
|
# format "44100:16:1"
|
2008-10-31 13:19:50 +01:00
|
|
|
# protocol "icecast2" # optional
|
2006-09-13 01:16:14 +02:00
|
|
|
# user "source" # optional
|
|
|
|
# description "My Stream Description" # optional
|
|
|
|
# genre "jazz" # optional
|
|
|
|
# public "no" # optional
|
2007-06-12 20:28:57 +02:00
|
|
|
# timeout "2" # optional
|
2006-09-13 01:16:14 +02:00
|
|
|
#}
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2007-05-30 18:58:39 +02:00
|
|
|
# An example of a null output (for no audio output):
|
|
|
|
#
|
|
|
|
#audio_output {
|
|
|
|
# type "null"
|
|
|
|
# name "My Null Output"
|
|
|
|
#}
|
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Force all decoded audio to be converted to this format before
|
|
|
|
# being passed to the audio outputs.
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#audio_output_format "44100:16:2"
|
2004-10-29 20:28:06 +02:00
|
|
|
#
|
2007-02-13 23:31:47 +01:00
|
|
|
# If MPD has been compiled with libsamplerate support, this
|
|
|
|
# specifies the sample rate converter to use. Possible
|
|
|
|
# values can be found in the mpd.conf man page or the
|
|
|
|
# libsamplerate documentation.
|
2007-02-02 04:51:07 +01:00
|
|
|
#
|
2007-02-13 23:31:47 +01:00
|
|
|
#samplerate_converter "Fastest Sinc Interpolator"
|
2007-02-02 04:51:07 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
2004-10-29 20:28:06 +02:00
|
|
|
|
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
############################# MIXER ############################
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# MPD needs to know what mixer settings to change when you
|
|
|
|
# adjust the volume. If you don't specify one here, MPD will
|
2006-09-13 01:23:29 +02:00
|
|
|
# pick one based on which ones it was compiled with support for.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# An example for controlling an ALSA mixer:
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#mixer_type "alsa"
|
|
|
|
#mixer_device "default"
|
|
|
|
#mixer_control "PCM"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# An example for controlling an OSS mixer:
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#mixer_type "oss"
|
|
|
|
#mixer_device "/dev/mixer"
|
|
|
|
#mixer_control "PCM"
|
2006-07-22 02:53:37 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# If you want MPD to adjust the volume of audio sent to the
|
|
|
|
# audio outputs, you can tell it to use the software mixer:
|
|
|
|
#
|
|
|
|
#mixer_type "software"
|
|
|
|
#
|
|
|
|
################################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-03-24 01:42:47 +01:00
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
######################### NORMALIZATION ########################
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Specifies the type of ReplayGain to use. Can be "album" or
|
|
|
|
# "track". ReplayGain will not be used if not specified. See
|
|
|
|
# <http://www.replaygain.org> for more details.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#replaygain "album"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Sets the pre-amp used for files that have ReplayGain tags.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#replaygain_preamp "0"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Enable on the fly volume normalization. This will cause the
|
|
|
|
# volume of all songs played to be adjusted so that they sound
|
|
|
|
# as though they are of equal loudness.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#volume_normalization "no"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
2004-06-23 13:52:25 +02:00
|
|
|
|
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
########################### BUFFERING ##########################
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# The size of the buffer containing decoded audio. You probably
|
|
|
|
# shouldn't change this.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#audio_buffer_size "2048"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# How much of the buffer to fill before beginning to play.
|
2007-05-23 16:13:46 +02:00
|
|
|
# Increase this if you hear skipping when changing songs.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2007-05-27 15:12:02 +02:00
|
|
|
#buffer_before_play "10%"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Similar options for the HTTP stream buffer. If you hear
|
|
|
|
# skipping while playing HTTP streams, you may wish to increase
|
|
|
|
# these.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#http_buffer_size "128"
|
|
|
|
#http_prebuffer_size "25%"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-03-24 01:42:47 +01:00
|
|
|
|
2006-09-13 01:16:14 +02:00
|
|
|
########################### HTTP PROXY #########################
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Specifies the HTTP proxy to use for playing HTTP streams.
|
2005-03-06 20:00:58 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#http_proxy_host "proxy.isp.com"
|
|
|
|
#http_proxy_port "8080"
|
|
|
|
#http_proxy_user "user"
|
|
|
|
#http_proxy_password "password"
|
2006-06-21 22:52:51 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
|
|
############################# LIMITS ###########################
|
2006-06-21 22:52:51 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# These are various limits to prevent MPD from using too many
|
|
|
|
# resources. You should only change them if they start
|
|
|
|
# restricting your usage of MPD.
|
2004-11-10 22:58:27 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#connection_timeout "60"
|
|
|
|
#max_connections "5"
|
|
|
|
#max_playlist_length "16384"
|
|
|
|
#max_command_list_size "2048"
|
|
|
|
#max_output_buffer_size "8192"
|
2004-11-10 22:58:27 +01:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
|
|
###################### CHARACTER ENCODINGS #####################
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# If file or directory names do not display correctly, then you
|
|
|
|
# may need to change this. In most cases it should be either
|
|
|
|
# "ISO-8859-1" or "UTF-8". You must recreate your database
|
|
|
|
# after changing this (use mpd --create-db).
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#filesystem_charset "ISO-8859-1"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# The encoding that ID3v1 tags should be converted from.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
#id3v1_encoding "ISO-8859-1"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
|
|
######################### OTHER OPTIONS ########################
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-12-23 19:56:23 +01:00
|
|
|
# Try disabling this if you have MP3s which appear to end
|
|
|
|
# abruptly. If this solves the problem, it is highly
|
|
|
|
# recommended that you fix your MP3s with vbrfix (available from
|
|
|
|
# <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
|
|
|
|
# point you can re-enable support for gapless MP3 playback.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-12-23 19:56:23 +01:00
|
|
|
#gapless_mp3_playback "yes"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
# Enable this if you wish to use your MPD created playlists in
|
|
|
|
# other music players.
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#save_absolute_paths_in_playlists "no"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2007-03-31 22:40:57 +02:00
|
|
|
# A list of tag types that MPD will scan for and make available
|
|
|
|
# to clients.
|
2006-12-23 19:56:23 +01:00
|
|
|
#
|
|
|
|
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
|
|
|
|
#
|
2006-09-13 01:16:14 +02:00
|
|
|
################################################################
|