Advertisement
Guest User

Untitled

a guest
Nov 27th, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  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/mpd.db"
  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, otherwise logging is disabled.
  36. #
  37. log_file            "/var/lib/mpd/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 disabled by
  41. # default and the pid file will not be stored.
  42. #
  43. #pid_file           "~/.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/mpdstate"
  51. #
  52. ###############################################################################
  53.  
  54.  
  55. # General music daemon options ################################################
  56. #
  57. # This setting specifies the user that MPD will run as. MPD should never run as
  58. # root and you may use this setting to make MPD change its user ID after
  59. # initialization. This setting is disabled by default and MPD is run as the
  60. # current user.
  61. #
  62. user "user"
  63. #
  64. # This setting sets the address for the daemon to listen on. Careful attention
  65. # should be paid if this is assigned to anything other then the default, any.
  66. # This setting can deny access to control of the daemon.
  67. #
  68. # For network
  69. #bind_to_address        "any"
  70. #
  71. # And for Unix Socket
  72. #bind_to_address        "~/.mpd/socket"
  73. #
  74. # This setting is the TCP port that is desired for the daemon to get assigned
  75. # to.
  76. #
  77. #port               "6600"
  78. #
  79. # This setting controls the type of information which is logged. Available
  80. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  81. # argument is recommended for troubleshooting, though can quickly stretch
  82. # available resources on limited hardware storage.
  83. #
  84. #log_level          "default"
  85. #
  86. # If you have a problem with your MP3s ending abruptly it is recommended that
  87. # you set this argument to "no" to attempt to fix the problem. If this solves
  88. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  89. # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
  90. # point gapless MP3 playback can be enabled.
  91. #
  92. #gapless_mp3_playback           "yes"
  93. #
  94. # This setting enables MPD to create playlists in a format usable by other
  95. # music players.
  96. #
  97. #save_absolute_paths_in_playlists   "no"
  98. #
  99. # This setting defines a list of tag types that will be extracted during the
  100. # audio file discovery process. Optionally, 'comment' can be added to this
  101. # list.
  102. #
  103. #metadata_to_use    "artist,album,title,track,name,genre,date,composer,performer,disc"
  104. #
  105. ###############################################################################
  106.  
  107.  
  108. # Symbolic link behavior ######################################################
  109. #
  110. # If this setting is set to "yes", MPD will discover audio files by following
  111. # symbolic links outside of the configured music_directory.
  112. #
  113. #follow_outside_symlinks    "yes"
  114. #
  115. # If this setting is set to "yes", MPD will discover audio files by following
  116. # symbolic links inside of the configured music_directory.
  117. #
  118. #follow_inside_symlinks     "yes"
  119. #
  120. ###############################################################################
  121.  
  122.  
  123. # Zeroconf / Avahi Service Discovery ##########################################
  124. #
  125. # If this setting is set to "yes", service information will be published with
  126. # Zeroconf / Avahi.
  127. #
  128. #zeroconf_enabled       "yes"
  129. #
  130. # The argument to this setting will be the Zeroconf / Avahi unique name for
  131. # this MPD server on the network.
  132. #
  133. #zeroconf_name          "Music Player"
  134. #
  135. ###############################################################################
  136.  
  137.  
  138. # Permissions #################################################################
  139. #
  140. # If this setting is set, MPD will require password authorization. The password
  141. # can setting can be specified multiple times for different password profiles.
  142. #
  143. #password                        "password@read,add,control,admin"
  144. #
  145. # This setting specifies the permissions a user has who has not yet logged in.
  146. #
  147. #default_permissions             "read,add,control,admin"
  148. #
  149. ###############################################################################
  150.  
  151.  
  152. # Input #######################################################################
  153. #
  154.  
  155. input {
  156.         plugin "curl"
  157. #       proxy "proxy.isp.com:8080"
  158. #       proxy_user "user"
  159. #       proxy_password "password"
  160. }
  161.  
  162. #
  163. ###############################################################################
  164.  
  165. # Audio Output ################################################################
  166. #
  167. # MPD supports various audio output types, as well as playing through multiple
  168. # audio outputs at the same time, through multiple audio_output settings
  169. # blocks. Setting this block is optional, though the server will only attempt
  170. # autodetection for one sound card.
  171. #
  172. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  173. # other audio outputs.
  174. #
  175. # An example of an ALSA output:
  176. #
  177. audio_output {
  178.     type        "alsa"
  179.     name        "My ALSA Device"
  180.     device      "hw:0,0"    # optional
  181.     format      "44100:16:2"    # optional
  182.     mixer_device    "default"   # optional
  183.     mixer_control   "PCM"       # optional
  184.     mixer_index "0"     # optional
  185. }
  186. #
  187. # An example of an OSS output:
  188. #
  189. #audio_output {
  190. #   type        "oss"
  191. #   name        "My OSS Device"
  192. ##  device      "/dev/dsp"  # optional
  193. ##  format      "44100:16:2"    # optional
  194. ##  mixer_device    "/dev/mixer"    # optional
  195. ##  mixer_control   "PCM"       # optional
  196. #}
  197. #
  198. # An example of a shout output (for streaming to Icecast):
  199. #
  200. #audio_output {
  201. #   type        "shout"
  202. #   encoding    "ogg"           # optional
  203. #   name        "My Shout Stream"
  204. #   host        "localhost"
  205. #   port        "8000"
  206. #   mount       "/mpd.ogg"
  207. #   password    "hackme"
  208. #   quality     "5.0"
  209. #   bitrate     "128"
  210. #   format      "44100:16:1"
  211. ##  protocol    "icecast2"      # optional
  212. ##  user        "source"        # optional
  213. ##  description "My Stream Description" # optional
  214. ##  genre       "jazz"          # optional
  215. ##  public      "no"            # optional
  216. ##  timeout     "2"         # optional
  217. #}
  218. #
  219. # An example of a httpd output (built-in HTTP streaming server):
  220. #
  221. #audio_output {
  222. #   type        "httpd"
  223. #   name        "My HTTP Stream"
  224. #   encoder     "vorbis"        # optional, vorbis or lame
  225. #   port        "8000"
  226. ##  quality     "5.0"           # do not define if bitrate is defined
  227. #   bitrate     "128"           # do not define if quality is defined
  228. #   format      "44100:16:1"
  229. #}
  230. #
  231. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  232. #
  233. #audio_output {
  234. #   type        "pulse"
  235. #   name        "My Pulse Output"
  236. ##  server      "remote_server"     # optional
  237. ##  sink        "remote_server_sink"    # optional
  238. #}
  239. #
  240. ## Example "pipe" output:
  241. #
  242. #audio_output {
  243. #   type        "pipe"
  244. #   name        "my pipe"
  245. #   command     "aplay -f cd 2>/dev/null"
  246. ## Or if you're want to use AudioCompress
  247. #   command     "AudioCompress -m | aplay -f cd 2>/dev/null"
  248. ## Or to send raw PCM stream through PCM:
  249. #   command     "nc example.org 8765"
  250. #   format      "44100:16:2"
  251. #}
  252. #
  253. ## An example of a null output (for no audio output):
  254. #
  255. #audio_output {
  256. #   type        "null"
  257. #   name        "My Null Output"
  258. #}
  259. #
  260. # This setting will change all decoded audio to be converted to the specified
  261. # format before being passed to the audio outputs. By default, this setting is
  262. # disabled.
  263. #
  264. #audio_output_format        "44100:16:2"
  265. #
  266. # If MPD has been compiled with libsamplerate support, this setting specifies
  267. # the sample rate converter to use.  Possible values can be found in the
  268. # mpd.conf man page or the libsamplerate documentation. By default, this is
  269. # setting is disabled.
  270. #
  271. #samplerate_converter       "Fastest Sinc Interpolator"
  272. #
  273. ###############################################################################
  274.  
  275.  
  276. # Volume control mixer ########################################################
  277. #
  278. # These are the global volume control settings. By default, this setting will
  279. # be detected to the available audio output device, with preference going to
  280. # hardware mixing. Hardware and software mixers for individual audio_output
  281. # sections cannot yet be mixed.
  282. #
  283. # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
  284. # setting is used other sound applications will be affected by the volume
  285. # being controlled by MPD.
  286. #
  287. #mixer_type         "hardware"
  288. #
  289. # An example for controlling all mixers through software. This will control
  290. # all controls, even if the mixer is not supported by the device and will not
  291. # affect any other sound producing applications.
  292. #
  293. #mixer_type         "software"
  294. #
  295. # This example will not allow MPD to touch the mixer at all and will disable
  296. # all volume controls.
  297. #
  298. #mixer_type         "disabled"
  299. #
  300. ###############################################################################
  301.  
  302.  
  303. # Normalization automatic volume adjustments ##################################
  304. #
  305. # This setting specifies the type of ReplayGain to use. This setting can have
  306. # the argument "album" or "track". See <http://www.replaygain.org> for more
  307. # details. This setting is disabled by default.
  308. #
  309. #replaygain         "album"
  310. #
  311. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  312. # default this setting is disabled.
  313. #
  314. #replaygain_preamp      "0"
  315. #
  316. # This setting enables on-the-fly normalization volume adjustment. This will
  317. # result in the volume of all playing audio to be adjusted so the output has
  318. # equal "loudness". This setting is disabled by default.
  319. #
  320. #volume_normalization       "no"
  321. #
  322. ###############################################################################
  323.  
  324.  
  325. # MPD Internal Buffering ######################################################
  326. #
  327. # This setting adjusts the size of internal decoded audio buffering. Changing
  328. # this may have undesired effects. Don't change this if you don't know what you
  329. # are doing.
  330. #
  331. #audio_buffer_size      "2048"
  332. #
  333. # This setting controls the percentage of the buffer which is filled before
  334. # beginning to play. Increasing this reduces the chance of audio file skipping,
  335. # at the cost of increased time prior to audio playback.
  336. #
  337. #buffer_before_play     "10%"
  338. #
  339. ###############################################################################
  340.  
  341.  
  342. # Resource Limitations ########################################################
  343. #
  344. # These settings are various limitations to prevent MPD from using too many
  345. # resources. Generally, these settings should be minimized to prevent security
  346. # risks, depending on the operating resources.
  347. #
  348. #connection_timeout     "60"
  349. #max_connections        "10"
  350. #max_playlist_length        "16384"
  351. #max_command_list_size      "2048"
  352. #max_output_buffer_size     "8192"
  353. #
  354. ###############################################################################
  355.  
  356.  
  357. # Character Encoding ##########################################################
  358. #
  359. # If file or directory names do not display correctly for your locale then you
  360. # may need to modify this setting. After modification of this setting mpd
  361. # --create-db must be run to change the database.
  362. #
  363. #filesystem_charset     "UTF-8"
  364. #
  365. # This setting controls the encoding that ID3v1 tags should be converted from.
  366. #
  367. #id3v1_encoding         "ISO-8859-1"
  368. #
  369. ###############################################################################
  370.  
  371.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement