Advertisement
xcelleratr

mpd.conf file

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