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.

421 lines
14 KiB

  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/user-manual.html
  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 "/home/pi/discobert/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 "/var/lib/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 "/var/lib/mpd/tag_cache"
  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 "/var/log/mpd/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 "/run/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 "/var/lib/mpd/state"
  50. #
  51. # The location of the sticker database. This is a database which
  52. # manages dynamic information attached to songs.
  53. #
  54. sticker_file "/var/lib/mpd/sticker.sql"
  55. #
  56. ###############################################################################
  57. # General music daemon options ################################################
  58. #
  59. # This setting specifies the user that MPD will run as. MPD should never run as
  60. # root and you may use this setting to make MPD change its user ID after
  61. # initialization. This setting is disabled by default and MPD is run as the
  62. # current user.
  63. #
  64. user "mpd"
  65. #
  66. # This setting specifies the group that MPD will run as. If not specified
  67. # primary group of user specified with "user" setting will be used (if set).
  68. # This is useful if MPD needs to be a member of group such as "audio" to
  69. # have permission to use sound card.
  70. #
  71. #group "nogroup"
  72. #
  73. # This setting sets the address for the daemon to listen on. Careful attention
  74. # should be paid if this is assigned to anything other then the default, any.
  75. # This setting can deny access to control of the daemon. Choose any if you want
  76. # to have mpd listen on every address. Not effective if systemd socket
  77. # 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. # This setting controls the type of information which is logged. Available
  91. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  92. # argument is recommended for troubleshooting, though can quickly stretch
  93. # available resources on limited hardware storage.
  94. #
  95. #log_level "default"
  96. #
  97. # If you have a problem with your MP3s ending abruptly it is recommended that
  98. # you set this argument to "no" to attempt to fix the problem. If this solves
  99. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  100. # (available as vbrfix in the debian archive), at which
  101. # point gapless MP3 playback can be enabled.
  102. #
  103. #gapless_mp3_playback "yes"
  104. #
  105. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  106. # of starting playback after startup.
  107. #
  108. #restore_paused "no"
  109. #
  110. # This setting enables MPD to create playlists in a format usable by other
  111. # music players.
  112. #
  113. #save_absolute_paths_in_playlists "no"
  114. #
  115. # This setting defines a list of tag types that will be extracted during the
  116. # audio file discovery process. The complete list of possible values can be
  117. # found in the mpd.conf man page.
  118. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  119. #
  120. # This setting enables automatic update of MPD's database when files in
  121. # music_directory are changed.
  122. #
  123. auto_update "yes"
  124. #
  125. # Limit the depth of the directories being watched, 0 means only watch
  126. # the music directory itself. There is no limit by default.
  127. #
  128. #auto_update_depth "3"
  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. # Zeroconf / Avahi Service Discovery ##########################################
  145. #
  146. # If this setting is set to "yes", service information will be published with
  147. # Zeroconf / Avahi.
  148. #
  149. #zeroconf_enabled "yes"
  150. #
  151. # The argument to this setting will be the Zeroconf / Avahi unique name for
  152. # this MPD server on the network.
  153. #
  154. #zeroconf_name "Music Player"
  155. #
  156. ###############################################################################
  157. # Permissions #################################################################
  158. #
  159. # If this setting is set, MPD will require password authorization. The password
  160. # can setting can be specified multiple times for different password profiles.
  161. #
  162. #password "password@read,add,control,admin"
  163. #
  164. # This setting specifies the permissions a user has who has not yet logged in.
  165. #
  166. #default_permissions "read,add,control,admin"
  167. #
  168. ###############################################################################
  169. # Database #######################################################################
  170. #
  171. #database {
  172. # plugin "proxy"
  173. # host "other.mpd.host"
  174. # port "6600"
  175. #}
  176. # Input #######################################################################
  177. #
  178. input {
  179. plugin "curl"
  180. # proxy "proxy.isp.com:8080"
  181. # proxy_user "user"
  182. # proxy_password "password"
  183. }
  184. #
  185. ###############################################################################
  186. # Audio Output ################################################################
  187. #
  188. # MPD supports various audio output types, as well as playing through multiple
  189. # audio outputs at the same time, through multiple audio_output settings
  190. # blocks. Setting this block is optional, though the server will only attempt
  191. # autodetection for one sound card.
  192. #
  193. # An example of an ALSA output:
  194. #
  195. audio_output {
  196. type "alsa"
  197. name "My ALSA Device"
  198. mixer_type "software"
  199. # device "hw:0,0" # optional
  200. # mixer_type "hardware" # optional
  201. # mixer_device "default" # optional
  202. # mixer_control "PCM" # optional
  203. # mixer_index "0" # optional
  204. }
  205. #
  206. # An example of an OSS output:
  207. #
  208. #audio_output {
  209. # type "oss"
  210. # name "My OSS Device"
  211. # device "/dev/dsp" # optional
  212. # mixer_type "hardware" # optional
  213. # mixer_device "/dev/mixer" # optional
  214. # mixer_control "PCM" # optional
  215. #}
  216. #
  217. # An example of a shout output (for streaming to Icecast):
  218. #
  219. #audio_output {
  220. # type "shout"
  221. # encoder "vorbis" # optional
  222. # name "My Shout Stream"
  223. # host "localhost"
  224. # port "8000"
  225. # mount "/mpd.ogg"
  226. # password "hackme"
  227. # quality "5.0"
  228. # bitrate "128"
  229. # format "44100:16:1"
  230. # protocol "icecast2" # optional
  231. # user "source" # optional
  232. # description "My Stream Description" # optional
  233. # url "http://example.com" # optional
  234. # genre "jazz" # optional
  235. # public "no" # optional
  236. # timeout "2" # optional
  237. # mixer_type "software" # optional
  238. #}
  239. #
  240. # An example of a recorder output:
  241. #
  242. #audio_output {
  243. # type "recorder"
  244. # name "My recorder"
  245. # encoder "vorbis" # optional, vorbis or lame
  246. # path "/var/lib/mpd/recorder/mpd.ogg"
  247. ## quality "5.0" # do not define if bitrate is defined
  248. # bitrate "128" # do not define if quality is defined
  249. # format "44100:16:1"
  250. #}
  251. #
  252. # An example of a httpd output (built-in HTTP streaming server):
  253. #
  254. #audio_output {
  255. # type "httpd"
  256. # name "My HTTP Stream"
  257. # encoder "vorbis" # optional, vorbis or lame
  258. # port "8000"
  259. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  260. # quality "5.0" # do not define if bitrate is defined
  261. # bitrate "128" # do not define if quality is defined
  262. # format "44100:16:1"
  263. # max_clients "0" # optional 0=no limit
  264. #}
  265. #
  266. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  267. # Please see README.Debian if you want mpd to play through the pulseaudio
  268. # daemon started as part of your graphical desktop session!
  269. #
  270. #audio_output {
  271. # type "pulse"
  272. # name "My Pulse Output"
  273. # server "remote_server" # optional
  274. # sink "remote_server_sink" # optional
  275. #}
  276. #
  277. # An example of a winmm output (Windows multimedia API).
  278. #
  279. #audio_output {
  280. # type "winmm"
  281. # name "My WinMM output"
  282. # device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  283. # or
  284. # device "0" # optional
  285. # mixer_type "hardware" # optional
  286. #}
  287. #
  288. # An example of an openal output.
  289. #
  290. #audio_output {
  291. # type "openal"
  292. # name "My OpenAL output"
  293. # device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  294. #}
  295. #
  296. ## Example "pipe" output:
  297. #
  298. #audio_output {
  299. # type "pipe"
  300. # name "my pipe"
  301. # command "aplay -f cd 2>/dev/null"
  302. ## Or if you're want to use AudioCompress
  303. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  304. ## Or to send raw PCM stream through PCM:
  305. # command "nc example.org 8765"
  306. # format "44100:16:2"
  307. #}
  308. #
  309. ## An example of a null output (for no audio output):
  310. #
  311. #audio_output {
  312. # type "null"
  313. # name "My Null Output"
  314. # mixer_type "none" # optional
  315. #}
  316. #
  317. # If MPD has been compiled with libsamplerate support, this setting specifies
  318. # the sample rate converter to use. Possible values can be found in the
  319. # mpd.conf man page or the libsamplerate documentation. By default, this is
  320. # setting is disabled.
  321. #
  322. #samplerate_converter "Fastest Sinc Interpolator"
  323. #
  324. ###############################################################################
  325. # Normalization automatic volume adjustments ##################################
  326. #
  327. # This setting specifies the type of ReplayGain to use. This setting can have
  328. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  329. # chooses between "track" and "album" depending on the current state of
  330. # random playback. If random playback is enabled then "track" mode is used.
  331. # See <http://www.replaygain.org> for more details about ReplayGain.
  332. # This setting is off by default.
  333. #
  334. #replaygain "album"
  335. #
  336. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  337. # default this setting is disabled.
  338. #
  339. #replaygain_preamp "0"
  340. #
  341. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  342. # By default this setting is disabled.
  343. #
  344. #replaygain_missing_preamp "0"
  345. #
  346. # This setting enables or disables ReplayGain limiting.
  347. # MPD calculates actual amplification based on the ReplayGain tags
  348. # and replaygain_preamp / replaygain_missing_preamp setting.
  349. # If replaygain_limit is enabled MPD will never amplify audio signal
  350. # above its original level. If replaygain_limit is disabled such amplification
  351. # might occur. By default this setting is enabled.
  352. #
  353. #replaygain_limit "yes"
  354. #
  355. # This setting enables on-the-fly normalization volume adjustment. This will
  356. # result in the volume of all playing audio to be adjusted so the output has
  357. # equal "loudness". This setting is disabled by default.
  358. #
  359. #volume_normalization "no"
  360. #
  361. ###############################################################################
  362. # Character Encoding ##########################################################
  363. #
  364. # If file or directory names do not display correctly for your locale then you
  365. # may need to modify this setting.
  366. #
  367. filesystem_charset "UTF-8"
  368. #
  369. # This setting controls the encoding that ID3v1 tags should be converted from.
  370. #
  371. id3v1_encoding "UTF-8"
  372. #
  373. ###############################################################################
  374. # SIDPlay decoder #############################################################
  375. #
  376. # songlength_database:
  377. # Location of your songlengths file, as distributed with the HVSC.
  378. # The sidplay plugin checks this for matching MD5 fingerprints.
  379. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  380. #
  381. # default_songlength:
  382. # This is the default playing time in seconds for songs not in the
  383. # songlength database, or in case you're not using a database.
  384. # A value of 0 means play indefinitely.
  385. #
  386. # filter:
  387. # Turns the SID filter emulation on or off.
  388. #
  389. #decoder {
  390. # plugin "sidplay"
  391. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  392. # default_songlength "120"
  393. # filter "true"
  394. #}
  395. #
  396. ###############################################################################