SHOW:
|
|
- or go back to the newest paste.
| 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 | # 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 "/windows/D/Music" | |
| 14 | # | |
| 15 | # This setting sets the MPD internal playlist directory. The purpose of this | |
| 16 | # directory is storage for playlists created by MPD. The server will use | |
| 17 | # playlist files not created by the server but only if they are in the MPD | |
| 18 | # format. This setting defaults to playlist saving being disabled. | |
| 19 | # | |
| 20 | #playlist_directory "~/.mpd/playlists" | |
| 21 | playlist_directory "/var/lib/mpd/playlists" | |
| 22 | # | |
| 23 | # This setting sets the location of the MPD database. This file is used to | |
| 24 | # load the database at server start up and store the database while the | |
| 25 | # server is not up. This setting defaults to disabled which will allow | |
| 26 | # MPD to accept files over ipc socket (using file:// protocol) or streaming | |
| 27 | # files over an accepted protocol. | |
| 28 | # | |
| 29 | #db_file "~/.mpd/database" | |
| 30 | db_file "/var/lib/mpd/mpd.db" | |
| 31 | # | |
| 32 | # These settings are the locations for the daemon log files for the daemon. | |
| 33 | # These logs are great for troubleshooting, depending on your log_level | |
| 34 | # settings. | |
| 35 | # | |
| 36 | # The special value "syslog" makes MPD use the local syslog daemon. This | |
| 37 | # setting defaults to logging to syslog, otherwise logging is disabled. | |
| 38 | # | |
| 39 | #log_file "~/.mpd/log" | |
| 40 | log_file "syslog" | |
| 41 | # | |
| 42 | # This setting sets the location of the file which stores the process ID | |
| 43 | # for use of mpd --kill and some init scripts. This setting is disabled by | |
| 44 | # default and the pid file will not be stored. | |
| 45 | # | |
| 46 | #pid_file "~/.mpd/pid" | |
| 47 | pid_file "/var/lib/mpd/mpd.pid" | |
| 48 | # | |
| 49 | # This setting sets the location of the file which contains information about | |
| 50 | # most variables to get MPD back into the same general shape it was in before | |
| 51 | # it was brought down. This setting is disabled by default and the server | |
| 52 | # state will be reset on server start up. | |
| 53 | # | |
| 54 | #state_file "~/.mpd/state" | |
| 55 | state_file "/var/lib/mpd/mpdstate" | |
| 56 | # | |
| 57 | # The location of the sticker database. This is a database which | |
| 58 | # manages dynamic information attached to songs. | |
| 59 | # | |
| 60 | #sticker_file "~/.mpd/sticker.sql" | |
| 61 | sticker_file "/var/lib/mpd/sticker.sql" | |
| 62 | # | |
| 63 | ############################################################################### | |
| 64 | ||
| 65 | ||
| 66 | # General music daemon options ################################################ | |
| 67 | # | |
| 68 | # This setting specifies the user that MPD will run as. MPD should never run as | |
| 69 | # root and you may use this setting to make MPD change its user ID after | |
| 70 | # initialization. This setting is disabled by default and MPD is run as the | |
| 71 | # current user. | |
| 72 | # | |
| 73 | #user "nobody" | |
| 74 | user "mpd" | |
| 75 | # | |
| 76 | # This setting specifies the group that MPD will run as. If not specified | |
| 77 | # primary group of user specified with "user" setting will be used (if set). | |
| 78 | # This is useful if MPD needs to be a member of group such as "audio" to | |
| 79 | # have permission to use sound card. | |
| 80 | # | |
| 81 | #group "nogroup" | |
| 82 | group "audio" | |
| 83 | # | |
| 84 | # This setting sets the address for the daemon to listen on. Careful attention | |
| 85 | # should be paid if this is assigned to anything other then the default, any. | |
| 86 | # This setting can deny access to control of the daemon. | |
| 87 | # | |
| 88 | # For network | |
| 89 | #bind_to_address "any" | |
| 90 | # | |
| 91 | # And for Unix Socket | |
| 92 | #bind_to_address "~/.mpd/socket" | |
| 93 | # | |
| 94 | # This setting is the TCP port that is desired for the daemon to get assigned | |
| 95 | # to. | |
| 96 | # | |
| 97 | #port "6600" | |
| 98 | # | |
| 99 | # This setting controls the type of information which is logged. Available | |
| 100 | # setting arguments are "default", "secure" or "verbose". The "verbose" setting | |
| 101 | # argument is recommended for troubleshooting, though can quickly stretch | |
| 102 | # available resources on limited hardware storage. | |
| 103 | # | |
| 104 | #log_level "default" | |
| 105 | # | |
| 106 | # If you have a problem with your MP3s ending abruptly it is recommended that | |
| 107 | # you set this argument to "no" to attempt to fix the problem. If this solves | |
| 108 | # the problem, it is highly recommended to fix the MP3 files with vbrfix | |
| 109 | # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which | |
| 110 | # point gapless MP3 playback can be enabled. | |
| 111 | # | |
| 112 | #gapless_mp3_playback "yes" | |
| 113 | # | |
| 114 | # Setting "restore_paused" to "yes" puts MPD into pause mode instead | |
| 115 | # of starting playback after startup. | |
| 116 | # | |
| 117 | #restore_paused "no" | |
| 118 | # | |
| 119 | # This setting enables MPD to create playlists in a format usable by other | |
| 120 | # music players. | |
| 121 | # | |
| 122 | #save_absolute_paths_in_playlists "no" | |
| 123 | # | |
| 124 | # This setting defines a list of tag types that will be extracted during the | |
| 125 | # audio file discovery process. The complete list of possible values can be | |
| 126 | # found in the mpd.conf man page. | |
| 127 | #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" | |
| 128 | # | |
| 129 | # This setting enables automatic update of MPD's database when files in | |
| 130 | # music_directory are changed. | |
| 131 | # | |
| 132 | #auto_update "yes" | |
| 133 | # | |
| 134 | # Limit the depth of the directories being watched, 0 means only watch | |
| 135 | # the music directory itself. There is no limit by default. | |
| 136 | # | |
| 137 | #auto_update_depth "3" | |
| 138 | # | |
| 139 | ############################################################################### | |
| 140 | ||
| 141 | ||
| 142 | # Symbolic link behavior ###################################################### | |
| 143 | # | |
| 144 | # If this setting is set to "yes", MPD will discover audio files by following | |
| 145 | # symbolic links outside of the configured music_directory. | |
| 146 | # | |
| 147 | #follow_outside_symlinks "yes" | |
| 148 | # | |
| 149 | # If this setting is set to "yes", MPD will discover audio files by following | |
| 150 | # symbolic links inside of the configured music_directory. | |
| 151 | # | |
| 152 | #follow_inside_symlinks "yes" | |
| 153 | # | |
| 154 | ############################################################################### | |
| 155 | ||
| 156 | ||
| 157 | # Zeroconf / Avahi Service Discovery ########################################## | |
| 158 | # | |
| 159 | # If this setting is set to "yes", service information will be published with | |
| 160 | # Zeroconf / Avahi. | |
| 161 | # | |
| 162 | #zeroconf_enabled "yes" | |
| 163 | # | |
| 164 | # The argument to this setting will be the Zeroconf / Avahi unique name for | |
| 165 | # this MPD server on the network. | |
| 166 | # | |
| 167 | #zeroconf_name "Music Player" | |
| 168 | # | |
| 169 | ############################################################################### | |
| 170 | ||
| 171 | ||
| 172 | # Permissions ################################################################# | |
| 173 | # | |
| 174 | # If this setting is set, MPD will require password authorization. The password | |
| 175 | # can setting can be specified multiple times for different password profiles. | |
| 176 | # | |
| 177 | #password "password@read,add,control,admin" | |
| 178 | # | |
| 179 | # This setting specifies the permissions a user has who has not yet logged in. | |
| 180 | # | |
| 181 | #default_permissions "read,add,control,admin" | |
| 182 | # | |
| 183 | ############################################################################### | |
| 184 | ||
| 185 | ||
| 186 | # Input ####################################################################### | |
| 187 | # | |
| 188 | ||
| 189 | input {
| |
| 190 | plugin "curl" | |
| 191 | # proxy "proxy.isp.com:8080" | |
| 192 | # proxy_user "user" | |
| 193 | # proxy_password "password" | |
| 194 | } | |
| 195 | ||
| 196 | # | |
| 197 | ############################################################################### | |
| 198 | ||
| 199 | # Audio Output ################################################################ | |
| 200 | # | |
| 201 | # MPD supports various audio output types, as well as playing through multiple | |
| 202 | # audio outputs at the same time, through multiple audio_output settings | |
| 203 | # blocks. Setting this block is optional, though the server will only attempt | |
| 204 | # autodetection for one sound card. | |
| 205 | # | |
| 206 | # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of | |
| 207 | # other audio outputs. | |
| 208 | # | |
| 209 | # An example of an ALSA output: | |
| 210 | # | |
| 211 | #audio_output {
| |
| 212 | - | type "alsa" |
| 212 | + | # type "alsa" |
| 213 | - | name "My ALSA Device" |
| 213 | + | # name "My ALSA Device" |
| 214 | - | device "hw:14,2" # optional |
| 214 | + | # device "hw:14,2" # optional |
| 215 | - | format "44100:16:2" # optional |
| 215 | + | # format "44100:16:2" # optional |
| 216 | # mixer_type "hardware" # optional | |
| 217 | # mixer_device "default" # optional | |
| 218 | # mixer_control "PCM" # optional | |
| 219 | # mixer_index "0" # optional | |
| 220 | } | |
| 221 | # | |
| 222 | # An example of an OSS output: | |
| 223 | # | |
| 224 | #audio_output {
| |
| 225 | # type "oss" | |
| 226 | # name "My OSS Device" | |
| 227 | ## device "/dev/dsp" # optional | |
| 228 | ## format "44100:16:2" # optional | |
| 229 | ## mixer_type "hardware" # optional | |
| 230 | ## mixer_device "/dev/mixer" # optional | |
| 231 | ## mixer_control "PCM" # optional | |
| 232 | #} | |
| 233 | # | |
| 234 | # An example of a shout output (for streaming to Icecast): | |
| 235 | # | |
| 236 | #audio_output {
| |
| 237 | # type "shout" | |
| 238 | # encoding "ogg" # optional | |
| 239 | # name "My Shout Stream" | |
| 240 | # host "localhost" | |
| 241 | # port "8000" | |
| 242 | # mount "/mpd.ogg" | |
| 243 | # password "hackme" | |
| 244 | # quality "5.0" | |
| 245 | # bitrate "128" | |
| 246 | # format "44100:16:1" | |
| 247 | ## protocol "icecast2" # optional | |
| 248 | ## user "source" # optional | |
| 249 | ## description "My Stream Description" # optional | |
| 250 | ## url "http://example.com" # optional | |
| 251 | ## genre "jazz" # optional | |
| 252 | ## public "no" # optional | |
| 253 | ## timeout "2" # optional | |
| 254 | ## mixer_type "software" # optional | |
| 255 | #} | |
| 256 | # | |
| 257 | # An example of a recorder output: | |
| 258 | # | |
| 259 | #audio_output {
| |
| 260 | # type "recorder" | |
| 261 | # name "My recorder" | |
| 262 | # encoder "vorbis" # optional, vorbis or lame | |
| 263 | # path "/var/lib/mpd/recorder/mpd.ogg" | |
| 264 | ## quality "5.0" # do not define if bitrate is defined | |
| 265 | # bitrate "128" # do not define if quality is defined | |
| 266 | # format "44100:16:1" | |
| 267 | #} | |
| 268 | # | |
| 269 | # An example of a httpd output (built-in HTTP streaming server): | |
| 270 | # | |
| 271 | #audio_output {
| |
| 272 | # type "httpd" | |
| 273 | # name "My HTTP Stream" | |
| 274 | # encoder "vorbis" # optional, vorbis or lame | |
| 275 | # port "8000" | |
| 276 | # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6 | |
| 277 | ## quality "5.0" # do not define if bitrate is defined | |
| 278 | # bitrate "128" # do not define if quality is defined | |
| 279 | # format "44100:16:1" | |
| 280 | # max_clients "0" # optional 0=no limit | |
| 281 | #} | |
| 282 | # | |
| 283 | # An example of a pulseaudio output (streaming to a remote pulseaudio server) | |
| 284 | # | |
| 285 | audio_output {
| |
| 286 | - | # type "pulse" |
| 286 | + | type "pulse" |
| 287 | - | # name "My Pulse Output" |
| 287 | + | name "My Pulse Output" |
| 288 | ## server "remote_server" # optional | |
| 289 | ## sink "remote_server_sink" # optional | |
| 290 | #} | |
| 291 | # | |
| 292 | ## Example "pipe" output: | |
| 293 | # | |
| 294 | #audio_output {
| |
| 295 | # type "pipe" | |
| 296 | # name "my pipe" | |
| 297 | # command "aplay -f cd 2>/dev/null" | |
| 298 | ## Or if you're want to use AudioCompress | |
| 299 | # command "AudioCompress -m | aplay -f cd 2>/dev/null" | |
| 300 | ## Or to send raw PCM stream through PCM: | |
| 301 | # command "nc example.org 8765" | |
| 302 | # format "44100:16:2" | |
| 303 | #} | |
| 304 | # | |
| 305 | ## An example of a null output (for no audio output): | |
| 306 | # | |
| 307 | #audio_output {
| |
| 308 | # type "null" | |
| 309 | # name "My Null Output" | |
| 310 | # mixer_type "none" # optional | |
| 311 | #} | |
| 312 | # | |
| 313 | # This setting will change all decoded audio to be converted to the specified | |
| 314 | # format before being passed to the audio outputs. By default, this setting is | |
| 315 | # disabled. | |
| 316 | # | |
| 317 | #audio_output_format "44100:16:2" | |
| 318 | # | |
| 319 | # If MPD has been compiled with libsamplerate support, this setting specifies | |
| 320 | # the sample rate converter to use. Possible values can be found in the | |
| 321 | # mpd.conf man page or the libsamplerate documentation. By default, this is | |
| 322 | # setting is disabled. | |
| 323 | # | |
| 324 | #samplerate_converter "Fastest Sinc Interpolator" | |
| 325 | # | |
| 326 | ############################################################################### | |
| 327 | ||
| 328 | ||
| 329 | # Normalization automatic volume adjustments ################################## | |
| 330 | # | |
| 331 | # This setting specifies the type of ReplayGain to use. This setting can have | |
| 332 | # the argument "off", "album" or "track". See <http://www.replaygain.org> | |
| 333 | # for more details. This setting is off by default. | |
| 334 | # | |
| 335 | #replaygain "album" | |
| 336 | # | |
| 337 | # This setting sets the pre-amp used for files that have ReplayGain tags. By | |
| 338 | # default this setting is disabled. | |
| 339 | # | |
| 340 | #replaygain_preamp "0" | |
| 341 | # | |
| 342 | # This setting enables on-the-fly normalization volume adjustment. This will | |
| 343 | # result in the volume of all playing audio to be adjusted so the output has | |
| 344 | # equal "loudness". This setting is disabled by default. | |
| 345 | # | |
| 346 | #volume_normalization "no" | |
| 347 | # | |
| 348 | ############################################################################### | |
| 349 | ||
| 350 | ||
| 351 | # MPD Internal Buffering ###################################################### | |
| 352 | # | |
| 353 | # This setting adjusts the size of internal decoded audio buffering. Changing | |
| 354 | # this may have undesired effects. Don't change this if you don't know what you | |
| 355 | # are doing. | |
| 356 | # | |
| 357 | #audio_buffer_size "2048" | |
| 358 | # | |
| 359 | # This setting controls the percentage of the buffer which is filled before | |
| 360 | # beginning to play. Increasing this reduces the chance of audio file skipping, | |
| 361 | # at the cost of increased time prior to audio playback. | |
| 362 | # | |
| 363 | #buffer_before_play "10%" | |
| 364 | # | |
| 365 | ############################################################################### | |
| 366 | ||
| 367 | ||
| 368 | # Resource Limitations ######################################################## | |
| 369 | # | |
| 370 | # These settings are various limitations to prevent MPD from using too many | |
| 371 | # resources. Generally, these settings should be minimized to prevent security | |
| 372 | # risks, depending on the operating resources. | |
| 373 | # | |
| 374 | #connection_timeout "60" | |
| 375 | #max_connections "10" | |
| 376 | #max_playlist_length "16384" | |
| 377 | #max_command_list_size "2048" | |
| 378 | #max_output_buffer_size "8192" | |
| 379 | # | |
| 380 | ############################################################################### | |
| 381 | ||
| 382 | # Client TCP keep alive ####################################################### | |
| 383 | # | |
| 384 | # For clients connected by TCP on supported platforms. | |
| 385 | # Allows detection of dangling connections due to clients disappearing from | |
| 386 | # the network without closing their connections. | |
| 387 | # | |
| 388 | # This is not usually necessary but can be useful in cases such as wifi connectected | |
| 389 | # clients that go in and out of network range or turn off wifi without closing their | |
| 390 | # connections. Combined with low max_connections this can soon cause clients to not | |
| 391 | # be able to connect. | |
| 392 | # | |
| 393 | # | |
| 394 | # Enable tcp keepalive on new client connections (default is "no") | |
| 395 | # | |
| 396 | #tcp_keep_alive "no" | |
| 397 | # | |
| 398 | # Time in seconds since the last communication on the connection and before | |
| 399 | # the keepalive probing is started. (default is 7200 seconds) | |
| 400 | #tcp_keep_alive_idle "7200" | |
| 401 | # | |
| 402 | # Interval in seconds between keepalive probes, once a probe started. | |
| 403 | # (default is 75 seconds) | |
| 404 | #tcp_keep_alive_interval "75" | |
| 405 | # | |
| 406 | # Number of failed probes before the connection is pronounced dead and | |
| 407 | # the connection is closed. (default is 9 times) | |
| 408 | #tcp_keep_alive_count "9" | |
| 409 | # | |
| 410 | ############################################################################### | |
| 411 | ||
| 412 | # Character Encoding ########################################################## | |
| 413 | # | |
| 414 | # If file or directory names do not display correctly for your locale then you | |
| 415 | # may need to modify this setting. | |
| 416 | # | |
| 417 | #filesystem_charset "UTF-8" | |
| 418 | filesystem_charset "UTF-8" | |
| 419 | # | |
| 420 | # This setting controls the encoding that ID3v1 tags should be converted from. | |
| 421 | # | |
| 422 | #id3v1_encoding "ISO-8859-1" | |
| 423 | # | |
| 424 | ############################################################################### | |
| 425 | ||
| 426 | ||
| 427 | # SIDPlay decoder ############################################################# | |
| 428 | # | |
| 429 | # songlength_database: | |
| 430 | # Location of your songlengths file, as distributed with the HVSC. | |
| 431 | # The sidplay plugin checks this for matching MD5 fingerprints. | |
| 432 | # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq | |
| 433 | # | |
| 434 | # default_songlength: | |
| 435 | # This is the default playing time in seconds for songs not in the | |
| 436 | # songlength database, or in case you're not using a database. | |
| 437 | # A value of 0 means play indefinitely. | |
| 438 | # | |
| 439 | # filter: | |
| 440 | # Turns the SID filter emulation on or off. | |
| 441 | # | |
| 442 | #decoder {
| |
| 443 | # plugin "sidplay" | |
| 444 | # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt" | |
| 445 | # default_songlength "120" | |
| 446 | # filter "true" | |
| 447 | #} | |
| 448 | # | |
| 449 | ############################################################################### |