The configuration of Collin Doering
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.

464 lines
15KB

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