Guest User

Untitled

a guest
Jul 18th, 2010
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.62 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.  
  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/moogler/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. playlist_directory "/home/moogler/.mpd/playlists"
  22. #
  23. # This setting sets the location of the MPD database. This file is used to
  24. # load the database at server start up and store the database while the
  25. # server is not up. This setting defaults to disabled which will allow
  26. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  27. # files over an accepted protocol.
  28. #
  29. #db_file "/var/lib/mpd/mpd.db"
  30. db_file "/home/moogler/.mpd/mpd.db"
  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 "/home/moogler/.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 "/home/moogler/.mpd/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/mpdstate"
  53. state_file "/home/moogler/.mpd/mpdstate"
  54. #
  55. ###############################################################################
  56.  
  57.  
  58. # General music daemon options ################################################
  59. #
  60. # This setting specifies the user that MPD will run as. MPD should never run as
  61. # root and you may use this setting to make MPD change its user ID after
  62. # initialization. This setting is disabled by default and MPD is run as the
  63. # current user.
  64. #
  65. #user "mpd"
  66. #
  67. # This setting sets the address for the daemon to listen on. Careful attention
  68. # should be paid if this is assigned to anything other then the default, any.
  69. # This setting can deny access to control of the daemon.
  70. #
  71. # For network
  72. bind_to_address "127.0.0.1"
  73. #
  74. # And for Unix Socket
  75. #bind_to_address "~/.mpd/socket"
  76. #
  77. # This setting is the TCP port that is desired for the daemon to get assigned
  78. # to.
  79. #
  80. #port "6600"
  81. #
  82. # This setting controls the type of information which is logged. Available
  83. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  84. # argument is recommended for troubleshooting, though can quickly stretch
  85. # available resources on limited hardware storage.
  86. #
  87. #log_level "default"
  88. #
  89. # If you have a problem with your MP3s ending abruptly it is recommended that
  90. # you set this argument to "no" to attempt to fix the problem. If this solves
  91. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  92. # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
  93. # point gapless MP3 playback can be enabled.
  94. #
  95. #gapless_mp3_playback "yes"
  96. #
  97. # This setting enables MPD to create playlists in a format usable by other
  98. # music players.
  99. #
  100. #save_absolute_paths_in_playlists "no"
  101. #
  102. # This setting defines a list of tag types that will be extracted during the
  103. # audio file discovery process. Optionally, 'comment' can be added to this
  104. # list.
  105. #
  106. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  107. #
  108. ###############################################################################
  109.  
  110.  
  111. # Symbolic link behavior ######################################################
  112. #
  113. # If this setting is set to "yes", MPD will discover audio files by following
  114. # symbolic links outside of the configured music_directory.
  115. #
  116. follow_outside_symlinks "yes"
  117. #
  118. # If this setting is set to "yes", MPD will discover audio files by following
  119. # symbolic links inside of the configured music_directory.
  120. #
  121. follow_inside_symlinks "yes"
  122. #
  123. ###############################################################################
  124.  
  125.  
  126. # Zeroconf / Avahi Service Discovery ##########################################
  127. #
  128. # If this setting is set to "yes", service information will be published with
  129. # Zeroconf / Avahi.
  130. #
  131. #zeroconf_enabled "yes"
  132. #
  133. # The argument to this setting will be the Zeroconf / Avahi unique name for
  134. # this MPD server on the network.
  135. #
  136. #zeroconf_name "quarkup music daemon"
  137. #
  138. ###############################################################################
  139.  
  140.  
  141. # Permissions #################################################################
  142. #
  143. # If this setting is set, MPD will require password authorization. The password
  144. # can setting can be specified multiple times for different password profiles.
  145. #
  146. password "wtfidm@read,add,control,admin"
  147. #
  148. # This setting specifies the permissions a user has who has not yet logged in.
  149. #
  150. default_permissions "read,add,control"
  151. #
  152. ###############################################################################
  153.  
  154.  
  155. # Input #######################################################################
  156. #
  157.  
  158. input {
  159. plugin "curl"
  160. # proxy "proxy.isp.com:8080"
  161. # proxy_user "user"
  162. # proxy_password "password"
  163. }
  164.  
  165. #
  166. ###############################################################################
  167.  
  168. # Audio 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 "ISO-8859-1"
  371. #
  372. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment