Advertisement
Guest User

mpd conf

a guest
Feb 2nd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.42 KB | None | 0 0
  1. # An example configuration file for MPD.
  2. # Read the user manual for documentation: http://www.musicpd.org/doc/user/
  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 "/mnt/storage/studio12"
  14.  
  15. #
  16. # This setting sets the MPD internal playlist directory. The purpose of this
  17. # directory is storage for playlists created by MPD. The server will use
  18. # playlist files not created by the server but only if they are in the MPD
  19. # format. This setting defaults to playlist saving being disabled.
  20. #
  21. playlist_directory "/home/mpd/.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 "/home/mpd/.mpd/database"
  30. #
  31. # These settings are the locations for the daemon log files for the daemon.
  32. # These logs are great for troubleshooting, depending on your log_level
  33. # settings.
  34. #
  35. # The special value "syslog" makes MPD use the local syslog daemon. This
  36. # setting defaults to logging to syslog, otherwise logging is disabled.
  37. #
  38. log_file "/home/mpd/.mpd/log"
  39. #
  40. # This setting sets the location of the file which stores the process ID
  41. # for use of mpd --kill and some init scripts. This setting is disabled by
  42. # default and the pid file will not be stored.
  43. #
  44. pid_file "/home/mpd/.mpd/pid"
  45. #
  46. # This setting sets the location of the file which contains information about
  47. # most variables to get MPD back into the same general shape it was in before
  48. # it was brought down. This setting is disabled by default and the server
  49. # state will be reset on server start up.
  50. #
  51. state_file "/home/mpd/.mpd/state"
  52. #
  53. # The location of the sticker database. This is a database which
  54. # manages dynamic information attached to songs.
  55. #
  56. sticker_file "/home/mpd/.mpd/sticker.sql"
  57. #
  58. ###############################################################################
  59.  
  60.  
  61. # General music daemon options ################################################
  62. #
  63. # This setting specifies the user that MPD will run as. MPD should never run as
  64. # root and you may use this setting to make MPD change its user ID after
  65. # initialization. This setting is disabled by default and MPD is run as the
  66. # current user.
  67. #
  68. user "mpd"
  69. #
  70. # This setting specifies the group that MPD will run as. If not specified
  71. # primary group of user specified with "user" setting will be used (if set).
  72. # This is useful if MPD needs to be a member of group such as "audio" to
  73. # have permission to use sound card.
  74. #
  75. group "mpd"
  76. #
  77. # This setting sets the address for the daemon to listen on. Careful attention
  78. # should be paid if this is assigned to anything other then the default, any.
  79. # This setting can deny access to control of the daemon.
  80. #
  81. # For network
  82. bind_to_address "127.0.0.1"
  83. #
  84. # And for Unix Socket
  85. #bind_to_address "~/.mpd/socket"
  86. #
  87. # This setting is the TCP port that is desired for the daemon to get assigned
  88. # to.
  89. #
  90. port "6600"
  91. #
  92. # This setting controls the type of information which is logged. Available
  93. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  94. # argument is recommended for troubleshooting, though can quickly stretch
  95. # available resources on limited hardware storage.
  96. #
  97. #log_level "default"
  98. #
  99. # If you have a problem with your MP3s ending abruptly it is recommended that
  100. # you set this argument to "no" to attempt to fix the problem. If this solves
  101. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  102. # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
  103. # point gapless MP3 playback can be enabled.
  104. #
  105. gapless_mp3_playback "yes"
  106. #
  107. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  108. # of starting playback after startup.
  109. #
  110. #restore_paused "no"
  111. #
  112. # This setting enables MPD to create playlists in a format usable by other
  113. # music players.
  114. #
  115. #save_absolute_paths_in_playlists "no"
  116. #
  117. # This setting defines a list of tag types that will be extracted during the
  118. # audio file discovery process. The complete list of possible values can be
  119. # found in the mpd.conf man page.
  120. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  121. #
  122. # This setting enables automatic update of MPD's database when files in
  123. # music_directory are changed.
  124. #
  125. auto_update "yes"
  126. #
  127. # Limit the depth of the directories being watched, 0 means only watch
  128. # the music directory itself. There is no limit by default.
  129. #
  130. #auto_update_depth "3"
  131. #
  132. ###############################################################################
  133.  
  134.  
  135. # Symbolic link behavior ######################################################
  136. #
  137. # If this setting is set to "yes", MPD will discover audio files by following
  138. # symbolic links outside of the configured music_directory.
  139. #
  140. follow_outside_symlinks "yes"
  141. #
  142. # If this setting is set to "yes", MPD will discover audio files by following
  143. # symbolic links inside of the configured music_directory.
  144. #
  145. follow_inside_symlinks "yes"
  146. #
  147. ###############################################################################
  148.  
  149.  
  150.  
  151. # Database #######################################################################
  152. #
  153.  
  154. #database {
  155. # plugin "proxy"
  156. # host "other.mpd.host"
  157. # port "6600"
  158. #}
  159.  
  160. # Input #######################################################################
  161. #
  162.  
  163. input {
  164. plugin "curl"
  165. # proxy "proxy.isp.com:8080"
  166. # proxy_user "user"
  167. # proxy_password "password"
  168. }
  169.  
  170. #
  171. ###############################################################################
  172.  
  173. # Audio Output ################################################################
  174. #
  175. # MPD supports various audio output types, as well as playing through multiple
  176. # audio outputs at the same time, through multiple audio_output settings
  177. # blocks. Setting this block is optional, though the server will only attempt
  178. # autodetection for one sound card.
  179. #
  180. # An example of an ALSA output:
  181. mixer_type "software"
  182.  
  183. audio_output {
  184. type "alsa"
  185. name "My ALSA Device"
  186. device "hw:0,0" # optional
  187. # mixer_type "hardware" # optional
  188. # mixer_device "default" # optional
  189. # mixer_control "PCM" # optional
  190. # mixer_index "0" # optional
  191. }
  192.  
  193.  
  194. #
  195. # If MPD has been compiled with libsamplerate support, this setting specifies
  196. # the sample rate converter to use. Possible values can be found in the
  197. # mpd.conf man page or the libsamplerate documentation. By default, this is
  198. # setting is disabled.
  199. #
  200. #samplerate_converter "Fastest Sinc Interpolator"
  201. #
  202. ###############################################################################
  203.  
  204.  
  205. # Normalization automatic volume adjustments ##################################
  206. #
  207. # This setting specifies the type of ReplayGain to use. This setting can have
  208. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  209. # chooses between "track" and "album" depending on the current state of
  210. # random playback. If random playback is enabled then "track" mode is used.
  211. # See <http://www.replaygain.org> for more details about ReplayGain.
  212. # This setting is off by default.
  213. #
  214. replaygain "off"
  215. #
  216. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  217. # default this setting is disabled.
  218. #
  219. #replaygain_preamp "0"
  220. #
  221. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  222. # By default this setting is disabled.
  223. #
  224. #replaygain_missing_preamp "0"
  225. #
  226. # This setting enables or disables ReplayGain limiting.
  227. # MPD calculates actual amplification based on the ReplayGain tags
  228. # and replaygain_preamp / replaygain_missing_preamp setting.
  229. # If replaygain_limit is enabled MPD will never amplify audio signal
  230. # above its original level. If replaygain_limit is disabled such amplification
  231. # might occur. By default this setting is enabled.
  232. #
  233. #replaygain_limit "yes"
  234. #
  235. # This setting enables on-the-fly normalization volume adjustment. This will
  236. # result in the volume of all playing audio to be adjusted so the output has
  237. # equal "loudness". This setting is disabled by default.
  238. #
  239. volume_normalization "no"
  240. #
  241. ###############################################################################
  242.  
  243. # Character Encoding ##########################################################
  244. #
  245. # If file or directory names do not display correctly for your locale then you
  246. # may need to modify this setting.
  247. #
  248. filesystem_charset "UTF-8"
  249. #
  250. # This setting controls the encoding that ID3v1 tags should be converted from.
  251. #
  252. id3v1_encoding "UTF-8"
  253. #
  254. ###############################################################################
  255.  
  256.  
  257. # SIDPlay decoder #############################################################
  258. #
  259. # songlength_database:
  260. # Location of your songlengths file, as distributed with the HVSC.
  261. # The sidplay plugin checks this for matching MD5 fingerprints.
  262. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  263. #
  264. # default_songlength:
  265. # This is the default playing time in seconds for songs not in the
  266. # songlength database, or in case you're not using a database.
  267. # A value of 0 means play indefinitely.
  268. #
  269. # filter:
  270. # Turns the SID filter emulation on or off.
  271. #
  272. #decoder {
  273. # plugin "sidplay"
  274. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  275. # default_songlength "120"
  276. # filter "true"
  277. #}
  278. #
  279. ###############################################################################
  280.  
  281. # Resource Limitations ########################################################
  282. #
  283. # These settings are various limitations to prevent MPD from using too many
  284. # resources. Generally, these settings should be minimized to prevent security
  285. # risks, depending on the operating resources.
  286. #
  287. #connection_timeout "60"
  288. max_connections "300"
  289. max_playlist_length "100000"
  290. #max_command_list_size "2048"
  291. #max_output_buffer_size "8192"
  292. #
  293. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement