mpd.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. # An example configuration file for MPD.
  2. # Read the user manual for documentation: http://www.musicpd.org/doc/user/
  3. # Files and directories #######################################################
  4. #
  5. # This setting controls the top directory which MPD will search to discover the
  6. # available audio files and add them to the daemon's online database. This
  7. # setting defaults to the XDG directory, otherwise the music directory will be
  8. # be disabled and audio files will only be accepted over ipc socket (using
  9. # file:// protocol) or streaming files over an accepted protocol.
  10. #
  11. music_directory "~/Music"
  12. #
  13. # This setting sets the MPD internal playlist directory. The purpose of this
  14. # directory is storage for playlists created by MPD. The server will use
  15. # playlist files not created by the server but only if they are in the MPD
  16. # format. This setting defaults to playlist saving being disabled.
  17. #
  18. playlist_directory "~/.mpd/playlists"
  19. #
  20. # This setting sets the location of the MPD database. This file is used to
  21. # load the database at server start up and store the database while the
  22. # server is not up. This setting defaults to disabled which will allow
  23. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  24. # files over an accepted protocol.
  25. #
  26. db_file "~/.mpd/database"
  27. #
  28. # These settings are the locations for the daemon log files for the daemon.
  29. # These logs are great for troubleshooting, depending on your log_level
  30. # settings.
  31. #
  32. # The special value "syslog" makes MPD use the local syslog daemon. This
  33. # setting defaults to logging to syslog.
  34. #
  35. log_file "~/.mpd/log"
  36. #
  37. # This setting sets the location of the file which stores the process ID
  38. # for use of mpd --kill and some init scripts. This setting is disabled by
  39. # default and the pid file will not be stored.
  40. #
  41. pid_file "~/.mpd/pid"
  42. #
  43. # This setting sets the location of the file which contains information about
  44. # most variables to get MPD back into the same general shape it was in before
  45. # it was brought down. This setting is disabled by default and the server
  46. # state will be reset on server start up.
  47. #
  48. state_file "~/.mpd/state"
  49. #
  50. # The location of the sticker database. This is a database which
  51. # manages dynamic information attached to songs.
  52. #
  53. #sticker_file "~/.mpd/sticker.sql"
  54. #
  55. ###############################################################################
  56. # General music daemon options ################################################
  57. #
  58. # This setting specifies the user that MPD will run as. MPD should never run as
  59. # root and you may use this setting to make MPD change its user ID after
  60. # initialization. This setting is disabled by default and MPD is run as the
  61. # current user.
  62. #
  63. #user "nobody"
  64. #
  65. # This setting specifies the group that MPD will run as. If not specified
  66. # primary group of user specified with "user" setting will be used (if set).
  67. # This is useful if MPD needs to be a member of group such as "audio" to
  68. # have permission to use sound card.
  69. #
  70. #group "nogroup"
  71. #
  72. # This setting sets the address for the daemon to listen on. Careful attention
  73. # should be paid if this is assigned to anything other then the default, any.
  74. # This setting can deny access to control of the daemon. Not effective if
  75. # systemd socket activiation is in use.
  76. #
  77. # For network
  78. #bind_to_address "any"
  79. #
  80. # And for Unix Socket
  81. #bind_to_address "~/.mpd/socket"
  82. #
  83. # This setting is the TCP port that is desired for the daemon to get assigned
  84. # to.
  85. #
  86. #port "6600"
  87. #
  88. # This setting controls the type of information which is logged. Available
  89. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  90. # argument is recommended for troubleshooting, though can quickly stretch
  91. # available resources on limited hardware storage.
  92. #
  93. #log_level "default"
  94. #
  95. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  96. # of starting playback after startup.
  97. #
  98. #restore_paused "no"
  99. #
  100. # This setting enables MPD to create playlists in a format usable by other
  101. # music players.
  102. #
  103. #save_absolute_paths_in_playlists "no"
  104. #
  105. # This setting defines a list of tag types that will be extracted during the
  106. # audio file discovery process. The complete list of possible values can be
  107. # found in the user manual.
  108. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  109. #
  110. # This example just enables the "comment" tag without disabling all
  111. # the other supported tags:
  112. #metadata_to_use "+comment"
  113. #
  114. # This setting enables automatic update of MPD's database when files in
  115. # music_directory are changed.
  116. #
  117. #auto_update "yes"
  118. #
  119. # Limit the depth of the directories being watched, 0 means only watch
  120. # the music directory itself. There is no limit by default.
  121. #
  122. #auto_update_depth "3"
  123. #
  124. ###############################################################################
  125. # Symbolic link behavior ######################################################
  126. #
  127. # If this setting is set to "yes", MPD will discover audio files by following
  128. # symbolic links outside of the configured music_directory.
  129. #
  130. #follow_outside_symlinks "yes"
  131. #
  132. # If this setting is set to "yes", MPD will discover audio files by following
  133. # symbolic links inside of the configured music_directory.
  134. #
  135. #follow_inside_symlinks "yes"
  136. #
  137. ###############################################################################
  138. # Zeroconf / Avahi Service Discovery ##########################################
  139. #
  140. # If this setting is set to "yes", service information will be published with
  141. # Zeroconf / Avahi.
  142. #
  143. #zeroconf_enabled "yes"
  144. #
  145. # The argument to this setting will be the Zeroconf / Avahi unique name for
  146. # this MPD server on the network. %h will be replaced with the hostname.
  147. #
  148. #zeroconf_name "Music Player @ %h"
  149. #
  150. ###############################################################################
  151. # Permissions #################################################################
  152. #
  153. # If this setting is set, MPD will require password authorization. The password
  154. # setting can be specified multiple times for different password profiles.
  155. #
  156. #password "password@read,add,control,admin"
  157. #
  158. # This setting specifies the permissions a user has who has not yet logged in.
  159. #
  160. #default_permissions "read,add,control,admin"
  161. #
  162. ###############################################################################
  163. # Database #######################################################################
  164. #
  165. #database {
  166. # plugin "proxy"
  167. # host "other.mpd.host"
  168. # port "6600"
  169. #}
  170. # Input #######################################################################
  171. #
  172. input {
  173. plugin "curl"
  174. # proxy "proxy.isp.com:8080"
  175. # proxy_user "user"
  176. # proxy_password "password"
  177. }
  178. #
  179. ###############################################################################
  180. # Audio Output ################################################################
  181. #
  182. # MPD supports various audio output types, as well as playing through multiple
  183. # audio outputs at the same time, through multiple audio_output settings
  184. # blocks. Setting this block is optional, though the server will only attempt
  185. # autodetection for one sound card.
  186. #
  187. # An example of an ALSA output:
  188. #
  189. #audio_output {
  190. # type "alsa"
  191. # name "My ALSA Device"
  192. # device "hw:UR22mkII,0" # optional
  193. ## mixer_type "hardware" # optional
  194. ## mixer_device "default" # optional
  195. ## mixer_control "PCM" # optional
  196. ## mixer_index "0" # optional
  197. #}
  198. #
  199. # An example of an OSS output:
  200. #
  201. #audio_output {
  202. # type "oss"
  203. # name "My OSS Device"
  204. ## device "/dev/dsp" # optional
  205. ## mixer_type "hardware" # optional
  206. ## mixer_device "/dev/mixer" # optional
  207. ## mixer_control "PCM" # optional
  208. #}
  209. #
  210. # An example of a shout output (for streaming to Icecast):
  211. #
  212. #audio_output {
  213. # type "shout"
  214. # encoder "vorbis" # optional
  215. # name "My Shout Stream"
  216. # host "localhost"
  217. # port "8000"
  218. # mount "/mpd.ogg"
  219. # password "hackme"
  220. # quality "5.0"
  221. # bitrate "128"
  222. # format "44100:16:1"
  223. ## protocol "icecast2" # optional
  224. ## user "source" # optional
  225. ## description "My Stream Description" # optional
  226. ## url "http://example.com" # optional
  227. ## genre "jazz" # optional
  228. ## public "no" # optional
  229. ## timeout "2" # optional
  230. ## mixer_type "software" # optional
  231. #}
  232. #
  233. # An example of a recorder output:
  234. #
  235. #audio_output {
  236. # type "recorder"
  237. # name "My recorder"
  238. # encoder "vorbis" # optional, vorbis or lame
  239. # path "/var/lib/mpd/recorder/mpd.ogg"
  240. ## quality "5.0" # do not define if bitrate is defined
  241. # bitrate "128" # do not define if quality is defined
  242. # format "44100:16:1"
  243. #}
  244. #
  245. # An example of a httpd output (built-in HTTP streaming server):
  246. #
  247. #audio_output {
  248. # type "httpd"
  249. # name "My HTTP Stream"
  250. # encoder "vorbis" # optional, vorbis or lame
  251. # port "8000"
  252. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  253. ## quality "5.0" # do not define if bitrate is defined
  254. # bitrate "128" # do not define if quality is defined
  255. # format "44100:16:1"
  256. # max_clients "0" # optional 0=no limit
  257. #}
  258. #
  259. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  260. #
  261. audio_output {
  262. type "pulse"
  263. name "My Pulse Output"
  264. # server "remote_server" # optional
  265. # sink "remote_server_sink" # optional
  266. }
  267. #
  268. # An example of a winmm output (Windows multimedia API).
  269. #
  270. #audio_output {
  271. # type "winmm"
  272. # name "My WinMM output"
  273. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  274. # or
  275. ## device "0" # optional
  276. ## mixer_type "hardware" # optional
  277. #}
  278. #
  279. # An example of an openal output.
  280. #
  281. #audio_output {
  282. # type "openal"
  283. # name "My OpenAL output"
  284. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  285. #}
  286. #
  287. # An example of an sndio output.
  288. #
  289. #audio_output {
  290. # type "sndio"
  291. # name "sndio output"
  292. # mixer_type "hardware"
  293. #}
  294. #
  295. # An example of an OS X output:
  296. #
  297. #audio_output {
  298. # type "osx"
  299. # name "My OS X Device"
  300. ## device "Built-in Output" # optional
  301. ## channel_map "-1,-1,0,1" # optional
  302. #}
  303. #
  304. ## Example "pipe" output:
  305. #
  306. #audio_output {
  307. # type "pipe"
  308. # name "my pipe"
  309. # command "aplay -f cd 2>/dev/null"
  310. ## Or if you're want to use AudioCompress
  311. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  312. ## Or to send raw PCM stream through PCM:
  313. # command "nc example.org 8765"
  314. # format "44100:16:2"
  315. #}
  316. #
  317. ## An example of a null output (for no audio output):
  318. #
  319. #audio_output {
  320. # type "null"
  321. # name "My Null Output"
  322. # mixer_type "none" # optional
  323. #}
  324. #
  325. ###############################################################################
  326. # Normalization automatic volume adjustments ##################################
  327. #
  328. # This setting specifies the type of ReplayGain to use. This setting can have
  329. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  330. # chooses between "track" and "album" depending on the current state of
  331. # random playback. If random playback is enabled then "track" mode is used.
  332. # See <http://www.replaygain.org> for more details about ReplayGain.
  333. # This setting is off by default.
  334. #
  335. #replaygain "auto"
  336. #
  337. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  338. # default this setting is disabled.
  339. #
  340. #replaygain_preamp "0"
  341. #
  342. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  343. # By default this setting is disabled.
  344. #
  345. #replaygain_missing_preamp "0"
  346. #
  347. # This setting enables or disables ReplayGain limiting.
  348. # MPD calculates actual amplification based on the ReplayGain tags
  349. # and replaygain_preamp / replaygain_missing_preamp setting.
  350. # If replaygain_limit is enabled MPD will never amplify audio signal
  351. # above its original level. If replaygain_limit is disabled such amplification
  352. # might occur. By default this setting is enabled.
  353. #
  354. #replaygain_limit "yes"
  355. #
  356. # This setting enables on-the-fly normalization volume adjustment. This will
  357. # result in the volume of all playing audio to be adjusted so the output has
  358. # equal "loudness". This setting is disabled by default.
  359. #
  360. #volume_normalization "yes"
  361. #
  362. ###############################################################################
  363. # Character Encoding ##########################################################
  364. #
  365. # If file or directory names do not display correctly for your locale then you
  366. # may need to modify this setting.
  367. #
  368. #filesystem_charset "UTF-8"
  369. #
  370. ###############################################################################