SHOW:
|
|
- or go back to the newest paste.
1 | # An example configuration file for MPD | |
2 | # See the mpd.conf man page for a more detailed description of each parameter. | |
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 "home/tristan/music" |
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 "home/tristan/.mpd/playlists" |
20 | + | playlist_directory "~/.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 "/home/tristan/.mpd/tag_cache" |
28 | + | db_file "~/.mpd/mpd.db" |
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 "/home/tristan/.mpd/mpd.log" |
37 | + | log_file "~/.mpd/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 "/home/tristan/.mpd/mpd.pid" |
43 | + | pid_file "~/.mpd/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 "/home/tristan/.mpd/mpdstate" |
50 | + | state_file "~/.mpd/mpdstate" |
51 | # | |
52 | # The location of the sticker database. This is a database which | |
53 | # manages dynamic information attached to songs. | |
54 | # | |
55 | sticker_file "/var/lib/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 "mpd" |
67 | + | user "tristan" |
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. Choose any if you want | |
79 | # to have mpd listen on every address | |
80 | # | |
81 | # For network | |
82 | bind_to_address "localhost" | |
83 | # | |
84 | # And for Unix Socket | |
85 | #bind_to_address "/var/run/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 as vbrfix in the debian archive), at which | |
103 | # point gapless MP3 playback can be enabled. | |
104 | # | |
105 | #gapless_mp3_playback "yes" | |
106 | # | |
107 | # This setting enables MPD to create playlists in a format usable by other | |
108 | # music players. | |
109 | # | |
110 | #save_absolute_paths_in_playlists "no" | |
111 | # | |
112 | # This setting defines a list of tag types that will be extracted during the | |
113 | # audio file discovery process. Optionally, 'comment' can be added to this | |
114 | # list. | |
115 | # | |
116 | #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" | |
117 | # | |
118 | # This setting enables automatic update of MPD's database when files in | |
119 | # music_directory are changed. | |
120 | # | |
121 | #auto_update "yes" | |
122 | # | |
123 | # Limit the depth of the directories being watched, 0 means only watch | |
124 | # the music directory itself. There is no limit by default. | |
125 | # | |
126 | #auto_update_depth "3" | |
127 | # | |
128 | ############################################################################### | |
129 | ||
130 | ||
131 | # Symbolic link behavior ###################################################### | |
132 | # | |
133 | # If this setting is set to "yes", MPD will discover audio files by following | |
134 | # symbolic links outside of the configured music_directory. | |
135 | # | |
136 | #follow_outside_symlinks "yes" | |
137 | # | |
138 | # If this setting is set to "yes", MPD will discover audio files by following | |
139 | # symbolic links inside of the configured music_directory. | |
140 | # | |
141 | #follow_inside_symlinks "yes" | |
142 | # | |
143 | ############################################################################### | |
144 | ||
145 | ||
146 | # Zeroconf / Avahi Service Discovery ########################################## | |
147 | # | |
148 | # If this setting is set to "yes", service information will be published with | |
149 | # Zeroconf / Avahi. | |
150 | # | |
151 | #zeroconf_enabled "yes" | |
152 | # | |
153 | # The argument to this setting will be the Zeroconf / Avahi unique name for | |
154 | # this MPD server on the network. | |
155 | # | |
156 | #zeroconf_name "Music Player" | |
157 | # | |
158 | ############################################################################### | |
159 | ||
160 | ||
161 | # Permissions ################################################################# | |
162 | # | |
163 | # If this setting is set, MPD will require password authorization. The password | |
164 | # can setting can be specified multiple times for different password profiles. | |
165 | # | |
166 | #password "password@read,add,control,admin" | |
167 | # | |
168 | # This setting specifies the permissions a user has who has not yet logged in. | |
169 | # | |
170 | #default_permissions "read,add,control,admin" | |
171 | # | |
172 | ############################################################################### | |
173 | ||
174 | ||
175 | # Input ####################################################################### | |
176 | # | |
177 | ||
178 | input { | |
179 | plugin "curl" | |
180 | # proxy "proxy.isp.com:8080" | |
181 | # proxy_user "user" | |
182 | # proxy_password "password" | |
183 | } | |
184 | ||
185 | # | |
186 | ############################################################################### | |
187 | ||
188 | # Audio Output ################################################################ | |
189 | # | |
190 | # MPD supports various audio output types, as well as playing through multiple | |
191 | # audio outputs at the same time, through multiple audio_output settings | |
192 | # blocks. Setting this block is optional, though the server will only attempt | |
193 | # autodetection for one sound card. | |
194 | # | |
195 | # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of | |
196 | # other audio outputs. | |
197 | # | |
198 | # An example of an ALSA output: | |
199 | # | |
200 | audio_output { | |
201 | type "pulse" | |
202 | - | name "MPD" |
202 | + | name "My MPD PulseAudio Output" |
203 | device "hw:0,0" # optional | |
204 | format "44100:16:2" # optional | |
205 | mixer_device "default" # optional | |
206 | mixer_control "PCM" # optional | |
207 | mixer_index "0" # optional | |
208 | } | |
209 | # | |
210 | # An example of an OSS output: | |
211 | # | |
212 | #audio_output { | |
213 | # type "oss" | |
214 | # name "My OSS Device" | |
215 | # device "/dev/dsp" # optional | |
216 | # format "44100:16:2" # optional | |
217 | # mixer_device "/dev/mixer" # optional | |
218 | # mixer_control "PCM" # optional | |
219 | #} | |
220 | # | |
221 | # An example of a shout output (for streaming to Icecast): | |
222 | # | |
223 | #audio_output { | |
224 | # type "shout" | |
225 | # encoding "ogg" # optional | |
226 | # name "My Shout Stream" | |
227 | # host "localhost" | |
228 | # port "8000" | |
229 | # mount "/mpd.ogg" | |
230 | # password "hackme" | |
231 | # quality "5.0" | |
232 | # bitrate "128" | |
233 | # format "44100:16:1" | |
234 | # protocol "icecast2" # optional | |
235 | # user "source" # optional | |
236 | # description "My Stream Description" # optional | |
237 | # genre "jazz" # optional | |
238 | # public "no" # optional | |
239 | # timeout "2" # optional | |
240 | #} | |
241 | # | |
242 | # An example of a recorder output: | |
243 | # | |
244 | #audio_output { | |
245 | # type "recorder" | |
246 | # name "My recorder" | |
247 | # encoder "vorbis" # optional, vorbis or lame | |
248 | # path "/var/lib/mpd/recorder/mpd.ogg" | |
249 | ## quality "5.0" # do not define if bitrate is defined | |
250 | # bitrate "128" # do not define if quality is defined | |
251 | # format "44100:16:1" | |
252 | #} | |
253 | # | |
254 | # An example of a httpd output (built-in HTTP streaming server): | |
255 | # | |
256 | #audio_output { | |
257 | # type "httpd" | |
258 | # name "My HTTP Stream" | |
259 | # encoder "vorbis" # optional, vorbis or lame | |
260 | # port "8000" | |
261 | # quality "5.0" # do not define if bitrate is defined | |
262 | # bitrate "128" # do not define if quality is defined | |
263 | # format "44100:16:1" | |
264 | #} | |
265 | # | |
266 | # An example of a pulseaudio output (streaming to a remote pulseaudio server) | |
267 | # | |
268 | #audio_output { | |
269 | # type "pulse" | |
270 | # name "My Pulse Output" | |
271 | # server "remote_server" # optional | |
272 | # sink "remote_server_sink" # optional | |
273 | #} | |
274 | # | |
275 | ## Example "pipe" output: | |
276 | # | |
277 | #audio_output { | |
278 | # type "pipe" | |
279 | # name "my pipe" | |
280 | # command "aplay -f cd 2>/dev/null" | |
281 | ## Or if you're want to use AudioCompress | |
282 | # command "AudioCompress -m | aplay -f cd 2>/dev/null" | |
283 | ## Or to send raw PCM stream through PCM: | |
284 | # command "nc example.org 8765" | |
285 | # format "44100:16:2" | |
286 | #} | |
287 | # | |
288 | ## An example of a null output (for no audio output): | |
289 | # | |
290 | #audio_output { | |
291 | # type "null" | |
292 | # name "My Null Output" | |
293 | #} | |
294 | # | |
295 | # This setting will change all decoded audio to be converted to the specified | |
296 | # format before being passed to the audio outputs. By default, this setting is | |
297 | # disabled. | |
298 | # | |
299 | #audio_output_format "44100:16:2" | |
300 | # | |
301 | # If MPD has been compiled with libsamplerate support, this setting specifies | |
302 | # the sample rate converter to use. Possible values can be found in the | |
303 | # mpd.conf man page or the libsamplerate documentation. By default, this is | |
304 | # setting is disabled. | |
305 | # | |
306 | #samplerate_converter "Fastest Sinc Interpolator" | |
307 | # | |
308 | ############################################################################### | |
309 | ||
310 | ||
311 | # Volume control mixer ######################################################## | |
312 | # | |
313 | # These are the global volume control settings. By default, this setting will | |
314 | # be detected to the available audio output device, with preference going to | |
315 | # hardware mixing. Hardware and software mixers for individual audio_output | |
316 | # sections cannot yet be mixed. | |
317 | # | |
318 | # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this | |
319 | # setting is used other sound applications will be affected by the volume | |
320 | # being controlled by MPD. | |
321 | # | |
322 | #mixer_type "hardware" | |
323 | # | |
324 | # An example for controlling all mixers through software. This will control | |
325 | # all controls, even if the mixer is not supported by the device and will not | |
326 | # affect any other sound producing applications. | |
327 | # | |
328 | #mixer_type "software" | |
329 | # | |
330 | # This example will not allow MPD to touch the mixer at all and will disable | |
331 | # all volume controls. | |
332 | # | |
333 | #mixer_type "disabled" | |
334 | # | |
335 | ############################################################################### | |
336 | ||
337 | ||
338 | # Normalization automatic volume adjustments ################################## | |
339 | # | |
340 | # This setting specifies the type of ReplayGain to use. This setting can have | |
341 | # the argument "album" or "track". See <http://www.replaygain.org> for more | |
342 | # details. This setting is disabled by default. | |
343 | # | |
344 | #replaygain "album" | |
345 | # | |
346 | # This setting sets the pre-amp used for files that have ReplayGain tags. By | |
347 | # default this setting is disabled. | |
348 | # | |
349 | #replaygain_preamp "0" | |
350 | # | |
351 | # This setting enables on-the-fly normalization volume adjustment. This will | |
352 | # result in the volume of all playing audio to be adjusted so the output has | |
353 | # equal "loudness". This setting is disabled by default. | |
354 | # | |
355 | #volume_normalization "no" | |
356 | # | |
357 | ############################################################################### | |
358 | ||
359 | ||
360 | # MPD Internal Buffering ###################################################### | |
361 | # | |
362 | # This setting adjusts the size of internal decoded audio buffering. Changing | |
363 | # this may have undesired effects. Don't change this if you don't know what you | |
364 | # are doing. | |
365 | # | |
366 | #audio_buffer_size "2048" | |
367 | # | |
368 | # This setting controls the percentage of the buffer which is filled before | |
369 | # beginning to play. Increasing this reduces the chance of audio file skipping, | |
370 | # at the cost of increased time prior to audio playback. | |
371 | # | |
372 | #buffer_before_play "10%" | |
373 | # | |
374 | ############################################################################### | |
375 | ||
376 | ||
377 | # Resource Limitations ######################################################## | |
378 | # | |
379 | # These settings are various limitations to prevent MPD from using too many | |
380 | # resources. Generally, these settings should be minimized to prevent security | |
381 | # risks, depending on the operating resources. | |
382 | # | |
383 | #connection_timeout "60" | |
384 | #max_connections "10" | |
385 | #max_playlist_length "16384" | |
386 | #max_command_list_size "2048" | |
387 | #max_output_buffer_size "8192" | |
388 | # | |
389 | ############################################################################### | |
390 | ||
391 | ||
392 | # Character Encoding ########################################################## | |
393 | # | |
394 | # If file or directory names do not display correctly for your locale then you | |
395 | # may need to modify this setting. After modification of this setting mpd | |
396 | # --create-db must be run to change the database. | |
397 | # | |
398 | filesystem_charset "UTF-8" | |
399 | # | |
400 | # This setting controls the encoding that ID3v1 tags should be converted from. | |
401 | # | |
402 | id3v1_encoding "UTF-8" | |
403 | # | |
404 | ############################################################################### | |
405 | # SIDPlay decoder ############################################################# | |
406 | # | |
407 | # songlength_database: | |
408 | # Location of your songlengths file, as distributed with the HVSC. | |
409 | # The sidplay plugin checks this for matching MD5 fingerprints. | |
410 | # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq | |
411 | # | |
412 | # default_songlength: | |
413 | # This is the default playing time in seconds for songs not in the | |
414 | # songlength database, or in case you're not using a database. | |
415 | # A value of 0 means play indefinitely. | |
416 | # | |
417 | # filter: | |
418 | # Turns the SID filter emulation on or off. | |
419 | # | |
420 | #decoder { | |
421 | # plugin "sidplay" | |
422 | # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt" | |
423 | # default_songlength "120" | |
424 | # filter "true" | |
425 | #} | |
426 | # | |
427 | ############################################################################### |