| 1 |
# An example configuration file for MPD. |
| 2 |
# Read the user manual for documentation: http://www.musicpd.org/doc/user/ |
| 3 |
|
| 4 |
|
| 5 |
# Files and directories ####################################################### |
| 6 |
# |
| 7 |
# This setting controls the top directory which MPD will search to discover the |
| 8 |
# available audio files and add them to the daemon's online database. This |
| 9 |
# setting defaults to the XDG directory, otherwise the music directory will be |
| 10 |
# be disabled and audio files will only be accepted over ipc socket (using |
| 11 |
# file:// protocol) or streaming files over an accepted protocol. |
| 12 |
# |
| 13 |
#music_directory "$XDG_MUSIC_DIR" |
| 14 |
#music_directory "~/music" |
| 15 |
# |
| 16 |
# This setting sets the MPD internal playlist directory. The purpose of this |
| 17 |
# directory is storage for playlists created by MPD. The server will use |
| 18 |
# playlist files not created by the server but only if they are in the MPD |
| 19 |
# format. This setting defaults to playlist saving being disabled. |
| 20 |
# |
| 21 |
#playlist_directory "$XDG_CONFIG_HOME/mpd/playlists" |
| 22 |
#playlist_directory "~/.mpd/playlists" |
| 23 |
# |
| 24 |
# This setting sets the location of the MPD database. This file is used to |
| 25 |
# load the database at server start up and store the database while the |
| 26 |
# server is not up. This setting defaults to disabled which will allow |
| 27 |
# MPD to accept files over ipc socket (using file:// protocol) or streaming |
| 28 |
# files over an accepted protocol. |
| 29 |
# |
| 30 |
#db_file "$XDG_CACHE_HOME/mpd/database" |
| 31 |
#db_file "~/.mpd/database" |
| 32 |
|
| 33 |
# These settings are the locations for the daemon log files for the daemon. |
| 34 |
# |
| 35 |
# The special value "syslog" makes MPD use the local syslog daemon. This |
| 36 |
# setting defaults to logging to syslog. |
| 37 |
# |
| 38 |
# If you use systemd, do not configure a log_file. With systemd, MPD |
| 39 |
# defaults to the systemd journal, which is fine. |
| 40 |
# |
| 41 |
#log_file "$XDG_CACHE_HOME/mpd/log" |
| 42 |
#log_file "~/.mpd/log" |
| 43 |
|
| 44 |
# This setting sets the location of the file which stores the process ID |
| 45 |
# for use of mpd --kill and some init scripts. This setting is disabled by |
| 46 |
# default and the pid file will not be stored. |
| 47 |
# |
| 48 |
# If you use systemd, do not configure a pid_file. |
| 49 |
# |
| 50 |
#pid_file "$XDG_RUNTIME_DIR/mpd/mpd.pid" |
| 51 |
#pid_file "~/.mpd/pid" |
| 52 |
|
| 53 |
# This setting sets the location of the file which contains information about |
| 54 |
# most variables to get MPD back into the same general shape it was in before |
| 55 |
# it was brought down. This setting is disabled by default and the server |
| 56 |
# state will be reset on server start up. |
| 57 |
# |
| 58 |
#state_file "$XDG_RUNTIME_DIR/mpd/state" |
| 59 |
#state_file "~/.mpd/state" |
| 60 |
# |
| 61 |
# The location of the sticker database. This is a database which |
| 62 |
# manages dynamic information attached to songs. |
| 63 |
# |
| 64 |
#sticker_file "$XDG_CACHE_HOME/sticker.sql" |
| 65 |
#sticker_file "~/.mpd/sticker.sql" |
| 66 |
# |
| 67 |
############################################################################### |
| 68 |
|
| 69 |
|
| 70 |
# General music daemon options ################################################ |
| 71 |
# |
| 72 |
# This setting specifies the user that MPD will run as. MPD should never run as |
| 73 |
# root and you may use this setting to make MPD change its user ID after |
| 74 |
# initialization. This setting is disabled by default and MPD is run as the |
| 75 |
# current user. |
| 76 |
# |
| 77 |
#user "nobody" |
| 78 |
# |
| 79 |
# This setting sets the address for the daemon to listen on. Careful attention |
| 80 |
# should be paid if this is assigned to anything other than the default, any. |
| 81 |
# This setting can deny access to control of the daemon. Not effective if |
| 82 |
# systemd socket activation is in use. |
| 83 |
# |
| 84 |
# For network |
| 85 |
#bind_to_address "any" |
| 86 |
# |
| 87 |
# And for Unix Socket |
| 88 |
#bind_to_address "$XDG_RUNTIME_DIR/mpd/socket" |
| 89 |
#bind_to_address "~/.mpd/socket" |
| 90 |
# |
| 91 |
# This setting is the TCP port that is desired for the daemon to get assigned |
| 92 |
# to. |
| 93 |
# |
| 94 |
#port "6600" |
| 95 |
# |
| 96 |
# Suppress all messages below the given threshold. Use "verbose" for |
| 97 |
# troubleshooting. Available setting arguments are "notice", "info", "verbose", |
| 98 |
# "warning" and "error". |
| 99 |
# |
| 100 |
#log_level "notice" |
| 101 |
# |
| 102 |
# Setting "restore_paused" to "yes" puts MPD into pause mode instead |
| 103 |
# of starting playback after startup. |
| 104 |
# |
| 105 |
#restore_paused "no" |
| 106 |
# |
| 107 |
# This setting enables MPD to create playlists in a format usable by other |
| 108 |
# music players. |
| 109 |
# |
| 110 |
#save_absolute_paths_in_playlists "no" |
| 111 |
# |
| 112 |
# This setting defines a list of tag types that will be extracted during the |
| 113 |
# audio file discovery process. The complete list of possible values can be |
| 114 |
# found in the user manual. |
| 115 |
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" |
| 116 |
# |
| 117 |
# This example just enables the "comment" tag without disabling all |
| 118 |
# the other supported tags: |
| 119 |
#metadata_to_use "+comment" |
| 120 |
# |
| 121 |
# This setting enables automatic update of MPD's database when files in |
| 122 |
# music_directory are changed. (Linux only) |
| 123 |
# |
| 124 |
#auto_update "yes" |
| 125 |
# |
| 126 |
# Limit the depth of the directories being watched, 0 means only watch |
| 127 |
# the music directory itself. There is no limit by default. |
| 128 |
# |
| 129 |
#auto_update_depth "3" |
| 130 |
# |
| 131 |
############################################################################### |
| 132 |
|
| 133 |
|
| 134 |
# Symbolic link behavior ###################################################### |
| 135 |
# |
| 136 |
# If this setting is set to "yes", MPD will discover audio files by following |
| 137 |
# symbolic links outside of the configured music_directory. |
| 138 |
# |
| 139 |
#follow_outside_symlinks "yes" |
| 140 |
# |
| 141 |
# If this setting is set to "yes", MPD will discover audio files by following |
| 142 |
# symbolic links inside of the configured music_directory. |
| 143 |
# |
| 144 |
#follow_inside_symlinks "yes" |
| 145 |
# |
| 146 |
############################################################################### |
| 147 |
|
| 148 |
|
| 149 |
# Zeroconf / Avahi Service Discovery ########################################## |
| 150 |
# |
| 151 |
# If this setting is set to "yes", service information will be published with |
| 152 |
# Zeroconf / Avahi. |
| 153 |
# |
| 154 |
#zeroconf_enabled "yes" |
| 155 |
# |
| 156 |
# The argument to this setting will be the Zeroconf / Avahi unique name for |
| 157 |
# this MPD server on the network. %h will be replaced with the hostname. |
| 158 |
# |
| 159 |
#zeroconf_name "Music Player @ %h" |
| 160 |
# |
| 161 |
############################################################################### |
| 162 |
|
| 163 |
|
| 164 |
# Permissions ################################################################# |
| 165 |
# |
| 166 |
# If this setting is set, MPD will require password authorization. The password |
| 167 |
# setting can be specified multiple times for different password profiles. |
| 168 |
# |
| 169 |
#password "password@read,add,control,admin" |
| 170 |
# |
| 171 |
# This setting specifies the permissions a user has who has not yet logged in. |
| 172 |
# |
| 173 |
#default_permissions "read,add,control,admin" |
| 174 |
# |
| 175 |
############################################################################### |
| 176 |
|
| 177 |
|
| 178 |
# Database ####################################################################### |
| 179 |
# |
| 180 |
# An example of a database section instead of the old 'db_file' setting. |
| 181 |
# It enables mounting other storages into the music directory. |
| 182 |
# |
| 183 |
#database { |
| 184 |
# plugin "simple" |
| 185 |
# path "~/.local/share/mpd/db" |
| 186 |
# cache_directory "~/.local/share/mpd/cache" |
| 187 |
#} |
| 188 |
# |
| 189 |
# An example of database config for a satellite setup |
| 190 |
# |
| 191 |
#music_directory "nfs://fileserver.local/srv/mp3" |
| 192 |
#database { |
| 193 |
# plugin "proxy" |
| 194 |
# host "other.mpd.host" |
| 195 |
# port "6600" |
| 196 |
#} |
| 197 |
|
| 198 |
# Input ####################################################################### |
| 199 |
# |
| 200 |
input { |
| 201 |
plugin "curl" |
| 202 |
# proxy "proxy.isp.com:8080" |
| 203 |
# proxy_user "user" |
| 204 |
# proxy_password "password" |
| 205 |
} |
| 206 |
|
| 207 |
# |
| 208 |
############################################################################### |
| 209 |
|
| 210 |
# Audio Output ################################################################ |
| 211 |
# |
| 212 |
# MPD supports various audio output types, as well as playing through multiple |
| 213 |
# audio outputs at the same time, through multiple audio_output settings |
| 214 |
# blocks. Setting this block is optional, though the server will only attempt |
| 215 |
# autodetection for one sound card. |
| 216 |
# |
| 217 |
# An example of an ALSA output: |
| 218 |
# |
| 219 |
#audio_output { |
| 220 |
# type "alsa" |
| 221 |
# name "My ALSA Device" |
| 222 |
## device "hw:0,0" # optional |
| 223 |
## mixer_type "hardware" # optional |
| 224 |
## mixer_device "default" # optional |
| 225 |
## mixer_control "PCM" # optional |
| 226 |
## mixer_index "0" # optional |
| 227 |
#} |
| 228 |
# |
| 229 |
# An example of an OSS output: |
| 230 |
# |
| 231 |
#audio_output { |
| 232 |
# type "oss" |
| 233 |
# name "My OSS Device" |
| 234 |
## device "/dev/dsp" # optional |
| 235 |
## mixer_type "hardware" # optional |
| 236 |
## mixer_device "/dev/mixer" # optional |
| 237 |
## mixer_control "PCM" # optional |
| 238 |
#} |
| 239 |
# |
| 240 |
# An example of a shout output (for streaming to Icecast): |
| 241 |
# |
| 242 |
#audio_output { |
| 243 |
# type "shout" |
| 244 |
# encoder "vorbis" # optional |
| 245 |
# name "My Shout Stream" |
| 246 |
# host "localhost" |
| 247 |
# port "8000" |
| 248 |
# mount "/mpd.ogg" |
| 249 |
# password "hackme" |
| 250 |
# quality "5.0" |
| 251 |
# bitrate "128" |
| 252 |
# format "44100:16:1" |
| 253 |
## protocol "icecast2" # optional |
| 254 |
## user "source" # optional |
| 255 |
## description "My Stream Description" # optional |
| 256 |
## url "http://example.com" # optional |
| 257 |
## genre "jazz" # optional |
| 258 |
## public "no" # optional |
| 259 |
## timeout "2" # optional |
| 260 |
## mixer_type "software" # optional |
| 261 |
#} |
| 262 |
# |
| 263 |
# An example of a recorder output: |
| 264 |
# |
| 265 |
#audio_output { |
| 266 |
# type "recorder" |
| 267 |
# name "My recorder" |
| 268 |
# encoder "vorbis" # optional, vorbis or lame |
| 269 |
# path "/var/lib/mpd/recorder/mpd.ogg" |
| 270 |
## quality "5.0" # do not define if bitrate is defined |
| 271 |
# bitrate "128" # do not define if quality is defined |
| 272 |
# format "44100:16:1" |
| 273 |
#} |
| 274 |
# |
| 275 |
# An example of a httpd output (built-in HTTP streaming server): |
| 276 |
# |
| 277 |
#audio_output { |
| 278 |
# type "httpd" |
| 279 |
# name "My HTTP Stream" |
| 280 |
# encoder "vorbis" # optional, vorbis or lame |
| 281 |
# port "8000" |
| 282 |
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6 |
| 283 |
## quality "5.0" # do not define if bitrate is defined |
| 284 |
# bitrate "128" # do not define if quality is defined |
| 285 |
# format "44100:16:1" |
| 286 |
# max_clients "0" # optional 0=no limit |
| 287 |
#} |
| 288 |
# |
| 289 |
# An example of a pulseaudio output (streaming to a remote pulseaudio server) |
| 290 |
# |
| 291 |
#audio_output { |
| 292 |
# type "pulse" |
| 293 |
# name "My Pulse Output" |
| 294 |
## server "remote_server" # optional |
| 295 |
## sink "remote_server_sink" # optional |
| 296 |
## media_role "media_role" #optional |
| 297 |
#} |
| 298 |
# |
| 299 |
# An example of a winmm output (Windows multimedia API). |
| 300 |
# |
| 301 |
#audio_output { |
| 302 |
# type "winmm" |
| 303 |
# name "My WinMM output" |
| 304 |
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional |
| 305 |
# or |
| 306 |
## device "0" # optional |
| 307 |
## mixer_type "hardware" # optional |
| 308 |
#} |
| 309 |
# |
| 310 |
# An example of a wasapi output (Windows multimedia API). |
| 311 |
# |
| 312 |
#audio_output { |
| 313 |
# type "wasapi" |
| 314 |
# name "My WASAPI output" |
| 315 |
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional |
| 316 |
# or |
| 317 |
## device "0" # optional |
| 318 |
## mixer_type "hardware" # optional |
| 319 |
## Exclusive mode blocks all other audio source, and get best audio quality without resampling. |
| 320 |
## exclusive "no" # optional |
| 321 |
## Enumerate all devices in log. |
| 322 |
## enumerate "no" # optional |
| 323 |
#} |
| 324 |
# |
| 325 |
# An example of an openal output. |
| 326 |
# |
| 327 |
#audio_output { |
| 328 |
# type "openal" |
| 329 |
# name "My OpenAL output" |
| 330 |
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional |
| 331 |
#} |
| 332 |
# |
| 333 |
# An example of an sndio output. |
| 334 |
# |
| 335 |
#audio_output { |
| 336 |
# type "sndio" |
| 337 |
# name "sndio output" |
| 338 |
# mixer_type "hardware" |
| 339 |
#} |
| 340 |
# |
| 341 |
# An example of an OS X output: |
| 342 |
# |
| 343 |
#audio_output { |
| 344 |
# type "osx" |
| 345 |
# name "My OS X Device" |
| 346 |
## device "Built-in Output" # optional |
| 347 |
## channel_map "-1,-1,0,1" # optional |
| 348 |
#} |
| 349 |
# |
| 350 |
## Example "pipe" output: |
| 351 |
# |
| 352 |
#audio_output { |
| 353 |
# type "pipe" |
| 354 |
# name "my pipe" |
| 355 |
# command "aplay -f cd 2>/dev/null" |
| 356 |
## Or if you're want to use AudioCompress |
| 357 |
# command "AudioCompress -m | aplay -f cd 2>/dev/null" |
| 358 |
## Or to send raw PCM stream through PCM: |
| 359 |
# command "nc example.org 8765" |
| 360 |
# format "44100:16:2" |
| 361 |
#} |
| 362 |
# |
| 363 |
## An example of a null output (for no audio output): |
| 364 |
# |
| 365 |
#audio_output { |
| 366 |
# type "null" |
| 367 |
# name "My Null Output" |
| 368 |
# mixer_type "none" # optional |
| 369 |
#} |
| 370 |
# |
| 371 |
############################################################################### |
| 372 |
|
| 373 |
|
| 374 |
# Normalization automatic volume adjustments ################################## |
| 375 |
# |
| 376 |
# This setting specifies the type of ReplayGain to use. This setting can have |
| 377 |
# the argument "off", "album", "track" or "auto". "auto" is a special mode that |
| 378 |
# chooses between "track" and "album" depending on the current state of |
| 379 |
# random playback. If random playback is enabled then "track" mode is used. |
| 380 |
# See <https://wiki.hydrogenaud.io/index.php?title=Replaygain> for |
| 381 |
# more details about ReplayGain. |
| 382 |
# This setting is off by default. |
| 383 |
# |
| 384 |
#replaygain "album" |
| 385 |
# |
| 386 |
############################################################################### |
| 387 |
|
| 388 |
# Character Encoding ########################################################## |
| 389 |
# |
| 390 |
# If file or directory names do not display correctly for your locale then you |
| 391 |
# may need to modify this setting. |
| 392 |
# |
| 393 |
#filesystem_charset "UTF-8" |
| 394 |
# |
| 395 |
############################################################################### |