mpdconf.example 5.4 KB
Newer Older
1 2 3 4
# MPD CONFIG FILE
# For a full description of all config parameters,
# Check the mpd man page, "man mpd".

Warren Dukes's avatar
Warren Dukes committed
5
##################### REQUIRED ###########################
6
music_directory 	"~/music"
7 8
playlist_directory 	"~/music"
db_file 		"~/.mpd/mpd.db"
9 10
log_file 		"~/.mpd/mpd.log"
error_file 		"~/.mpd/mpd.error"
11
pid_file 		"~/.mpd/mpd.pid"
Warren Dukes's avatar
Warren Dukes committed
12
##########################################################
13

Warren Dukes's avatar
Warren Dukes committed
14
##########################################################
15
# EVERYTHING ELSE IS OPTIONAL
Warren Dukes's avatar
Warren Dukes committed
16
##########################################################
17

18
################## AUDIO OUTPUT ##########################
Warren Dukes's avatar
Warren Dukes committed
19
#
20
# use this if you want to use OSS audio output
Warren Dukes's avatar
Warren Dukes committed
21
#audio_output {
22
#	type		"oss"
23
#	name		"my OSS sound card"
24
#	device	 	"/dev/dsp" # optional
25
#	format		"44100:16:2" #optional
Warren Dukes's avatar
Warren Dukes committed
26
#} 
27
#
28
# use this if you want to use ALSA audio output
Warren Dukes's avatar
Warren Dukes committed
29
#audio_output {
30
#	type		"alsa"
31
#	name		"my ALSA device"
32
#	device		"hw:0,0" # optional
33
#	format		"44100:16:2" #optional
Warren Dukes's avatar
Warren Dukes committed
34 35 36 37 38 39 40
#} 
#
# as a last resort, try using libao
#audio_output {
#	type		"ao"
#	name		"default ao output"
#} 
41
#
Warren Dukes's avatar
Warren Dukes committed
42
#
43 44 45 46
# Set this if you have problems 
# playing audio files.
# This will resample your music so
# that it comes out at the set rate. 
Warren Dukes's avatar
Warren Dukes committed
47
#
48
#audio_output_format	"44100:16:2"
Warren Dukes's avatar
Warren Dukes committed
49 50
#
##########################################################
51 52


Warren Dukes's avatar
Warren Dukes committed
53 54 55 56
################### VOLUME MIXER #########################
#
# Examples:
# ALSA Mixer 
Warren Dukes's avatar
Warren Dukes committed
57 58 59
#mixer_type		"alsa"
#mixer_device		"default"
#mixer_control		"PCM"
Warren Dukes's avatar
Warren Dukes committed
60 61 62 63 64 65 66
#
# OSS Mixer
#mixer_type		"oss"
#mixer_device 		"/dev/mixer"
#mixer_control		"PCM"
#
# Software Mixer
67
#mixer_type		"software"
Warren Dukes's avatar
Warren Dukes committed
68 69
#
##########################################################
70 71


72 73 74 75
################# SHOUT STREAMING ########################
#
# Set this to allow mpd to stream its output to icecast2
# (i.e. mpd is a icecast2 source)
Warren Dukes's avatar
Warren Dukes committed
76
#
77 78 79 80 81
#audio_output {
#	type		"shout"
#	name		"my cool stream"
#	host		"hostname"
#	port		"8000"
Warren Dukes's avatar
Warren Dukes committed
82
#	mount		"/mpd.ogg"
83
#	password	"hackme"
Warren Dukes's avatar
Warren Dukes committed
84 85
#	quality		"5.0"	
#	bitrate		"128"
86
#	format		"44100:16:1"
87 88 89 90 91
#
# Optional Paramters
#	user		"source"
#	description	"here's my long descriptiion"
#       genre		"jazz"
92
#} # end of audio_output
Warren Dukes's avatar
Warren Dukes committed
93 94 95
#
##########################################################

96 97 98 99 100 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 127 128

################# 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
#
#filesystem_charset "ISO-8859-1"
#
##########################################################


