You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

442 lines
14KB

  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  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 "~/Musique"
  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, otherwise logging is disabled.
  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.
  75. #
  76. # For network
  77. #bind_to_address "any"
  78. #
  79. # And for Unix Socket
  80. #bind_to_address "~/.mpd/socket"
  81. #
  82. # This setting is the TCP port that is desired for the daemon to get assigned
  83. # to.
  84. #
  85. #port "6600"
  86. #
  87. # This setting controls the type of information which is logged. Available
  88. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  89. # argument is recommended for troubleshooting, though can quickly stretch
  90. # available resources on limited hardware storage.
  91. #
  92. #log_level "default"
  93. #
  94. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  95. # of starting playback after startup.
  96. #
  97. restore_paused "yes"
  98. #
  99. # This setting enables MPD to create playlists in a format usable by other
  100. # music players.
  101. #
  102. #save_absolute_paths_in_playlists "no"
  103. #
  104. # This setting defines a list of tag types that will be extracted during the
  105. # audio file discovery process. The complete list of possible values can be
  106. # found in the mpd.conf man page.
  107. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  108. #
  109. # This setting enables automatic update of MPD's database when files in
  110. # music_directory are changed.
  111. #
  112. auto_update "yes"
  113. #
  114. # Limit the depth of the directories being watched, 0 means only watch
  115. # the music directory itself. There is no limit by default.
  116. #
  117. #auto_update_depth "3"
  118. #
  119. ###############################################################################
  120. # Symbolic link behavior ######################################################
  121. #
  122. # If this setting is set to "yes", MPD will discover audio files by following
  123. # symbolic links outside of the configured music_directory.
  124. #
  125. #follow_outside_symlinks "yes"
  126. #
  127. # If this setting is set to "yes", MPD will discover audio files by following
  128. # symbolic links inside of the configured music_directory.
  129. #
  130. #follow_inside_symlinks "yes"
  131. #
  132. ###############################################################################
  133. # Zeroconf / Avahi Service Discovery ##########################################
  134. #
  135. # If this setting is set to "yes", service information will be published with
  136. # Zeroconf / Avahi.
  137. #
  138. #zeroconf_enabled "yes"
  139. #
  140. # The argument to this setting will be the Zeroconf / Avahi unique name for
  141. # this MPD server on the network.
  142. #
  143. #zeroconf_name "Music Player"
  144. #
  145. ###############################################################################
  146. # Permissions #################################################################
  147. #
  148. # If this setting is set, MPD will require password authorization. The password
  149. # can setting can be specified multiple times for different password profiles.
  150. #
  151. #password "password@read,add,control,admin"
  152. #
  153. # This setting specifies the permissions a user has who has not yet logged in.
  154. #
  155. #default_permissions "read,add,control,admin"
  156. #
  157. ###############################################################################
  158. # Input #######################################################################
  159. #
  160. input {
  161. plugin "curl"
  162. # proxy "proxy.isp.com:8080"
  163. # proxy_user "user"
  164. # proxy_password "password"
  165. }
  166. #
  167. ###############################################################################
  168. # Audio Output ################################################################
  169. #
  170. # MPD supports various audio output types, as well as playing through multiple
  171. # audio outputs at the same time, through multiple audio_output settings
  172. # blocks. Setting this block is optional, though the server will only attempt
  173. # autodetection for one sound card.
  174. #
  175. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  176. # other audio outputs.
  177. #
  178. # An example of an ALSA output:
  179. #
  180. # audio_output {
  181. # type "alsa"
  182. # name "My ALSA Device"
  183. # options "dev=dmixer"
  184. # device "plug:dmix"
  185. #device "hw:0,0" # optional
  186. # format "44100:16:2" # optional
  187. #mixer_type "hardware" # optional
  188. #mixer_device "default" # optional
  189. #mixer_control "PCM" # optional
  190. #mixer_index "0" # optional
  191. # }
  192. #
  193. # An example of an OSS output:
  194. #
  195. #audio_output {
  196. # type "oss"
  197. # name "My OSS Device"
  198. ## device "/dev/dsp" # optional
  199. ## format "44100:16:2" # optional
  200. ## mixer_type "hardware" # optional
  201. ## mixer_device "/dev/mixer" # optional
  202. ## mixer_control "PCM" # optional
  203. #}
  204. #
  205. # An example of a shout output (for streaming to Icecast):
  206. #
  207. #audio_output {
  208. # type "shout"
  209. # encoding "ogg" # optional
  210. # name "My Shout Stream"
  211. # host "localhost"
  212. # port "8000"
  213. # mount "/mpd.ogg"
  214. # password "hackme"
  215. # quality "5.0"
  216. # bitrate "128"
  217. # format "44100:16:1"
  218. ## protocol "icecast2" # optional
  219. ## user "source" # optional
  220. ## description "My Stream Description" # optional
  221. ## url "http://example.com" # optional
  222. ## genre "jazz" # optional
  223. ## public "no" # optional
  224. ## timeout "2" # optional
  225. ## mixer_type "software" # optional
  226. #}
  227. #
  228. # An example of a recorder output:
  229. #
  230. #audio_output {
  231. # type "recorder"
  232. # name "My recorder"
  233. # encoder "vorbis" # optional, vorbis or lame
  234. # path "/var/lib/mpd/recorder/mpd.ogg"
  235. ## quality "5.0" # do not define if bitrate is defined
  236. # bitrate "128" # do not define if quality is defined
  237. # format "44100:16:1"
  238. #}
  239. #
  240. # An example of a httpd output (built-in HTTP streaming server):
  241. #
  242. # audio_output {
  243. # type "httpd"
  244. # name "My HTTP Stream"
  245. # encoder "lame" # optional, vorbis or lame
  246. # port "8080"
  247. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  248. # # quality "5.0" # do not define if bitrate is defined
  249. # bitrate "128" # do not define if quality is defined
  250. # format "44100:16:1"
  251. # max_clients "0" # optional 0=no limit
  252. # }
  253. #
  254. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  255. #
  256. audio_output {
  257. type "pulse"
  258. name "My Pulse Output"
  259. ## server "remote_server" # optional
  260. ## sink "remote_server_sink" # optional
  261. }
  262. #
  263. ## Example "pipe" output:
  264. #
  265. #audio_output {
  266. # type "pipe"
  267. # name "my pipe"
  268. # command "aplay -f cd 2>/dev/null"
  269. ## Or if you're want to use AudioCompress
  270. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  271. ## Or to send raw PCM stream through PCM:
  272. # command "nc example.org 8765"
  273. # format "44100:16:2"
  274. #}
  275. #
  276. ## An example of a null output (for no audio output):
  277. #
  278. #audio_output {
  279. # type "null"
  280. # name "My Null Output"
  281. # mixer_type "none" # optional
  282. #}
  283. #
  284. # This setting will change all decoded audio to be converted to the specified
  285. # format before being passed to the audio outputs. By default, this setting is
  286. # disabled.
  287. #
  288. #audio_output_format "44100:16:2"
  289. #
  290. # If MPD has been compiled with libsamplerate support, this setting specifies
  291. # the sample rate converter to use. Possible values can be found in the
  292. # mpd.conf man page or the libsamplerate documentation. By default, this is
  293. # setting is disabled.
  294. #
  295. #samplerate_converter "Fastest Sinc Interpolator"
  296. audio_output {
  297. type "fifo"
  298. name "my_fifo"
  299. path "/tmp/mpd.fifo"
  300. format "44100:16:2"
  301. }
  302. #
  303. ###############################################################################
  304. # Normalization automatic volume adjustments ##################################
  305. #
  306. # This setting specifies the type of ReplayGain to use. This setting can have
  307. # the argument "off", "album" or "track". See <http://www.replaygain.org>
  308. # for more details. This setting is off by default.
  309. #
  310. #replaygain "album"
  311. #
  312. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  313. # default this setting is disabled.
  314. #
  315. #replaygain_preamp "0"
  316. #
  317. # This setting enables on-the-fly normalization volume adjustment. This will
  318. # result in the volume of all playing audio to be adjusted so the output has
  319. # equal "loudness". This setting is disabled by default.
  320. #
  321. #volume_normalization "no"
  322. #
  323. ###############################################################################
  324. # MPD Internal Buffering ######################################################
  325. #
  326. # This setting adjusts the size of internal decoded audio buffering. Changing
  327. # this may have undesired effects. Don't change this if you don't know what you
  328. # are doing.
  329. #
  330. #audio_buffer_size "2048"
  331. #
  332. # This setting controls the percentage of the buffer which is filled before
  333. # beginning to play. Increasing this reduces the chance of audio file skipping,
  334. # at the cost of increased time prior to audio playback.
  335. #
  336. #buffer_before_play "10%"
  337. #
  338. ###############################################################################
  339. # Resource Limitations ########################################################
  340. #
  341. # These settings are various limitations to prevent MPD from using too many
  342. # resources. Generally, these settings should be minimized to prevent security
  343. # risks, depending on the operating resources.
  344. #
  345. #connection_timeout "60"
  346. #max_connections "10"
  347. #max_playlist_length "16384"
  348. #max_command_list_size "2048"
  349. #max_output_buffer_size "8192"
  350. #
  351. ###############################################################################
  352. # Client TCP keep alive #######################################################
  353. #
  354. # For clients connected by TCP on supported platforms.
  355. # Allows detection of dangling connections due to clients disappearing from
  356. # the network without closing their connections.
  357. #
  358. # This is not usually necessary but can be useful in cases such as wifi connectected
  359. # clients that go in and out of network range or turn off wifi without closing their
  360. # connections. Combined with low max_connections this can soon cause clients to not
  361. # be able to connect.
  362. #
  363. #
  364. # Enable tcp keepalive on new client connections (default is "no")
  365. #
  366. #tcp_keep_alive "no"
  367. #
  368. # Time in seconds since the last communication on the connection and before
  369. # the keepalive probing is started. (default is 7200 seconds)
  370. #tcp_keep_alive_idle "7200"
  371. #
  372. # Interval in seconds between keepalive probes, once a probe started.
  373. # (default is 75 seconds)
  374. #tcp_keep_alive_interval "75"
  375. #
  376. # Number of failed probes before the connection is pronounced dead and
  377. # the connection is closed. (default is 9 times)
  378. #tcp_keep_alive_count "9"
  379. #
  380. ###############################################################################
  381. # Character Encoding ##########################################################
  382. #
  383. # If file or directory names do not display correctly for your locale then you
  384. # may need to modify this setting.
  385. #
  386. #filesystem_charset "UTF-8"
  387. #
  388. # This setting controls the encoding that ID3v1 tags should be converted from.
  389. #
  390. #id3v1_encoding "ISO-8859-1"
  391. #
  392. ###############################################################################
  393. # SIDPlay decoder #############################################################
  394. #
  395. # songlength_database:
  396. # Location of your songlengths file, as distributed with the HVSC.
  397. # The sidplay plugin checks this for matching MD5 fingerprints.
  398. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  399. #
  400. # default_songlength:
  401. # This is the default playing time in seconds for songs not in the
  402. # songlength database, or in case you're not using a database.
  403. # A value of 0 means play indefinitely.
  404. #
  405. # filter:
  406. # Turns the SID filter emulation on or off.
  407. #
  408. #decoder {
  409. # plugin "sidplay"
  410. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  411. # default_songlength "120"
  412. # filter "true"
  413. #}
  414. #
  415. ###############################################################################