Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 12.56 KB | Hits: 54 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  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         "/home/gabriela/Música"
  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/tag_cache"
  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/log/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                        "/var/run/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. ###############################################################################
  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                            "mpd"
  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         "localhost"
  70. #
  71. # And for Unix Socket
  72. #bind_to_address                "/var/run/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. # MPD supports various audio output types, as well as playing through multiple
  167. # audio outputs at the same time, through multiple audio_output settings
  168. # blocks. Setting this block is optional, though the server will only attempt
  169. # autodetection for one sound card.
  170. #
  171. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  172. # other audio outputs.
  173. #
  174. # An example of an ALSA output:
  175. #
  176.  
  177. audio_output {
  178. type "pulse"
  179. name "My MPD PulseAudio Output"
  180. }
  181.  
  182.  
  183. #audio_output {
  184. #       type            "alsa"
  185. #       name            "My ALSA Device"
  186. #       device          "hw:0,0"        # optional
  187. #       format          "44100:16:2"    # optional
  188. #       mixer_device    "default"       # optional
  189. #       mixer_control   "PCM"           # optional
  190. #       mixer_index     "0"             # optional
  191. #}
  192. #
  193. # An example of an OSS output:
  194. #
  195. #audio_output {
  196. #       type            "oss"
  197. #       name            "My OSS Device"
  198. #       device          "/dev/dsp"      # optional
  199. #       format          "44100:16:2"    # optional
  200. #       mixer_device    "/dev/mixer"    # optional
  201. #       mixer_control   "PCM"           # optional
  202. #}
  203. #
  204. # An example of a shout output (for streaming to Icecast):
  205. #
  206. #audio_output {
  207. #       type            "shout"
  208. #       encoding        "ogg"                   # optional
  209. #       name            "My Shout Stream"
  210. #       host            "localhost"
  211. #       port            "8000"
  212. #       mount           "/mpd.ogg"
  213. #       password        "hackme"
  214. #       quality         "5.0"
  215. #       bitrate         "128"
  216. #       format          "44100:16:1"
  217. #       protocol        "icecast2"              # optional
  218. #       user            "source"                # optional
  219. #       description     "My Stream Description" # optional
  220. #       genre           "jazz"                  # optional
  221. #       public          "no"                    # optional
  222. #       timeout         "2"                     # optional
  223. #}
  224. #
  225. # An example of a httpd output (built-in HTTP streaming server):
  226. #
  227. #audio_output {
  228. #       type            "httpd"
  229. #       name            "My HTTP Stream"
  230. #       encoder         "vorbis"                # optional, vorbis or lame
  231. #       port            "8000"
  232. #       quality         "5.0"                   # do not define if bitrate is defined
  233. #       bitrate         "128"                   # do not define if quality is defined
  234. #       format          "44100:16:1"
  235. #}
  236. #
  237. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  238. #
  239. #audio_output {
  240. #       type            "pulse"
  241. #       name            "My Pulse Output"
  242. #       server          "remote_server"         # optional
  243. #       sink            "remote_server_sink"    # optional
  244. #}
  245. #
  246. ## Example "pipe" output:
  247. #
  248. #audio_output {
  249. #       type            "pipe"
  250. #       name            "my pipe"
  251. #       command         "aplay -f cd 2>/dev/null"
  252. ## Or if you're want to use AudioCompress
  253. #       command         "AudioCompress -m | aplay -f cd 2>/dev/null"
  254. ## Or to send raw PCM stream through PCM:
  255. #       command         "nc example.org 8765"
  256. #       format          "44100:16:2"
  257. #}
  258. #
  259. ## An example of a null output (for no audio output):
  260. #
  261. #audio_output {
  262. #       type            "null"
  263. #       name            "My Null Output"
  264. #}
  265. #
  266. # This setting will change all decoded audio to be converted to the specified
  267. # format before being passed to the audio outputs. By default, this setting is
  268. # disabled.
  269. #
  270. #audio_output_format            "44100:16:2"
  271. #
  272. # If MPD has been compiled with libsamplerate support, this setting specifies
  273. # the sample rate converter to use.  Possible values can be found in the
  274. # mpd.conf man page or the libsamplerate documentation. By default, this is
  275. # setting is disabled.
  276. #
  277. #samplerate_converter           "Fastest Sinc Interpolator"
  278. #
  279. ###############################################################################
  280.  
  281.  
  282. # Volume control mixer ########################################################
  283. #
  284. # These are the global volume control settings. By default, this setting will
  285. # be detected to the available audio output device, with preference going to
  286. # hardware mixing. Hardware and software mixers for individual audio_output
  287. # sections cannot yet be mixed.
  288. #
  289. # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
  290. # setting is used other sound applications will be affected by the volume
  291. # being controlled by MPD.
  292. #
  293. #mixer_type                     "hardware"
  294. #
  295. # An example for controlling all mixers through software. This will control
  296. # all controls, even if the mixer is not supported by the device and will not
  297. # affect any other sound producing applications.
  298. #
  299. #mixer_type                     "software"
  300. #
  301. # This example will not allow MPD to touch the mixer at all and will disable
  302. # all volume controls.
  303. #
  304. #mixer_type                     "disabled"
  305. #
  306. ###############################################################################
  307.  
  308.  
  309. # Normalization automatic volume adjustments ##################################
  310. #
  311. # This setting specifies the type of ReplayGain to use. This setting can have
  312. # the argument "album" or "track". See <http://www.replaygain.org> for more
  313. # details. This setting is disabled by default.
  314. #
  315. #replaygain                     "album"
  316. #
  317. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  318. # default this setting is disabled.
  319. #
  320. #replaygain_preamp              "0"
  321. #
  322. # This setting enables on-the-fly normalization volume adjustment. This will
  323. # result in the volume of all playing audio to be adjusted so the output has
  324. # equal "loudness". This setting is disabled by default.
  325. #
  326. #volume_normalization           "no"
  327. #
  328. ###############################################################################
  329.  
  330.  
  331. # MPD Internal Buffering ######################################################
  332. #
  333. # This setting adjusts the size of internal decoded audio buffering. Changing
  334. # this may have undesired effects. Don't change this if you don't know what you
  335. # are doing.
  336. #
  337. #audio_buffer_size              "2048"
  338. #
  339. # This setting controls the percentage of the buffer which is filled before
  340. # beginning to play. Increasing this reduces the chance of audio file skipping,
  341. # at the cost of increased time prior to audio playback.
  342. #
  343. #buffer_before_play             "10%"
  344. #
  345. ###############################################################################
  346.  
  347.  
  348. # Resource Limitations ########################################################
  349. #
  350. # These settings are various limitations to prevent MPD from using too many
  351. # resources. Generally, these settings should be minimized to prevent security
  352. # risks, depending on the operating resources.
  353. #
  354. #connection_timeout             "60"
  355. #max_connections                "10"
  356. #max_playlist_length            "16384"
  357. #max_command_list_size          "2048"
  358. #max_output_buffer_size         "8192"
  359. #
  360. ###############################################################################
  361.  
  362.  
  363. # Character Encoding ##########################################################
  364. #
  365. # If file or directory names do not display correctly for your locale then you
  366. # may need to modify this setting. After modification of this setting mpd
  367. # --create-db must be run to change the database.
  368. #
  369. filesystem_charset              "UTF-8"
  370. #
  371. # This setting controls the encoding that ID3v1 tags should be converted from.
  372. #
  373. id3v1_encoding                  "UTF-8"
  374. #
  375. ###############################################################################