Guest User

fsdf

a guest
Sep 17th, 2013
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.63 KB | None | 0 0
  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  3.  
  4. #bind_to_address "localhost"
  5.  
  6.  
  7. # Files and directories #######################################################
  8. #
  9. # This setting controls the top directory which MPD will search to discover the
  10. # available audio files and add them to the daemon's online database. This
  11. # setting defaults to the XDG directory, otherwise the music directory will be
  12. # be disabled and audio files will only be accepted over ipc socket (using
  13. # file:// protocol) or streaming files over an accepted protocol.
  14. #
  15. music_directory     "/home/foozzi/Music"
  16. #
  17. # This setting sets the MPD internal playlist directory. The purpose of this
  18. # directory is storage for playlists created by MPD. The server will use
  19. # playlist files not created by the server but only if they are in the MPD
  20. # format. This setting defaults to playlist saving being disabled.
  21. #
  22. playlist_directory      "/var/lib/mpd/playlists"
  23. #
  24. # This setting sets the location of the MPD database. This file is used to
  25. # load the database at server start up and store the database while the
  26. # server is not up. This setting defaults to disabled which will allow
  27. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  28. # files over an accepted protocol.
  29. #
  30. db_file         "/var/lib/mpd/tag_cache"
  31. #
  32. # These settings are the locations for the daemon log files for the daemon.
  33. # These logs are great for troubleshooting, depending on your log_level
  34. # settings.
  35. #
  36. # The special value "syslog" makes MPD use the local syslog daemon. This
  37. # setting defaults to logging to syslog, otherwise logging is disabled.
  38. #
  39. log_file            "/var/log/mpd/mpd.log"
  40. #
  41. # This setting sets the location of the file which stores the process ID
  42. # for use of mpd --kill and some init scripts. This setting is disabled by
  43. # default and the pid file will not be stored.
  44. #
  45. pid_file            "/var/run/mpd/pid"
  46. #
  47. # This setting sets the location of the file which contains information about
  48. # most variables to get MPD back into the same general shape it was in before
  49. # it was brought down. This setting is disabled by default and the server
  50. # state will be reset on server start up.
  51. #
  52. state_file          "/var/lib/mpd/state"
  53. #
  54. # The location of the sticker database.  This is a database which
  55. # manages dynamic information attached to songs.
  56. #
  57. sticker_file                   "/var/lib/mpd/sticker.sql"
  58. #
  59. ###############################################################################
  60.  
  61.  
  62. # General music daemon options ################################################
  63. #
  64. # This setting specifies the user that MPD will run as. MPD should never run as
  65. # root and you may use this setting to make MPD change its user ID after
  66. # initialization. This setting is disabled by default and MPD is run as the
  67. # current user.
  68. #
  69. user                "mpd"
  70. #
  71. # This setting specifies the group that MPD will run as. If not specified
  72. # primary group of user specified with "user" setting will be used (if set).
  73. # This is useful if MPD needs to be a member of group such as "audio" to
  74. # have permission to use sound card.
  75. #
  76. #group                          "nogroup"
  77. #
  78. # This setting sets the address for the daemon to listen on. Careful attention
  79. # should be paid if this is assigned to anything other then the default, any.
  80. # This setting can deny access to control of the daemon. Choose any if you want
  81. # to have mpd listen on every address
  82. #
  83. # For network
  84. bind_to_address     "localhost"
  85. #
  86. # And for Unix Socket
  87. #bind_to_address        "/var/run/mpd/socket"
  88. #
  89. # This setting is the TCP port that is desired for the daemon to get assigned
  90. # to.
  91. #
  92. #port               "6600"
  93. #
  94. # This setting controls the type of information which is logged. Available
  95. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  96. # argument is recommended for troubleshooting, though can quickly stretch
  97. # available resources on limited hardware storage.
  98. #
  99. #log_level          "default"
  100. #
  101. # If you have a problem with your MP3s ending abruptly it is recommended that
  102. # you set this argument to "no" to attempt to fix the problem. If this solves
  103. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  104. # (available as vbrfix in the debian archive), at which
  105. # point gapless MP3 playback can be enabled.
  106. #
  107. #gapless_mp3_playback           "yes"
  108. #
  109. # This setting enables MPD to create playlists in a format usable by other
  110. # music players.
  111. #
  112. #save_absolute_paths_in_playlists   "no"
  113. #
  114. # This setting defines a list of tag types that will be extracted during the
  115. # audio file discovery process. Optionally, 'comment' can be added to this
  116. # list.
  117. #
  118. #metadata_to_use    "artist,album,title,track,name,genre,date,composer,performer,disc"
  119. #
  120. # This setting enables automatic update of MPD's database when files in
  121. # music_directory are changed.
  122. #
  123. #auto_update    "yes"
  124. #
  125. # Limit the depth of the directories being watched, 0 means only watch
  126. # the music directory itself.  There is no limit by default.
  127. #
  128. #auto_update_depth "3"
  129. #
  130. ###############################################################################
  131.  
  132.  
  133. # Symbolic link behavior ######################################################
  134. #
  135. # If this setting is set to "yes", MPD will discover audio files by following
  136. # symbolic links outside of the configured music_directory.
  137. #
  138. #follow_outside_symlinks    "yes"
  139. #
  140. # If this setting is set to "yes", MPD will discover audio files by following
  141. # symbolic links inside of the configured music_directory.
  142. #
  143. #follow_inside_symlinks     "yes"
  144. #
  145. ###############################################################################
  146.  
  147.  
  148. # Zeroconf / Avahi Service Discovery ##########################################
  149. #
  150. # If this setting is set to "yes", service information will be published with
  151. # Zeroconf / Avahi.
  152. #
  153. #zeroconf_enabled       "yes"
  154. #
  155. # The argument to this setting will be the Zeroconf / Avahi unique name for
  156. # this MPD server on the network.
  157. #
  158. #zeroconf_name          "Music Player"
  159. #
  160. ###############################################################################
  161.  
  162.  
  163. # Permissions #################################################################
  164. #
  165. # If this setting is set, MPD will require password authorization. The password
  166. # can setting can be specified multiple times for different password profiles.
  167. #
  168. #password                        "password@read,add,control,admin"
  169. #
  170. # This setting specifies the permissions a user has who has not yet logged in.
  171. #
  172. #default_permissions             "read,add,control,admin"
  173. #
  174. ###############################################################################
  175.  
  176.  
  177. # Input #######################################################################
  178. #
  179.  
  180. input {
  181.         plugin "curl"
  182. #       proxy "proxy.isp.com:8080"
  183. #       proxy_user "user"
  184. #       proxy_password "password"
  185. }
  186.  
  187. #
  188. ###############################################################################
  189.  
  190. # Audio Output ################################################################
  191. #
  192. # MPD supports various audio output types, as well as playing through multiple
  193. # audio outputs at the same time, through multiple audio_output settings
  194. # blocks. Setting this block is optional, though the server will only attempt
  195. # autodetection for one sound card.
  196. #
  197. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  198. # other audio outputs.
  199. #
  200. # An example of an ALSA output:
  201. #
  202. audio_output {
  203.     type        "alsa"
  204.     name        "My ALSA Device"
  205.     device      "hw:0,0"    # optional
  206.     format      "44100:16:2"    # optional
  207.     mixer_device    "default"   # optional
  208.     mixer_control   "PCM"       # optional
  209.     mixer_index "0"     # optional
  210. }
  211. #
  212. # An example of an OSS output:
  213. #
  214. #audio_output {
  215. #   type        "oss"
  216. #   name        "My OSS Device"
  217. #   device      "/dev/dsp"  # optional
  218. #   format      "44100:16:2"    # optional
  219. #   mixer_device    "/dev/mixer"    # optional
  220. #   mixer_control   "PCM"       # optional
  221. #}
  222. #
  223. # An example of a shout output (for streaming to Icecast):
  224. #
  225. #audio_output {
  226. #   type        "shout"
  227. #   encoding    "ogg"           # optional
  228. #   name        "My Shout Stream"
  229. #   host        "localhost"
  230. #   port        "8000"
  231. #   mount       "/mpd.ogg"
  232. #   password    "hackme"
  233. #   quality     "5.0"
  234. #   bitrate     "128"
  235. #   format      "44100:16:1"
  236. #   protocol    "icecast2"      # optional
  237. #   user        "source"        # optional
  238. #   description "My Stream Description" # optional
  239. #   genre       "jazz"          # optional
  240. #   public      "no"            # optional
  241. #   timeout     "2"         # optional
  242. #}
  243. #
  244. # An example of a recorder output:
  245. #
  246. #audio_output {
  247. #       type            "recorder"
  248. #       name            "My recorder"
  249. #       encoder         "vorbis"                # optional, vorbis or lame
  250. #       path            "/var/lib/mpd/recorder/mpd.ogg"
  251. ##      quality         "5.0"                   # do not define if bitrate is defined
  252. #       bitrate         "128"                   # do not define if quality is defined
  253. #       format          "44100:16:1"
  254. #}
  255. #
  256. # An example of a httpd output (built-in HTTP streaming server):
  257. #
  258. #audio_output {
  259. #   type        "httpd"
  260. #   name        "My HTTP Stream"
  261. #   encoder     "vorbis"        # optional, vorbis or lame
  262. #   port        "8000"
  263. #   quality     "5.0"           # do not define if bitrate is defined
  264. #   bitrate     "128"           # do not define if quality is defined
  265. #   format      "44100:16:1"
  266. #}
  267. #
  268. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  269. #
  270. #audio_output {
  271. #   type        "pulse"
  272. #   name        "My Pulse Output"
  273. #   server      "remote_server"     # optional
  274. #   sink        "remote_server_sink"    # optional
  275. #}
  276. #
  277. ## Example "pipe" output:
  278. #
  279. #audio_output {
  280. #   type        "pipe"
  281. #   name        "my pipe"
  282. #   command     "aplay -f cd 2>/dev/null"
  283. ## Or if you're want to use AudioCompress
  284. #   command     "AudioCompress -m | aplay -f cd 2>/dev/null"
  285. ## Or to send raw PCM stream through PCM:
  286. #   command     "nc example.org 8765"
  287. #   format      "44100:16:2"
  288. #}
  289. #
  290. ## An example of a null output (for no audio output):
  291. #
  292. #audio_output {
  293. #   type        "null"
  294. #   name        "My Null Output"
  295. #}
  296. #
  297. # This setting will change all decoded audio to be converted to the specified
  298. # format before being passed to the audio outputs. By default, this setting is
  299. # disabled.
  300. #
  301. #audio_output_format        "44100:16:2"
  302. #
  303. # If MPD has been compiled with libsamplerate support, this setting specifies
  304. # the sample rate converter to use.  Possible values can be found in the
  305. # mpd.conf man page or the libsamplerate documentation. By default, this is
  306. # setting is disabled.
  307. #
  308. #samplerate_converter       "Fastest Sinc Interpolator"
  309. #
  310. ###############################################################################
  311.  
  312.  
  313. # Volume control mixer ########################################################
  314. #
  315. # These are the global volume control settings. By default, this setting will
  316. # be detected to the available audio output device, with preference going to
  317. # hardware mixing. Hardware and software mixers for individual audio_output
  318. # sections cannot yet be mixed.
  319. #
  320. # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
  321. # setting is used other sound applications will be affected by the volume
  322. # being controlled by MPD.
  323. #
  324. #mixer_type         "hardware"
  325. #
  326. # An example for controlling all mixers through software. This will control
  327. # all controls, even if the mixer is not supported by the device and will not
  328. # affect any other sound producing applications.
  329. #
  330. #mixer_type         "software"
  331. #
  332. # This example will not allow MPD to touch the mixer at all and will disable
  333. # all volume controls.
  334. #
  335. #mixer_type         "disabled"
  336. #
  337. ###############################################################################
  338.  
  339.  
  340. # Normalization automatic volume adjustments ##################################
  341. #
  342. # This setting specifies the type of ReplayGain to use. This setting can have
  343. # the argument "album" or "track". See <http://www.replaygain.org> for more
  344. # details. This setting is disabled by default.
  345. #
  346. #replaygain         "album"
  347. #
  348. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  349. # default this setting is disabled.
  350. #
  351. #replaygain_preamp      "0"
  352. #
  353. # This setting enables on-the-fly normalization volume adjustment. This will
  354. # result in the volume of all playing audio to be adjusted so the output has
  355. # equal "loudness". This setting is disabled by default.
  356. #
  357. #volume_normalization       "no"
  358. #
  359. ###############################################################################
  360.  
  361.  
  362. # MPD Internal Buffering ######################################################
  363. #
  364. # This setting adjusts the size of internal decoded audio buffering. Changing
  365. # this may have undesired effects. Don't change this if you don't know what you
  366. # are doing.
  367. #
  368. #audio_buffer_size      "2048"
  369. #
  370. # This setting controls the percentage of the buffer which is filled before
  371. # beginning to play. Increasing this reduces the chance of audio file skipping,
  372. # at the cost of increased time prior to audio playback.
  373. #
  374. #buffer_before_play     "10%"
  375. #
  376. ###############################################################################
  377.  
  378.  
  379. # Resource Limitations ########################################################
  380. #
  381. # These settings are various limitations to prevent MPD from using too many
  382. # resources. Generally, these settings should be minimized to prevent security
  383. # risks, depending on the operating resources.
  384. #
  385. #connection_timeout     "60"
  386. #max_connections        "10"
  387. #max_playlist_length        "16384"
  388. #max_command_list_size      "2048"
  389. #max_output_buffer_size     "8192"
  390. #
  391. ###############################################################################
  392.  
  393.  
  394. # Character Encoding ##########################################################
  395. #
  396. # If file or directory names do not display correctly for your locale then you
  397. # may need to modify this setting. After modification of this setting mpd
  398. # --create-db must be run to change the database.
  399. #
  400. filesystem_charset      "UTF-8"
  401. #
  402. # This setting controls the encoding that ID3v1 tags should be converted from.
  403. #
  404. id3v1_encoding          "UTF-8"
  405. #
  406. ###############################################################################
  407. # SIDPlay decoder #############################################################
  408. #
  409. # songlength_database:
  410. #  Location of your songlengths file, as distributed with the HVSC.
  411. #  The sidplay plugin checks this for matching MD5 fingerprints.
  412. #  See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  413. #
  414. # default_songlength:
  415. #  This is the default playing time in seconds for songs not in the
  416. #  songlength database, or in case you're not using a database.
  417. #  A value of 0 means play indefinitely.
  418. #
  419. # filter:
  420. #  Turns the SID filter emulation on or off.
  421. #
  422. #decoder {
  423. #       plugin                  "sidplay"
  424. #       songlength_database     "/media/C64Music/DOCUMENTS/Songlengths.txt"
  425. #       default_songlength      "120"
  426. #       filter "true"
  427. #}
  428. #
  429. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment