Share Pastebin
Guest
Public paste!

mpd

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