mpdconf.example 5.77 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
# Optional Parameters
89
#	user		"source"
J. Alexander Treuman's avatar
J. Alexander Treuman committed
90
#	description	"here's my long description"
91
#       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"
#
##########################################################


129
################# Normalization ##########################
Warren Dukes's avatar
Warren Dukes committed
130
#
131
# Use Replay Gain (album or track)
Warren Dukes's avatar
Warren Dukes committed
132 133
#	http://www.replaygain.org
#
134
#replaygain		"album"
Warren Dukes's avatar
Warren Dukes committed
135 136 137 138 139 140
#
# Sets the pre-amp used for files that have replaygain
# info.  Valid values are between -15 to 15 (in dB).
#
#replaygain_preamp	"0"
#
141 142 143 144 145 146 147
# Normalization increases the amplitude of the audio
# waveform to the maximum level without introducing any 
# distortion into the recording. This option will 
# normalize when replaygain is not on, utilizing the 
# CPU for calculation.
#
#volume_normalization	"yes"
Warren Dukes's avatar
Warren Dukes committed
148
##########################################################
149

150

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

166

Warren Dukes's avatar
Warren Dukes committed
167 168
################### HTTP PROXY ###########################
#
169 170 171 172
# 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
173 174
#
##########################################################
175 176


Warren Dukes's avatar
Warren Dukes committed
177 178 179 180 181
################# SECURITY SETTINGS ######################
#
# It is encouraged to run MPD as 
# non-superuser.  If you start mpd as root
# (for example, in an init script), set
182
# this value, then mpd will drop root privileges
Warren Dukes's avatar
Warren Dukes committed
183 184
# and runs as the user specified.
#
185
#user 		"nobody"
Warren Dukes's avatar
Warren Dukes committed
186 187 188 189
#
# Set this value if you only have one 
# address you want to allow connection to. 
#
190
#bind_to_address 	"localhost"
Warren Dukes's avatar
Warren Dukes committed
191 192 193 194
#
# If you want to setup MPD to use 
# passwords set them here
#
195 196
#password 		"password1@read,add,control,admin"
#password 		"password2@read"
Warren Dukes's avatar
Warren Dukes committed
197
#
198
# Specify permissions used by default when no password is 
Warren Dukes's avatar
Warren Dukes committed
199 200
# given by for a connection/client.
#
Warren Dukes's avatar
Warren Dukes committed
201
#default_permissions	"read,add,control,admin"
Warren Dukes's avatar
Warren Dukes committed
202
#
203 204
##########################################

205

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