mpdconf.example 9.19 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
################################################################


########################### ZEROCONF ###########################
#
# If yes, service information will be published with Zeroconf.
54 55 56
#
#zeroconf_enabled                "yes"
#
57 58
# The service name to publish.  This name should be unique on
# your local network.
59 60 61
#
#zeroconf_name                   "Music Player"
#
62
################################################################
63 64


65
########################## PERMISSIONS #########################
66
#
67 68 69
# 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
70
#
71 72 73 74 75 76
#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.
77
#
78
#default_permissions             "read,add,control,admin"
Warren Dukes's avatar
Warren Dukes committed
79
#
80
################################################################
Warren Dukes's avatar
Warren Dukes committed
81

82

83
########################## AUDIO OUTPUT ########################
84
#
85 86 87 88
# 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.
89
#
90 91
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
# for examples of other audio outputs.
92
#
93
# An example of an ALSA output:
94
#
95 96 97 98 99 100
#audio_output {
#        type                    "alsa"
#        name                    "My ALSA Device"
#        device                  "hw:0,0"     # optional
#        format                  "44100:16:2" # optional
#}
101
#
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
# 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
127
#        timeout                 "2"                     # optional
128
#}
129
#
130 131 132 133 134 135 136
# An example of a null output (for no audio output):
#
#audio_output {
#        type                    "null"
#        name                    "My Null Output"
#}
#
137 138
# Force all decoded audio to be converted to this format before
# being passed to the audio outputs.
139
#
140
#audio_output_format             "44100:16:2"
141
#
142 143 144 145
# 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.
146
#
147
#samplerate_converter            "Fastest Sinc Interpolator"
148
#
149
################################################################
150 151


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

177

178
######################### NORMALIZATION ########################
Warren Dukes's avatar
Warren Dukes committed
179
#
180 181 182
# 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
183
#
184
#replaygain                      "album"
Warren Dukes's avatar
Warren Dukes committed
185
#
186
# Sets the pre-amp used for files that have ReplayGain tags.
Warren Dukes's avatar
Warren Dukes committed
187
#
188
#replaygain_preamp               "0"
Warren Dukes's avatar
Warren Dukes committed
189
#
190 191 192
# 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
193
#
194
#volume_normalization            "no"
Warren Dukes's avatar
Warren Dukes committed
195
#
196
################################################################
197 198


199
########################### BUFFERING ##########################
Warren Dukes's avatar
Warren Dukes committed
200
#
201 202
# The size of the buffer containing decoded audio.  You probably
# shouldn't change this.
Warren Dukes's avatar
Warren Dukes committed
203
#
204
#audio_buffer_size               "2048"
Warren Dukes's avatar
Warren Dukes committed
205
#
206
# How much of the buffer to fill before beginning to play.
207
# Increase this if you hear skipping when changing songs.
Warren Dukes's avatar
Warren Dukes committed
208
#
209
#buffer_before_play              "10%"
Warren Dukes's avatar
Warren Dukes committed
210
#
211 212 213
# 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
214
#
215 216
#http_buffer_size                "128"
#http_prebuffer_size             "25%"
Warren Dukes's avatar
Warren Dukes committed
217
#
218
################################################################
219

220

221
########################### HTTP PROXY #########################
Warren Dukes's avatar
Warren Dukes committed
222
#
223
# Specifies the HTTP proxy to use for playing HTTP streams.
224
#
225 226 227 228
#http_proxy_host                 "proxy.isp.com"
#http_proxy_port                 "8080"
#http_proxy_user                 "user"
#http_proxy_password             "password"
229
#
230 231 232 233
################################################################


############################# LIMITS ###########################
234
#
235 236 237
# 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.
238
#
239 240 241 242 243
#connection_timeout              "60"
#max_connections                 "5"
#max_playlist_length             "16384"
#max_command_list_size           "2048"
#max_output_buffer_size          "8192"
244
#
245 246 247 248
################################################################


###################### CHARACTER ENCODINGS #####################
Warren Dukes's avatar
Warren Dukes committed
249
#
250 251 252 253
# 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
254
#
255
#filesystem_charset              "ISO-8859-1"
Warren Dukes's avatar
Warren Dukes committed
256
#
257
# The encoding that ID3v1 tags should be converted from.
Warren Dukes's avatar
Warren Dukes committed
258
#
259
#id3v1_encoding                  "ISO-8859-1"
Warren Dukes's avatar
Warren Dukes committed
260
#
261 262 263 264
################################################################


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