dotfiles

Configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

mpd.conf (14360B)


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