mpdconf.example 8.96 KB
Newer Older
1
# An example configuration file for MPD
2
# See the mpd.conf man page for a more detailed description of each parameter.
3 4 5 6 7 8 9 10 11 12 13

######################## REQUIRED PATHS ########################
music_directory                 "~/music"
playlist_directory              "~/.mpd/playlists"
db_file                         "~/.mpd/mpd.db"
log_file                        "~/.mpd/mpd.log"
error_file                      "~/.mpd/mpd.error"
################################################################


######################## OPTIONAL PATHS ########################
Warren Dukes's avatar
Warren Dukes committed
14
#
15 16
# 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.
17
#
18
#pid_file                        "~/.mpd/mpd.pid"
Warren Dukes's avatar
Warren Dukes committed
19
#
20 21 22
# 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.
Warren Dukes's avatar
Warren Dukes committed
23
#
24
#state_file                      "~/.mpd/mpdstate"
Warren Dukes's avatar
Warren Dukes committed
25
#
26
################################################################
27 28


29 30 31 32 33 34
######################## DAEMON OPTIONS ########################
#
# If started as root, MPD will drop root privileges and run as
# this user instead.  Otherwise, MPD will run as the user it was
# started by.  If left unspecified, MPD will not drop root
# privileges at all (not recommended).
Warren Dukes's avatar
Warren Dukes committed
35
#
36
#user                            "nobody"
Warren Dukes's avatar
Warren Dukes committed
37
#
38
# The address and port to listen on.
Warren Dukes's avatar
Warren Dukes committed
39
#
40 41
#bind_to_address                 "any"
#port                            "6600"
Warren Dukes's avatar
Warren Dukes committed
42
#
43 44 45 46 47
# Controls the amount of information that is logged.  Can be
# "default", "secure", or "verbose".
#
#log_level                       "default"
#
48 49 50 51 52 53
# If Zeroconf is configured, the service name to publish.  This
# should be unique on your local network, but name collisions
# will be taken care of for you.
#
#zeroconf_name                   "Music Player"
#
54
################################################################
55 56


57
########################## PERMISSIONS #########################
58
#
59 60 61
# 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.
Warren Dukes's avatar
Warren Dukes committed
62
#
63 64 65 66 67 68
#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.
69
#
70
#default_permissions             "read,add,control,admin"
Warren Dukes's avatar
Warren Dukes committed
71
#
72
################################################################
Warren Dukes's avatar
Warren Dukes committed
73

74

75
########################## AUDIO OUTPUT ########################
76
#
77 78 79 80
# 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.
81
#
82 83
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
# for examples of other audio outputs.
84
#
85
# An example of an ALSA output:
86
#
87 88 89 90 91 92
#audio_output {
#        type                    "alsa"
#        name                    "My ALSA Device"
#        device                  "hw:0,0"     # optional
#        format                  "44100:16:2" # optional
#}
93
#
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
# 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"
#        name                    "My Shout Stream"
#        host                    "localhost"
#        port                    "8000"
#        mount                   "/mpd.ogg"
#        password                "hackme"
#        quality                 "5.0"
#        bitrate                 "128"
#        format                  "44100:16:1"
#        user                    "source"                # optional
#        description             "My Stream Description" # optional
#        genre                   "jazz"                  # optional
#        public                  "no"                    # optional
#}
120
#
121 122 123 124 125 126 127
# An example of a null output (for no audio output):
#
#audio_output {
#        type                    "null"
#        name                    "My Null Output"
#}
#
128 129
# Force all decoded audio to be converted to this format before
# being passed to the audio outputs.
130
#
131
#audio_output_format             "44100:16:2"
132
#
133 134 135 136
# 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.
137
#
138
#samplerate_converter            "Fastest Sinc Interpolator"
139
#
140
################################################################
141 142


143
############################# MIXER ############################
Warren Dukes's avatar
Warren Dukes committed
144
#
145 146
# MPD needs to know what mixer settings to change when you
# adjust the volume.  If you don't specify one here, MPD will
147
# pick one based on which ones it was compiled with support for.
Warren Dukes's avatar
Warren Dukes committed
148
#
149
# An example for controlling an ALSA mixer:
Warren Dukes's avatar
Warren Dukes committed
150
#
151 152 153
#mixer_type                      "alsa"
#mixer_device                    "default"
#mixer_control                   "PCM"
Warren Dukes's avatar
Warren Dukes committed
154
#
155
# An example for controlling an OSS mixer:
Warren Dukes's avatar
Warren Dukes committed
156
#
157 158 159
#mixer_type                      "oss"
#mixer_device                    "/dev/mixer"
#mixer_control                   "PCM"
160
#
161 162 163 164 165 166
# 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"
#
################################################################
167

168

169
######################### NORMALIZATION ########################
Warren Dukes's avatar
Warren Dukes committed
170
#
171 172 173
# 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.
Warren Dukes's avatar
Warren Dukes committed
174
#
175
#replaygain                      "album"
Warren Dukes's avatar
Warren Dukes committed
176
#
177
# Sets the pre-amp used for files that have ReplayGain tags.
Warren Dukes's avatar
Warren Dukes committed
178
#
179
#replaygain_preamp               "0"
Warren Dukes's avatar
Warren Dukes committed
180
#
181 182 183
# 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.
Warren Dukes's avatar
Warren Dukes committed
184
#
185
#volume_normalization            "no"
Warren Dukes's avatar
Warren Dukes committed
186
#
187
################################################################
188 189


190
########################### BUFFERING ##########################
Warren Dukes's avatar
Warren Dukes committed
191
#
192 193
# The size of the buffer containing decoded audio.  You probably
# shouldn't change this.
Warren Dukes's avatar
Warren Dukes committed
194
#
195
#audio_buffer_size               "2048"
Warren Dukes's avatar
Warren Dukes committed
196
#
197
# How much of the buffer to fill before beginning to play.
198
# Increase this if you hear skipping when changing songs.
Warren Dukes's avatar
Warren Dukes committed
199
#
200
#buffer_before_play              "10%"
Warren Dukes's avatar
Warren Dukes committed
201
#
202 203 204
# Similar options for the HTTP stream buffer.  If you hear
# skipping while playing HTTP streams, you may wish to increase
# these.
Warren Dukes's avatar
Warren Dukes committed
205
#
206 207
#http_buffer_size                "128"
#http_prebuffer_size             "25%"
Warren Dukes's avatar
Warren Dukes committed
208
#
209
################################################################
210

211

212
########################### HTTP PROXY #########################
Warren Dukes's avatar
Warren Dukes committed
213
#
214
# Specifies the HTTP proxy to use for playing HTTP streams.
215
#
216 217 218 219
#http_proxy_host                 "proxy.isp.com"
#http_proxy_port                 "8080"
#http_proxy_user                 "user"
#http_proxy_password             "password"
220
#
221 222 223 224
################################################################


############################# LIMITS ###########################
225
#
226 227 228
# 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.
229
#
230 231 232 233 234
#connection_timeout              "60"
#max_connections                 "5"
#max_playlist_length             "16384"
#max_command_list_size           "2048"
#max_output_buffer_size          "8192"
235
#
236 237 238 239
################################################################


###################### CHARACTER ENCODINGS #####################
Warren Dukes's avatar
Warren Dukes committed
240
#
241 242 243 244
# 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).
Warren Dukes's avatar
Warren Dukes committed
245
#
246
#filesystem_charset              "ISO-8859-1"
Warren Dukes's avatar
Warren Dukes committed
247
#
248
# The encoding that ID3v1 tags should be converted from.
Warren Dukes's avatar
Warren Dukes committed
249
#
250
#id3v1_encoding                  "ISO-8859-1"
Warren Dukes's avatar
Warren Dukes committed
251
#
252 253 254 255
################################################################


######################### OTHER OPTIONS ########################
Warren Dukes's avatar
Warren Dukes committed
256
#
257 258 259 260 261
# 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.
Warren Dukes's avatar
Warren Dukes committed
262
#
263
#gapless_mp3_playback             "yes"
Warren Dukes's avatar
Warren Dukes committed
264
#
265 266
# Enable this if you wish to use your MPD created playlists in
# other music players.
Warren Dukes's avatar
Warren Dukes committed
267
#
268
#save_absolute_paths_in_playlists "no"
Warren Dukes's avatar
Warren Dukes committed
269
#
270 271
# A list of tag types that MPD will scan for and make available
# to clients.
272 273 274
#
#metadata_to_use                  "artist,album,title,track,name,genre,date,composer,performer,disc"
#
275
################################################################