Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.79 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/data/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 "~/.config/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 "~/.config/mpd/database"
  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 "~/.config/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 "~/.config/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 "~/.config/mpd/state"
  51. #
  52. # The location of the sticker database. This is a database which
  53. # manages dynamic information attached to songs.
  54. #
  55. sticker_file "~/.config/mpd/sticker.sql"
  56. #
  57. ###############################################################################
  58.  
  59.  
  60. # General music daemon options ################################################
  61. #
  62. # This setting specifies the user that MPD will run as. MPD should never run as
  63. # root and you may use this setting to make MPD change its user ID after
  64. # initialization. This setting is disabled by default and MPD is run as the
  65. # current user.
  66. #
  67. #user "nobody"
  68. #
  69. # This setting specifies the group that MPD will run as. If not specified
  70. # primary group of user specified with "user" setting will be used (if set).
  71. # This is useful if MPD needs to be a member of group such as "audio" to
  72. # have permission to use sound card.
  73. #
  74. #group "nogroup"
  75. #
  76. # This setting sets the address for the daemon to listen on. Careful attention
  77. # should be paid if this is assigned to anything other then the default, any.
  78. # This setting can deny access to control of the daemon.
  79. #
  80. # For network
  81. #bind_to_address "any"
  82. #
  83. # And for Unix Socket
  84. #bind_to_address "~/.mpd/socket"
  85. #
  86. # This setting is the TCP port that is desired for the daemon to get assigned
  87. # to.
  88. #
  89. #port "6600"
  90. #
  91. # This setting controls the type of information which is logged. Available
  92. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  93. # argument is recommended for troubleshooting, though can quickly stretch
  94. # available resources on limited hardware storage.
  95. #
  96. #log_level "default"
  97. #
  98. # If you have a problem with your MP3s ending abruptly it is recommended that
  99. # you set this argument to "no" to attempt to fix the problem. If this solves
  100. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  101. # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
  102. # point gapless MP3 playback can be enabled.
  103. #
  104. #gapless_mp3_playback "yes"
  105. #
  106. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  107. # of starting playback after startup.
  108. #
  109. restore_paused "yes"
  110. #
  111. # This setting enables MPD to create playlists in a format usable by other
  112. # music players.
  113. #
  114. #save_absolute_paths_in_playlists "no"
  115. #
  116. # This setting defines a list of tag types that will be extracted during the
  117. # audio file discovery process. The complete list of possible values can be
  118. # found in the mpd.conf man page.
  119. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  120. #
  121. # This setting enables automatic update of MPD's database when files in
  122. # music_directory are changed.
  123. #
  124. auto_update "yes"
  125. #
  126. # Limit the depth of the directories being watched, 0 means only watch
  127. # the music directory itself. There is no limit by default.
  128. #
  129. #auto_update_depth "3"
  130. #
  131. ###############################################################################
  132.  
  133.  
  134. # Symbolic link behavior ######################################################
  135. #
  136. # If this setting is set to "yes", MPD will discover audio files by following
  137. # symbolic links outside of the configured music_directory.
  138. #
  139. #follow_outside_symlinks "yes"
  140. #
  141. # If this setting is set to "yes", MPD will discover audio files by following
  142. # symbolic links inside of the configured music_directory.
  143. #
  144. #follow_inside_symlinks "yes"
  145. #
  146. ###############################################################################
  147.  
  148.  
  149. # Zeroconf / Avahi Service Discovery ##########################################
  150. #
  151. # If this setting is set to "yes", service information will be published with
  152. # Zeroconf / Avahi.
  153. #
  154. #zeroconf_enabled "yes"
  155. #
  156. # The argument to this setting will be the Zeroconf / Avahi unique name for
  157. # this MPD server on the network.
  158. #
  159. #zeroconf_name "Music Player"
  160. #
  161. ###############################################################################
  162.  
  163.  
  164. # Permissions #################################################################
  165. #
  166. # If this setting is set, MPD will require password authorization. The password
  167. # can setting can be specified multiple times for different password profiles.
  168. #
  169. #password "password@read,add,control,admin"
  170. #
  171. # This setting specifies the permissions a user has who has not yet logged in.
  172. #
  173. #default_permissions "read,add,control,admin"
  174. #
  175. ###############################################################################
  176.  
  177.  
  178. # Database #######################################################################
  179. #
  180.  
  181. #database {
  182. # plugin "proxy"
  183. # host "other.mpd.host"
  184. # port "6600"
  185. #}
  186.  
  187. # Input #######################################################################
  188. #
  189.  
  190. input {
  191. plugin "curl"
  192. # proxy "proxy.isp.com:8080"
  193. # proxy_user "user"
  194. # proxy_password "password"
  195. }
  196.  
  197. #
  198. ###############################################################################
  199.  
  200. # Audio Output ################################################################
  201. #
  202. # MPD supports various audio output types, as well as playing through multiple
  203. # audio outputs at the same time, through multiple audio_output settings
  204. # blocks. Setting this block is optional, though the server will only attempt
  205. # autodetection for one sound card.
  206. #
  207. # An example of an ALSA output:
  208. #
  209. audio_output {
  210. type "alsa"
  211. name "My ALSA Device"
  212. ## device "hw:1,3" # optional
  213. ## mixer_type "hardware" # optional
  214. ## mixer_device "default" # optional
  215. ## mixer_control "PCM" # optional
  216. ## mixer_index "0" # optional
  217. }
  218. #
  219. # An example of an OSS output:
  220. #
  221. #audio_output {
  222. # type "oss"
  223. # name "My OSS Device"
  224. ## device "/dev/dsp" # optional
  225. ## mixer_type "hardware" # optional
  226. ## mixer_device "/dev/mixer" # optional
  227. ## mixer_control "PCM" # optional
  228. #}
  229. #
  230. # An example of a shout output (for streaming to Icecast):
  231. #
  232. #audio_output {
  233. # type "shout"
  234. # encoding "ogg" # optional
  235. # name "My Shout Stream"
  236. # host "localhost"
  237. # port "8000"
  238. # mount "/mpd.ogg"
  239. # password "hackme"
  240. # quality "5.0"
  241. # bitrate "128"
  242. # format "44100:16:1"
  243. ## protocol "icecast2" # optional
  244. ## user "source" # optional
  245. ## description "My Stream Description" # optional
  246. ## url "http://example.com" # optional
  247. ## genre "jazz" # optional
  248. ## public "no" # optional
  249. ## timeout "2" # optional
  250. ## mixer_type "software" # optional
  251. #}
  252. #
  253. # An example of a recorder output:
  254. #
  255. #audio_output {
  256. # type "recorder"
  257. # name "My recorder"
  258. # encoder "vorbis" # optional, vorbis or lame
  259. # path "/var/lib/mpd/recorder/mpd.ogg"
  260. ## quality "5.0" # do not define if bitrate is defined
  261. # bitrate "128" # do not define if quality is defined
  262. # format "44100:16:1"
  263. #}
  264. #
  265. # An example of a httpd output (built-in HTTP streaming server):
  266. #
  267. #audio_output {
  268. # type "httpd"
  269. # name "My HTTP Stream"
  270. # encoder "vorbis" # optional, vorbis or lame
  271. # port "8000"
  272. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  273. ## quality "5.0" # do not define if bitrate is defined
  274. # bitrate "128" # do not define if quality is defined
  275. # format "44100:16:1"
  276. # max_clients "0" # optional 0=no limit
  277. #}
  278. #
  279. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  280. #
  281. #audio_output {
  282. # type "pulse"
  283. # name "My Pulse Output"
  284. ## server "remote_server" # optional
  285. ## sink "remote_server_sink" # optional
  286. #}
  287. #
  288. # An example of a winmm output (Windows multimedia API).
  289. #
  290. #audio_output {
  291. # type "winmm"
  292. # name "My WinMM output"
  293. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  294. # or
  295. ## device "0" # optional
  296. ## mixer_type "hardware" # optional
  297. #}
  298. #
  299. # An example of an openal output.
  300. #
  301. #audio_output {
  302. # type "openal"
  303. # name "My OpenAL output"
  304. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  305. #}
  306. #
  307. ## Example "pipe" output:
  308. #
  309. #audio_output {
  310. # type "pipe"
  311. # name "my pipe"
  312. # command "aplay -f cd 2>/dev/null"
  313. ## Or if you're want to use AudioCompress
  314. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  315. ## Or to send raw PCM stream through PCM:
  316. # command "nc example.org 8765"
  317. # format "44100:16:2"
  318. #}
  319. #
  320. ## An example of a null output (for no audio output):
  321. #
  322. #audio_output {
  323. # type "null"
  324. # name "My Null Output"
  325. # mixer_type "none" # optional
  326. #}
  327. #
  328. # If MPD has been compiled with libsamplerate support, this setting specifies
  329. # the sample rate converter to use. Possible values can be found in the
  330. # mpd.conf man page or the libsamplerate documentation. By default, this is
  331. # setting is disabled.
  332. #
  333. #samplerate_converter "Fastest Sinc Interpolator"
  334. #
  335. ###############################################################################
  336.  
  337.  
  338. # Normalization automatic volume adjustments ##################################
  339. #
  340. # This setting specifies the type of ReplayGain to use. This setting can have
  341. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  342. # chooses between "track" and "album" depending on the current state of
  343. # random playback. If random playback is enabled then "track" mode is used.
  344. # See <http://www.replaygain.org> for more details about ReplayGain.
  345. # This setting is off by default.
  346. #
  347. #replaygain "album"
  348. #
  349. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  350. # default this setting is disabled.
  351. #
  352. #replaygain_preamp "0"
  353. #
  354. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  355. # By default this setting is disabled.
  356. #
  357. #replaygain_missing_preamp "0"
  358. #
  359. # This setting enables or disables ReplayGain limiting.
  360. # MPD calculates actual amplification based on the ReplayGain tags
  361. # and replaygain_preamp / replaygain_missing_preamp setting.
  362. # If replaygain_limit is enabled MPD will never amplify audio signal
  363. # above its original level. If replaygain_limit is disabled such amplification
  364. # might occur. By default this setting is enabled.
  365. #
  366. #replaygain_limit "yes"
  367. #
  368. # This setting enables on-the-fly normalization volume adjustment. This will
  369. # result in the volume of all playing audio to be adjusted so the output has
  370. # equal "loudness". This setting is disabled by default.
  371. #
  372. #volume_normalization "no"
  373. #
  374. ###############################################################################
  375.  
  376. # Character Encoding ##########################################################
  377. #
  378. # If file or directory names do not display correctly for your locale then you
  379. # may need to modify this setting.
  380. #
  381. #filesystem_charset "UTF-8"
  382. #
  383. # This setting controls the encoding that ID3v1 tags should be converted from.
  384. #
  385. #id3v1_encoding "ISO-8859-1"
  386. #
  387. ###############################################################################
  388.  
  389.  
  390. # SIDPlay decoder #############################################################
  391. #
  392. # songlength_database:
  393. # Location of your songlengths file, as distributed with the HVSC.
  394. # The sidplay plugin checks this for matching MD5 fingerprints.
  395. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  396. #
  397. # default_songlength:
  398. # This is the default playing time in seconds for songs not in the
  399. # songlength database, or in case you're not using a database.
  400. # A value of 0 means play indefinitely.
  401. #
  402. # filter:
  403. # Turns the SID filter emulation on or off.
  404. #
  405. #decoder {
  406. # plugin "sidplay"
  407. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  408. # default_songlength "120"
  409. # filter "true"
  410. #}
  411. #
  412. ##Visualization#######################################################################
  413.  
  414. audio_output {
  415. type "fifo"
  416. name "my_fifo"
  417. path "/tmp/mpd.fifo"
  418. format "44100:16:2"
  419. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement