mpd.conf 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. # An example configuration file for MPD.
  2. # Read the user manual for documentation: http://www.musicpd.org/doc/user/
  3. # or /usr/share/doc/mpd/html/user.html
  4. # Additional config can be done in /etc/mpd/mpd_local.conf (cf. include_optional)
  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 "/mnt/Disque-1/Musiques/Musique/"
  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 "/var/lib/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 "/var/lib/mpd/tag_cache"
  29. # These settings are the locations for the daemon log files for the daemon.
  30. #
  31. # The special value "syslog" makes MPD use the local syslog daemon. This
  32. # setting defaults to logging to syslog.
  33. #
  34. # If you use systemd, do not configure a log_file. With systemd, MPD
  35. # defaults to the systemd journal, which is fine.
  36. #
  37. #log_file "/var/log/mpd/mpd.log"
  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. # If you use systemd, do not configure a pid_file.
  43. #
  44. #pid_file "/run/mpd/pid"
  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 "/var/lib/mpd/state"
  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. # General music daemon options ################################################
  59. #
  60. # This setting specifies the user that MPD will run as. MPD should never run as
  61. # root and you may use this setting to make MPD change its user ID after
  62. # initialization. This setting is disabled by default and MPD is run as the
  63. # current user.
  64. #
  65. user "mpd"
  66. #
  67. # This setting specifies the group that MPD will run as. If not specified
  68. # primary group of user specified with "user" setting will be used (if set).
  69. # This is useful if MPD needs to be a member of group such as "audio" to
  70. # have permission to use sound card.
  71. #
  72. #group "nogroup"
  73. #
  74. # This setting sets the address for the daemon to listen on. Careful attention
  75. # should be paid if this is assigned to anything other than the default, any.
  76. # This setting can deny access to control of the daemon. Not effective if
  77. # systemd socket activation is in use.
  78. #
  79. # For network
  80. bind_to_address "localhost"
  81. #
  82. # And for Unix Socket
  83. #bind_to_address "/run/mpd/socket"
  84. #
  85. # This setting is the TCP port that is desired for the daemon to get assigned
  86. # to.
  87. #
  88. #port "6600"
  89. #
  90. # Suppress all messages below the given threshold. Use "verbose" for
  91. # troubleshooting. Available setting arguments are "notice", "info", "verbose",
  92. # "warning" and "error".
  93. #
  94. #log_level "notice"
  95. #
  96. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  97. # of starting playback after startup.
  98. #
  99. #restore_paused "no"
  100. #
  101. # This setting enables MPD to create playlists in a format usable by other
  102. # music players.
  103. #
  104. #save_absolute_paths_in_playlists "no"
  105. #
  106. # This setting defines a list of tag types that will be extracted during the
  107. # audio file discovery process. The complete list of possible values can be
  108. # found in the user manual.
  109. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  110. #
  111. # This example just enables the "comment" tag without disabling all
  112. # the other supported tags:
  113. #metadata_to_use "+comment"
  114. #
  115. # This setting enables automatic update of MPD's database when files in
  116. # music_directory are changed.
  117. #
  118. auto_update "no"
  119. #
  120. # Limit the depth of the directories being watched, 0 means only watch
  121. # the music directory itself. There is no limit by default.
  122. #
  123. #auto_update_depth "3"
  124. #
  125. ###############################################################################
  126. # Symbolic link behavior ######################################################
  127. #
  128. # If this setting is set to "yes", MPD will discover audio files by following
  129. # symbolic links outside of the configured music_directory.
  130. #
  131. #follow_outside_symlinks "yes"
  132. #
  133. # If this setting is set to "yes", MPD will discover audio files by following
  134. # symbolic links inside of the configured music_directory.
  135. #
  136. #follow_inside_symlinks "yes"
  137. #
  138. ###############################################################################
  139. # Zeroconf / Avahi Service Discovery ##########################################
  140. #
  141. # If this setting is set to "yes", service information will be published with
  142. # Zeroconf / Avahi.
  143. #
  144. #zeroconf_enabled "yes"
  145. #
  146. # The argument to this setting will be the Zeroconf / Avahi unique name for
  147. # this MPD server on the network. %h will be replaced with the hostname.
  148. #
  149. #zeroconf_name "Music Player @ %h"
  150. #
  151. ###############################################################################
  152. # Permissions #################################################################
  153. #
  154. # If this setting is set, MPD will require password authorization. The password
  155. # setting can be specified multiple times for different password profiles.
  156. #
  157. #password "password@read,add,control,admin"
  158. #
  159. # This setting specifies the permissions a user has who has not yet logged in.
  160. #
  161. #default_permissions "read,add,control,admin"
  162. #
  163. ###############################################################################
  164. # Database #######################################################################
  165. #
  166. # An example of a database section instead of the old 'db_file' setting.
  167. # It enables mounting other storages into the music directory.
  168. #
  169. #database {
  170. # plugin "simple"
  171. # path "/var/lib/mpd/tag_cache"
  172. # cache_directory "/var/lib/mpd/cache"
  173. #}
  174. #
  175. # An example of database config for a satellite setup
  176. #
  177. #music_directory "nfs://fileserver.local/srv/mp3"
  178. #database {
  179. # plugin "proxy"
  180. # host "other.mpd.host"
  181. # port "6600"
  182. #}
  183. # Input #######################################################################
  184. #
  185. input {
  186. plugin "curl"
  187. # proxy "proxy.isp.com:8080"
  188. # proxy_user "user"
  189. # proxy_password "password"
  190. }
  191. # Decoder #####################################################################
  192. #
  193. decoder {
  194. plugin "hybrid_dsd"
  195. enabled "no"
  196. # gapless "no"
  197. }
  198. decoder {
  199. plugin "wildmidi"
  200. enabled "no"
  201. #config_file "/etc/timidity/timidity.cfg"
  202. }
  203. #
  204. ###############################################################################
  205. # Audio Output ################################################################
  206. #
  207. # MPD supports various audio output types, as well as playing through multiple
  208. # audio outputs at the same time, through multiple audio_output settings
  209. # blocks. Setting this block is optional, though the server will only attempt
  210. # autodetection for one sound card.
  211. #
  212. # An example of an ALSA output:
  213. #
  214. audio_output {
  215. type "alsa"
  216. name "My ALSA Device"
  217. ## device "hw:0,0" # optional
  218. ## mixer_type "hardware" # optional
  219. ## mixer_device "default" # optional
  220. ## mixer_control "PCM" # optional
  221. ## mixer_index "0" # optional
  222. }
  223. #
  224. # An example of an OSS output:
  225. #
  226. #audio_output {
  227. # type "oss"
  228. # name "My OSS Device"
  229. ## device "/dev/dsp" # optional
  230. ## mixer_type "hardware" # optional
  231. ## mixer_device "/dev/mixer" # optional
  232. ## mixer_control "PCM" # optional
  233. #}
  234. #
  235. # An example of a shout output (for streaming to Icecast):
  236. #
  237. #audio_output {
  238. # type "shout"
  239. # encoder "vorbis" # optional
  240. # name "My Shout Stream"
  241. # host "localhost"
  242. # port "8000"
  243. # mount "/mpd.ogg"
  244. # password "hackme"
  245. # quality "5.0"
  246. # bitrate "128"
  247. # format "44100:16:1"
  248. ## protocol "icecast2" # optional
  249. ## user "source" # optional
  250. ## description "My Stream Description" # optional
  251. ## url "http://example.com" # optional
  252. ## genre "jazz" # optional
  253. ## public "no" # optional
  254. ## timeout "2" # optional
  255. ## mixer_type "software" # optional
  256. #}
  257. #
  258. # An example of a recorder output:
  259. #
  260. #audio_output {
  261. # type "recorder"
  262. # name "My recorder"
  263. # encoder "vorbis" # optional, vorbis or lame
  264. # path "/var/lib/mpd/recorder/mpd.ogg"
  265. ## quality "5.0" # do not define if bitrate is defined
  266. # bitrate "128" # do not define if quality is defined
  267. # format "44100:16:1"
  268. #}
  269. #
  270. # An example of a httpd output (built-in HTTP streaming server):
  271. #
  272. #audio_output {
  273. # type "httpd"
  274. # name "My HTTP Stream"
  275. # encoder "vorbis" # optional, vorbis or lame
  276. # port "8000"
  277. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  278. ## quality "5.0" # do not define if bitrate is defined
  279. # bitrate "128" # do not define if quality is defined
  280. # format "44100:16:1"
  281. # max_clients "0" # optional 0=no limit
  282. #}
  283. #
  284. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  285. # Please see README.Debian if you want mpd to play through the pulseaudio
  286. # daemon started as part of your graphical desktop session!
  287. #
  288. #audio_output {
  289. # type "pulse"
  290. # name "My Pulse Output"
  291. ## server "remote_server" # optional
  292. ## sink "remote_server_sink" # optional
  293. ## media_role "media_role" #optional
  294. #}
  295. #
  296. # An example of a winmm output (Windows multimedia API).
  297. #
  298. #audio_output {
  299. # type "winmm"
  300. # name "My WinMM output"
  301. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  302. # or
  303. ## device "0" # optional
  304. ## mixer_type "hardware" # optional
  305. #}
  306. #
  307. # An example of an openal output.
  308. #
  309. #audio_output {
  310. # type "openal"
  311. # name "My OpenAL output"
  312. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  313. #}
  314. #
  315. # An example of an sndio output.
  316. #
  317. #audio_output {
  318. # type "sndio"
  319. # name "sndio output"
  320. # mixer_type "hardware"
  321. #}
  322. #
  323. # An example of an OS X output:
  324. #
  325. #audio_output {
  326. # type "osx"
  327. # name "My OS X Device"
  328. ## device "Built-in Output" # optional
  329. ## channel_map "-1,-1,0,1" # optional
  330. #}
  331. #
  332. ## Example "pipe" output:
  333. #
  334. #audio_output {
  335. # type "pipe"
  336. # name "my pipe"
  337. # command "aplay -f cd 2>/dev/null"
  338. ## Or if you're want to use AudioCompress
  339. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  340. ## Or to send raw PCM stream through PCM:
  341. # command "nc example.org 8765"
  342. # format "44100:16:2"
  343. #}
  344. #
  345. ## An example of a null output (for no audio output):
  346. #
  347. #audio_output {
  348. # type "null"
  349. # name "My Null Output"
  350. # mixer_type "none" # optional
  351. #}
  352. #
  353. ###############################################################################
  354. # Normalization automatic volume adjustments ##################################
  355. #
  356. # This setting specifies the type of ReplayGain to use. This setting can have
  357. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  358. # chooses between "track" and "album" depending on the current state of
  359. # random playback. If random playback is enabled then "track" mode is used.
  360. # See <https://wiki.hydrogenaud.io/index.php?title=Replaygain> for
  361. # more details about ReplayGain.
  362. # This setting is off by default.
  363. #
  364. replaygain "off"
  365. #
  366. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  367. # default this setting is disabled.
  368. #
  369. #replaygain_preamp "0"
  370. #
  371. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  372. # By default this setting is disabled.
  373. #
  374. #replaygain_missing_preamp "0"
  375. #
  376. # This setting enables or disables ReplayGain limiting.
  377. # MPD calculates actual amplification based on the ReplayGain tags
  378. # and replaygain_preamp / replaygain_missing_preamp setting.
  379. # If replaygain_limit is enabled MPD will never amplify audio signal
  380. # above its original level. If replaygain_limit is disabled such amplification
  381. # might occur. By default this setting is enabled.
  382. #
  383. #replaygain_limit "yes"
  384. #
  385. # This setting enables on-the-fly normalization volume adjustment. This will
  386. # result in the volume of all playing audio to be adjusted so the output has
  387. # equal "loudness". This setting is disabled by default.
  388. #
  389. #volume_normalization "no"
  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.
  396. #
  397. filesystem_charset "UTF-8"
  398. #
  399. ###############################################################################
  400. include_optional "mpd_local.conf"