#################### OPTIONAL FILES ######################
#
# 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.
#
#state_file		"~/.mpd/mpdstate"
#
##########################################################


Warren Dukes's avatar
Warren Dukes committed
129 130 131 132 133
################# REPLAYGAIN #############################
#
# Use Replay Gain (album or title)
#	http://www.replaygain.org
#
134
#replaygain		"album"
Warren Dukes's avatar
Warren Dukes committed
135 136 137 138 139 140 141
#
# Sets the pre-amp used for files that have replaygain
# info.  Valid values are between -15 to 15 (in dB).
#
#replaygain_preamp	"0"
#
##########################################################
142

143

Warren Dukes's avatar
Warren Dukes committed
144 145 146 147 148
################ OUTPUT BUFFER SETTINGS ##################
#
# You should not need to mess with this
# unless you know what you're doing.
#
149
#audio_buffer_size	"2048"
Warren Dukes's avatar
Warren Dukes committed
150 151 152 153 154
#
# This means exactly what it says, it will
# buffer your file up to the percentage of
# the buffer before it begins playing.
#
155
#buffer_before_play 	"25%"
Warren Dukes's avatar
Warren Dukes committed
156 157
#
##########################################################
158

159

Warren Dukes's avatar
Warren Dukes committed
160 161
################### HTTP PROXY ###########################
#
162 163 164 165
# http_proxy_host	"proxy.isp.com"
# http_proxy_port	"8080"
# http_proxy_user	"user"
# http_proxy_password	"password"
Warren Dukes's avatar
Warren Dukes committed
166 167
#
##########################################################
168 169


Warren Dukes's avatar
Warren Dukes committed
170 171 172 173 174 175 176 177
################# 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.
#
178
#user 		"nobody"
Warren Dukes's avatar
Warren Dukes committed
179 180 181 182
#
# Set this value if you only have one 
# address you want to allow connection to. 
#
183
#bind_to_address 	"localhost"
Warren Dukes's avatar
Warren Dukes committed
184 185 186 187
#
# If you want to setup MPD to use 
# passwords set them here
#
188 189
#password 		"password1@read,add,control,admin"
#password 		"password2@read"
Warren Dukes's avatar
Warren Dukes committed
190
#
191
# Specify permissions used by default when no password is 
Warren Dukes's avatar
Warren Dukes committed
192 193
# given by for a connection/client.
#
Warren Dukes's avatar
Warren Dukes committed
194
#default_permissions	"read,add,control,admin"
Warren Dukes's avatar
Warren Dukes committed
195
#
196 197
##########################################

198

Warren Dukes's avatar
Warren Dukes committed
199 200
################ MISCELLANEOUS OPTIONS ###################
#
201 202
#port	"6600"
#
203
# This sets the metadata mpd will use, to disable all metadata, set to "none"
204
# NOTE: comments are disabled by default
205
#
206
#metadata_to_use "artist,album,title,genre,date,track,composer,performer,comment"
207
#
Warren Dukes's avatar
Warren Dukes committed
208 209
# This setting exists as precaution against attacks.
#
210
#max_playlist_length 	"16384"
Warren Dukes's avatar
Warren Dukes committed
211 212 213 214
#
# Valid options are "default", "secure" or "verbose".
#log_level		"default"
#
215
#connection_timeout 	"60"
Warren Dukes's avatar
Warren Dukes committed
216 217 218 219
#
# This should be fine for 2-3 people using clients 
# at the same time.
#
220
#max_connections 	"5"
Warren Dukes's avatar
Warren Dukes committed
221 222 223
#
# No need to change these unless you know better.
#
224
#max_command_list_size 	"2048"
225
#max_output_buffer_size "8192"
Warren Dukes's avatar
Warren Dukes committed
226 227 228 229
#
# This will make playlists compatible with normal music
# players.
#
230
#save_absolute_paths_in_playlists "no"
Warren Dukes's avatar
Warren Dukes committed
231 232
#
##########################################################