2004-03-24 01:42:03 +01:00
|
|
|
# MPD CONFIG FILE
|
|
|
|
# For a full description of all config parameters,
|
|
|
|
# Check the mpd man page, "man mpd".
|
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
##################### REQUIRED ###########################
|
2004-06-02 03:48:26 +02:00
|
|
|
port "6600"
|
2004-03-24 01:48:19 +01:00
|
|
|
music_directory "~/music"
|
2004-03-24 01:58:47 +01:00
|
|
|
playlist_directory "~/.mpd/playlists"
|
|
|
|
log_file "~/.mpd/mpd.log"
|
|
|
|
error_file "~/.mpd/mpd.error"
|
2004-07-18 14:48:17 +02:00
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
# EVERYTHING ELSE IS OPTIONAL
|
2004-07-18 14:48:17 +02:00
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################# FILESYSTEM SETTINGS ####################
|
|
|
|
#
|
|
|
|
# If the names of files or directories are
|
|
|
|
# not correctly displayed then set the
|
|
|
|
# following to the filesystem coding.
|
|
|
|
#
|
|
|
|
# Usually this is either:
|
|
|
|
# ISO-8859-1 or UTF-8
|
|
|
|
#
|
|
|
|
# After changing the filesystem_charset
|
|
|
|
# you will need to recreate the db:
|
|
|
|
# mpd --create-db
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#filesystem_charset "ISO-8859-1"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
#################### OPTIONAL FILES ######################
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
# Location of DB file
|
|
|
|
#
|
2004-07-18 14:48:17 +02:00
|
|
|
#db_file "~/.mpd/mpd.db"
|
|
|
|
#
|
|
|
|
# The state file (if set) will be a file
|
|
|
|
# for storing all current information
|
|
|
|
# (playlist, playing/paused, etc...) from
|
|
|
|
# the last MPD session. This will be used
|
|
|
|
# to recreate your last MPD session after
|
|
|
|
# restart.
|
|
|
|
#
|
2004-03-24 01:58:47 +01:00
|
|
|
#state_file "~/.mpd/mpdstate"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################### VOLUME MIXER #########################
|
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
# ALSA Mixer
|
2004-02-24 00:41:20 +01:00
|
|
|
#mixer_type "alsa"
|
|
|
|
#mixer_device "default"
|
|
|
|
#mixer_control "PCM"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# OSS Mixer
|
|
|
|
#mixer_type "oss"
|
|
|
|
#mixer_device "/dev/mixer"
|
|
|
|
#mixer_control "PCM"
|
|
|
|
#
|
|
|
|
# Software Mixer
|
2004-03-24 01:37:54 +01:00
|
|
|
#mixer_type "software"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################## AUDIO OUTPUT ##########################
|
|
|
|
#
|
2004-10-26 19:40:57 +02:00
|
|
|
# libao (ao_driver) supports any of the following:
|
|
|
|
# Refer to libao documentation for more information
|
|
|
|
#
|
2004-07-18 14:48:17 +02:00
|
|
|
# OSS Audio Output
|
2004-10-28 07:14:55 +02:00
|
|
|
#audio_output {
|
|
|
|
# type "ao"
|
|
|
|
# name "my OSS device"
|
|
|
|
# driver "oss"
|
|
|
|
# options "dsp=/dev/dsp"
|
|
|
|
# write_size "1024"
|
|
|
|
#}
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# ALSA Audio Output
|
2004-10-28 07:14:55 +02:00
|
|
|
#audio_output {
|
|
|
|
# type "ao"
|
|
|
|
# name "my ALSA device"
|
|
|
|
# driver "alsa09"
|
|
|
|
# options "dev=hw:0,0"
|
|
|
|
# write_size "1024"
|
|
|
|
#}
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# Set this if you have problems
|
|
|
|
# playing audio files.
|
|
|
|
# This will resample your music so
|
|
|
|
# that it comes out at the set rate.
|
|
|
|
#
|
|
|
|
#audio_output_format "44100:16:2"
|
|
|
|
#
|
2004-10-28 07:14:55 +02:00
|
|
|
##########################################################
|
|
|
|
|
|
|
|
|
|
|
|
################# SHOUT STREAMING ########################
|
|
|
|
#
|
|
|
|
# Set this to allow mpd to stream its output to icecast2
|
|
|
|
# (i.e. mpd is a icecast2 source)
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2004-10-28 07:14:55 +02:00
|
|
|
#audio_output {
|
|
|
|
# type "shout"
|
|
|
|
# name "my cool stream"
|
|
|
|
# host "hostname"
|
|
|
|
# port "8000"
|
|
|
|
# user "source"
|
|
|
|
# password "hackme"
|
|
|
|
# quality "5.0"
|
|
|
|
# format "44100:16:1"
|
|
|
|
#}
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|
|
|
|
|
|
|
|
################# REPLAYGAIN #############################
|
|
|
|
#
|
|
|
|
# Use Replay Gain (album or title)
|
|
|
|
# http://www.replaygain.org
|
|
|
|
#
|
2004-06-12 23:27:15 +02:00
|
|
|
#replaygain "album"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# Sets the pre-amp used for files that have replaygain
|
|
|
|
# info. Valid values are between -15 to 15 (in dB).
|
|
|
|
#
|
|
|
|
#replaygain_preamp "0"
|
|
|
|
#
|
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-03-24 01:42:47 +01:00
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################ OUTPUT BUFFER SETTINGS ##################
|
|
|
|
#
|
|
|
|
# You should not need to mess with this
|
|
|
|
# unless you know what you're doing.
|
|
|
|
#
|
2004-06-12 23:27:15 +02:00
|
|
|
#audio_buffer_size "2048"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# This means exactly what it says, it will
|
|
|
|
# buffer your file up to the percentage of
|
|
|
|
# the buffer before it begins playing.
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#buffer_before_play "25%"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|
2004-03-24 01:37:54 +01:00
|
|
|
|
2004-03-24 01:42:47 +01:00
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################### HTTP PROXY ###########################
|
|
|
|
#
|
2004-06-23 13:52:25 +02:00
|
|
|
# http_proxy_host "proxy.isp.com"
|
|
|
|
# http_proxy_port "8080"
|
|
|
|
# http_proxy_user "user"
|
|
|
|
# http_proxy_password "password"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|
2004-06-23 13:52:25 +02:00
|
|
|
|
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################# SECURITY SETTINGS ######################
|
|
|
|
#
|
|
|
|
# It is encouraged to run MPD as
|
|
|
|
# non-superuser. If you start mpd as root
|
|
|
|
# (for example, in an init script), set
|
|
|
|
# this value, then mpd will drop root priveleges
|
|
|
|
# and runs as the user specified.
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#user "nobody"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# Set this value if you only have one
|
|
|
|
# address you want to allow connection to.
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#bind_to_address "localhost"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# If you want to setup MPD to use
|
|
|
|
# passwords set them here
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#password "password1@read,add,control,admin"
|
|
|
|
#password "password2@read"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
# Specify permissions used by default when no password is
|
2004-07-18 14:48:17 +02:00
|
|
|
# given by for a connection/client.
|
|
|
|
#
|
2004-02-24 07:14:16 +01:00
|
|
|
#default_permissions "read,add,control,admin"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
##########################################
|
|
|
|
|
2004-03-24 01:42:47 +01:00
|
|
|
|
2004-07-18 14:48:17 +02:00
|
|
|
################ MISCELLANEOUS OPTIONS ###################
|
|
|
|
#
|
|
|
|
# This setting exists as precaution against attacks.
|
|
|
|
#
|
2004-04-04 09:08:00 +02:00
|
|
|
#max_playlist_length "16384"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# Valid options are "default", "secure" or "verbose".
|
|
|
|
#log_level "default"
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#connection_timeout "60"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# This should be fine for 2-3 people using clients
|
|
|
|
# at the same time.
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#max_connections "5"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
# No need to change these unless you know better.
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#max_command_list_size "2048"
|
2004-07-18 14:48:17 +02:00
|
|
|
#max_output_buffer_size "2048"
|
|
|
|
#
|
|
|
|
# This will make playlists compatible with normal music
|
|
|
|
# players.
|
|
|
|
#
|
2004-03-24 01:37:54 +01:00
|
|
|
#save_absolute_paths_in_playlists "no"
|
2004-07-18 14:48:17 +02:00
|
|
|
#
|
|
|
|
##########################################################
|