SHARE
TWEET

Untitled

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