Project

General

Profile

mpd.conf

rumcic, 10/24/2010 04:06 AM

Download (11.4 KB)

 
1
# See the mpd.conf man page for a more detailed description of each parameter.
2

    
3

    
4
# Files and directories #######################################################
5
#
6
# This setting controls the top directory which MPD will search to discover the
7
# available audio files and add them to the daemon's online database. This 
8
# setting defaults to the XDG directory, otherwise the music directory will be
9
# be disabled and audio files will only be accepted over ipc socket (using
10
# file:// protocol) or streaming files over an accepted protocol.
11
#
12
music_directory		"~/music"
13
#
14
# This setting sets the MPD internal playlist directory. The purpose of this
15
# directory is storage for playlists created by MPD. The server will use 
16
# playlist files not created by the server but only if they are in the MPD
17
# format. This setting defaults to playlist saving being disabled.
18
#
19
playlist_directory		"~/.mpd/playlists"
20
#
21
# This setting sets the location of the MPD database. This file is used to
22
# load the database at server start up and store the database while the 
23
# server is not up. This setting defaults to disabled which will allow
24
# MPD to accept files over ipc socket (using file:// protocol) or streaming
25
# files over an accepted protocol.
26
#
27
db_file			"~/.mpd/database"
28
# 
29
# These settings are the locations for the daemon log files for the daemon.
30
# These logs are great for troubleshooting, depending on your log_level
31
# settings.
32
#
33
# The special value "syslog" makes MPD use the local syslog daemon. This
34
# setting defaults to logging to syslog, otherwise logging is disabled.
35
#
36
log_file			"~/.mpd/log"
37
#
38
# This setting sets the location of the file which stores the process ID
39
# for use of mpd --kill and some init scripts. This setting is disabled by
40
# default and the pid file will not be stored.
41
#
42
pid_file			"~/.mpd/pid"
43
#
44
# This setting sets the location of the file which contains information about
45
# most variables to get MPD back into the same general shape it was in before
46
# it was brought down. This setting is disabled by default and the server 
47
# state will be reset on server start up.
48
#
49
state_file			"~/.mpd/state"
50
#
51
###############################################################################
52

    
53

    
54
# General music daemon options ################################################
55
#
56
# This setting specifies the user that MPD will run as. MPD should never run as
57
# root and you may use this setting to make MPD change its user ID after
58
# initialization. This setting is disabled by default and MPD is run as the
59
# current user.
60
#
61
#user				"nobody"
62
#
63
# This setting sets the address for the daemon to listen on. Careful attention
64
# should be paid if this is assigned to anything other then the default, any.
65
# This setting can deny access to control of the daemon.
66
#
67
# For network
68
#bind_to_address		"any"
69
#
70
# And for Unix Socket
71
#bind_to_address		"~/.mpd/socket"
72
#
73
# This setting is the TCP port that is desired for the daemon to get assigned
74
# to.
75
#
76
#port				"6600"
77
#
78
# This setting controls the type of information which is logged. Available 
79
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
80
# argument is recommended for troubleshooting, though can quickly stretch
81
# available resources on limited hardware storage.
82
#
83
#log_level			"default"
84
#
85
# If you have a problem with your MP3s ending abruptly it is recommended that 
86
# you set this argument to "no" to attempt to fix the problem. If this solves
87
# the problem, it is highly recommended to fix the MP3 files with vbrfix
88
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
89
# point gapless MP3 playback can be enabled.
90
#
91
#gapless_mp3_playback			"yes"
92
#
93
# This setting enables MPD to create playlists in a format usable by other
94
# music players.
95
#
96
#save_absolute_paths_in_playlists	"no"
97
#
98
# This setting defines a list of tag types that will be extracted during the 
99
# audio file discovery process. Optionally, 'comment' can be added to this
100
# list.
101
#
102
#metadata_to_use	"artist,album,title,track,name,genre,date,composer,performer,disc"
103
#
104
###############################################################################
105

    
106

    
107
# Symbolic link behavior ######################################################
108
#
109
# If this setting is set to "yes", MPD will discover audio files by following 
110
# symbolic links outside of the configured music_directory.
111
#
112
follow_outside_symlinks	"yes"
113
#
114
# If this setting is set to "yes", MPD will discover audio files by following
115
# symbolic links inside of the configured music_directory.
116
#
117
follow_inside_symlinks		"yes"
118
#
119
###############################################################################
120

    
121

    
122
# Zeroconf / Avahi Service Discovery ##########################################
123
#
124
# If this setting is set to "yes", service information will be published with
125
# Zeroconf / Avahi.
126
#
127
#zeroconf_enabled		"yes"
128
#
129
# The argument to this setting will be the Zeroconf / Avahi unique name for
130
# this MPD server on the network.
131
#
132
#zeroconf_name			"Music Player"
133
#
134
###############################################################################
135

    
136

    
137
# Permissions #################################################################
138
#
139
# If this setting is set, MPD will require password authorization. The password
140
# can setting can be specified multiple times for different password profiles.
141
#
142
#password                        "password@read,add,control,admin"
143
#
144
# This setting specifies the permissions a user has who has not yet logged in. 
145
#
146
#default_permissions             "read,add,control,admin"
147
#
148
###############################################################################
149

    
150

    
151
# Input #######################################################################
152
#
153

    
154
input {
155
        plugin "curl"
156
#       proxy "proxy.isp.com:8080"
157
#       proxy_user "user"
158
#       proxy_password "password"
159
}
160

    
161
#
162
###############################################################################
163

    
164
# Audio Output ################################################################
165
#
166
# MPD supports various audio output types, as well as playing through multiple 
167
# audio outputs at the same time, through multiple audio_output settings 
168
# blocks. Setting this block is optional, though the server will only attempt
169
# autodetection for one sound card.
170
#
171
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of 
172
# other audio outputs.
173
#
174
# An example of an OSS output:
175
#
176
audio_output {
177
	type		"oss"
178
	name		"My OSS Device"
179
	device		"/dev/dsp0"	# optional
180
#	format		"44100:16:2"	# optional
181
	mixer_device	"/dev/mixer"	# optional
182
	mixer_control	"PCM"		# optional
183
}
184
#
185
# An example of a shout output (for streaming to Icecast):
186
#
187
#audio_output {
188
#	type		"shout"
189
#	encoding	"ogg"			# optional
190
#	name		"My Shout Stream"
191
#	host		"localhost"
192
#	port		"8000"
193
#	mount		"/mpd.ogg"
194
#	password	"hackme"
195
#	quality		"5.0"
196
#	bitrate		"128"
197
#	format		"44100:16:1"
198
#	protocol	"icecast2"		# optional
199
#	user		"source"		# optional
200
#	description	"My Stream Description"	# optional
201
#	genre		"jazz"			# optional
202
#	public		"no"			# optional
203
#	timeout		"2"			# optional
204
#}
205
#
206
# An example of a httpd output (built-in HTTP streaming server):
207
#
208
#audio_output {
209
#	type		"httpd"
210
#	name		"My HTTP Stream"
211
#	encoder		"vorbis"		# optional, vorbis or lame
212
#	port		"8000"
213
#	quality		"5.0"			# do not define if bitrate is defined
214
#	bitrate		"128"			# do not define if quality is defined
215
#	format		"44100:16:1"
216
#}
217
#
218
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
219
#
220
#audio_output {
221
#	type		"pulse"
222
#	name		"My Pulse Output"
223
#	server		"remote_server"		# optional
224
#	sink		"remote_server_sink"	# optional
225
#}
226
#
227
# This setting will change all decoded audio to be converted to the specified
228
# format before being passed to the audio outputs. By default, this setting is
229
# disabled.
230
#
231
#audio_output_format		"44100:16:2"
232
#
233
# If MPD has been compiled with libsamplerate support, this setting specifies 
234
# the sample rate converter to use.  Possible values can be found in the 
235
# mpd.conf man page or the libsamplerate documentation. By default, this is
236
# setting is disabled.
237
#
238
#samplerate_converter		"Fastest Sinc Interpolator"
239
#
240
###############################################################################
241

    
242

    
243
# Volume control mixer ########################################################
244
#
245
# These are the global volume control settings. By default, this setting will
246
# be detected to the available audio output device, with preference going to 
247
# hardware mixing. Hardware and software mixers for individual audio_output
248
# sections cannot yet be mixed.
249
#
250
# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
251
# setting is used other sound applications will be affected by the volume
252
# being controlled by MPD.
253
#
254
#mixer_type			"hardware"
255
#
256
# An example for controlling all mixers through software. This will control
257
# all controls, even if the mixer is not supported by the device and will not
258
# affect any other sound producing applications.
259
#
260
mixer_type			"software"
261
#
262
# This example will not allow MPD to touch the mixer at all and will disable
263
# all volume controls.
264
#
265
#mixer_type			"disabled"
266
#
267
###############################################################################
268

    
269

    
270
# Normalization automatic volume adjustments ##################################
271
#
272
# This setting specifies the type of ReplayGain to use. This setting can have
273
# the argument "album" or "track". See <http://www.replaygain.org> for more
274
# details. This setting is disabled by default.
275
#
276
#replaygain			"album"
277
#
278
# This setting sets the pre-amp used for files that have ReplayGain tags. By
279
# default this setting is disabled.
280
#
281
#replaygain_preamp		"0"
282
#
283
# This setting enables on-the-fly normalization volume adjustment. This will
284
# result in the volume of all playing audio to be adjusted so the output has 
285
# equal "loudness". This setting is disabled by default.
286
#
287
volume_normalization		"yes"
288
#
289
###############################################################################
290

    
291

    
292
# MPD Internal Buffering ######################################################
293
#
294
# This setting adjusts the size of internal decoded audio buffering. Changing
295
# this may have undesired effects. Don't change this if you don't know what you
296
# are doing.
297
#
298
#audio_buffer_size		"2048"
299
#
300
# This setting controls the percentage of the buffer which is filled before 
301
# beginning to play. Increasing this reduces the chance of audio file skipping, 
302
# at the cost of increased time prior to audio playback.
303
#
304
#buffer_before_play		"10%"
305
#
306
###############################################################################
307

    
308

    
309
# Resource Limitations ########################################################
310
#
311
# These settings are various limitations to prevent MPD from using too many
312
# resources. Generally, these settings should be minimized to prevent security
313
# risks, depending on the operating resources.
314
#
315
#connection_timeout		"60"
316
max_connections		"10"
317
#max_playlist_length		"16384"
318
#max_command_list_size		"2048"
319
#max_output_buffer_size		"8192"
320
#
321
###############################################################################
322

    
323

    
324
# Character Encoding ##########################################################
325
#
326
# If file or directory names do not display correctly for your locale then you 
327
# may need to modify this setting. After modification of this setting mpd 
328
# --create-db must be run to change the database.
329
#
330
#filesystem_charset		"UTF-8"
331
#
332
# This setting controls the encoding that ID3v1 tags should be converted from.
333
#
334
#id3v1_encoding			"ISO-8859-1"
335
#
336
###############################################################################
337