Advertisement
Algabe

mpd.conf

Nov 5th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.10 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/algabe/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 "/home/algabe/.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 "/home/algabe/.mpd/mpd.db"
  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 "/home/algabe/.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 "/home/algabe/.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 "/home/algabe/.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 "~/.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 "algabe"
  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 "audio"
  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 "localhost"
  82. #
  83. # And for Unix Socket
  84. #bind_to_address "home/algabe/.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 "verbose"
  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 "no"
  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. # Input #######################################################################
  179. #
  180.  
  181. input {
  182. plugin "curl"
  183. # proxy "proxy.isp.com:8080"
  184. # proxy_user "user"
  185. # proxy_password "password"
  186. }
  187.  
  188. #
  189. ###############################################################################
  190.  
  191. # Audio Output ################################################################
  192. #
  193. # MPD supports various audio output types, as well as playing through multiple
  194. # audio outputs at the same time, through multiple audio_output settings
  195. # blocks. Setting this block is optional, though the server will only attempt
  196. # autodetection for one sound card.
  197. #
  198. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  199. # other audio outputs.
  200. #
  201. # An example of an ALSA output:
  202. #
  203. audio_output {
  204. type "alsa"
  205. name "My ALSA Device"
  206. device "hw:0,0" # optional
  207. format "44100:16:2" # optional
  208. mixer_type "hardware" # optional
  209. mixer_device "default" # optional
  210. mixer_control "Master" # optional
  211. mixer_index "0" # optional
  212. }
  213. #
  214. # An example of an OSS output:
  215. #
  216. #audio_output {
  217. # type "oss"
  218. # name "My OSS Device"
  219. ## device "/dev/dsp" # optional
  220. ## format "44100:16:2" # optional
  221. ## mixer_type "hardware" # optional
  222. ## mixer_device "/dev/mixer" # optional
  223. ## mixer_control "PCM" # optional
  224. #}
  225. #
  226. # An example of a shout output (for streaming to Icecast):
  227. #
  228. #audio_output {
  229. # type "shout"
  230. # encoding "ogg" # optional
  231. # name "My Shout Stream"
  232. # host "localhost"
  233. # port "8000"
  234. # mount "/mpd.ogg"
  235. # password "hackme"
  236. # quality "5.0"
  237. # bitrate "128"
  238. # format "44100:16:1"
  239. ## protocol "icecast2" # optional
  240. ## user "source" # optional
  241. ## description "My Stream Description" # optional
  242. ## url "http://example.com" # optional
  243. ## genre "jazz" # optional
  244. ## public "no" # optional
  245. ## timeout "2" # optional
  246. ## mixer_type "software" # optional
  247. #}
  248. #
  249. # An example of a recorder output:
  250. #
  251. #audio_output {
  252. # type "recorder"
  253. # name "My recorder"
  254. # encoder "vorbis" # optional, vorbis or lame
  255. # path "/var/lib/mpd/recorder/mpd.ogg"
  256. ## quality "5.0" # do not define if bitrate is defined
  257. # bitrate "128" # do not define if quality is defined
  258. # format "44100:16:1"
  259. #}
  260. #
  261. # An example of a httpd output (built-in HTTP streaming server):
  262. #
  263. #audio_output {
  264. # type "httpd"
  265. # name "My HTTP Stream"
  266. # encoder "vorbis" # optional, vorbis or lame
  267. # port "8000"
  268. # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
  269. ## quality "5.0" # do not define if bitrate is defined
  270. # bitrate "128" # do not define if quality is defined
  271. # format "44100:16:1"
  272. # max_clients "0" # optional 0=no limit
  273. #}
  274. #
  275. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  276. #
  277. #audio_output {
  278. # type "pulse"
  279. # name "My Pulse Output"
  280. ## server "remote_server" # optional
  281. ## sink "remote_server_sink" # optional
  282. #}
  283. #
  284. # An example of a winmm output (Windows multimedia API).
  285. #
  286. #audio_output {
  287. # type "winmm"
  288. # name "My WinMM output"
  289. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  290. # or
  291. ## device "0" # optional
  292. ## mixer_type "hardware" # optional
  293. #}
  294. #
  295. # An example of an openal output.
  296. #
  297. #audio_output {
  298. # type "openal"
  299. # name "My OpenAL output"
  300. ## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  301. #}
  302. #
  303. ## Example "pipe" output:
  304. #
  305. #audio_output {
  306. # type "pipe"
  307. # name "my pipe"
  308. # command "aplay -f cd 2>/dev/null"
  309. ## Or if you're want to use AudioCompress
  310. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  311. ## Or to send raw PCM stream through PCM:
  312. # command "nc example.org 8765"
  313. # format "44100:16:2"
  314. #}
  315. #
  316. ## An example of a null output (for no audio output):
  317. #
  318. #audio_output {
  319. # type "null"
  320. # name "My Null Output"
  321. # mixer_type "none" # optional
  322. #}
  323. #
  324. # This setting will change all decoded audio to be converted to the specified
  325. # format before being passed to the audio outputs. By default, this setting is
  326. # disabled.
  327. #
  328. #audio_output_format "44100:16:2"
  329. #
  330. # If MPD has been compiled with libsamplerate support, this setting specifies
  331. # the sample rate converter to use. Possible values can be found in the
  332. # mpd.conf man page or the libsamplerate documentation. By default, this is
  333. # setting is disabled.
  334. #
  335. #samplerate_converter "Fastest Sinc Interpolator"
  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 "off", "album", "track" or "auto". "auto" is a special mode that
  344. # chooses between "track" and "album" depending on the current state of
  345. # random playback. If random playback is enabled then "track" mode is used.
  346. # See <http://www.replaygain.org> for more details about ReplayGain.
  347. # This setting is off by default.
  348. #
  349. #replaygain "album"
  350. #
  351. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  352. # default this setting is disabled.
  353. #
  354. #replaygain_preamp "0"
  355. #
  356. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  357. # By default this setting is disabled.
  358. #
  359. #replaygain_missing_preamp "0"
  360. #
  361. # This setting enables or disables ReplayGain limiting.
  362. # MPD calculates actual amplification based on the ReplayGain tags
  363. # and replaygain_preamp / replaygain_missing_preamp setting.
  364. # If replaygain_limit is enabled MPD will never amplify audio signal
  365. # above its original level. If replaygain_limit is disabled such amplification
  366. # might occur. By default this setting is enabled.
  367. #
  368. #replaygain_limit "yes"
  369. #
  370. # This setting enables on-the-fly normalization volume adjustment. This will
  371. # result in the volume of all playing audio to be adjusted so the output has
  372. # equal "loudness". This setting is disabled by default.
  373. #
  374. #volume_normalization "no"
  375. #
  376. ###############################################################################
  377.  
  378.  
  379. # MPD Internal Buffering ######################################################
  380. #
  381. # This setting adjusts the size of internal decoded audio buffering. Changing
  382. # this may have undesired effects. Don't change this if you don't know what you
  383. # are doing.
  384. #
  385. #audio_buffer_size "2048"
  386. #
  387. # This setting controls the percentage of the buffer which is filled before
  388. # beginning to play. Increasing this reduces the chance of audio file skipping,
  389. # at the cost of increased time prior to audio playback.
  390. #
  391. #buffer_before_play "10%"
  392. #
  393. ###############################################################################
  394.  
  395.  
  396. # Resource Limitations ########################################################
  397. #
  398. # These settings are various limitations to prevent MPD from using too many
  399. # resources. Generally, these settings should be minimized to prevent security
  400. # risks, depending on the operating resources.
  401. #
  402. #connection_timeout "60"
  403. #max_connections "10"
  404. #max_playlist_length "16384"
  405. #max_command_list_size "2048"
  406. #max_output_buffer_size "8192"
  407. #
  408. ###############################################################################
  409.  
  410. # Client TCP keep alive #######################################################
  411. #
  412. # For clients connected by TCP on supported platforms.
  413. # Allows detection of dangling connections due to clients disappearing from
  414. # the network without closing their connections.
  415. #
  416. # This is not usually necessary but can be useful in cases such as wifi connectected
  417. # clients that go in and out of network range or turn off wifi without closing their
  418. # connections. Combined with low max_connections this can soon cause clients to not
  419. # be able to connect.
  420. #
  421. #
  422. # Enable tcp keepalive on new client connections (default is "no")
  423. #
  424. #tcp_keep_alive "no"
  425. #
  426. # Time in seconds since the last communication on the connection and before
  427. # the keepalive probing is started. (default is 7200 seconds)
  428. #tcp_keep_alive_idle "7200"
  429. #
  430. # Interval in seconds between keepalive probes, once a probe started.
  431. # (default is 75 seconds)
  432. #tcp_keep_alive_interval "75"
  433. #
  434. # Number of failed probes before the connection is pronounced dead and
  435. # the connection is closed. (default is 9 times)
  436. #tcp_keep_alive_count "9"
  437. #
  438. ###############################################################################
  439.  
  440. # Character Encoding ##########################################################
  441. #
  442. # If file or directory names do not display correctly for your locale then you
  443. # may need to modify this setting.
  444. #
  445. #filesystem_charset "UTF-8"
  446. #
  447. # This setting controls the encoding that ID3v1 tags should be converted from.
  448. #
  449. #id3v1_encoding "ISO-8859-1"
  450. #
  451. ###############################################################################
  452.  
  453.  
  454. # SIDPlay decoder #############################################################
  455. #
  456. # songlength_database:
  457. # Location of your songlengths file, as distributed with the HVSC.
  458. # The sidplay plugin checks this for matching MD5 fingerprints.
  459. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  460. #
  461. # default_songlength:
  462. # This is the default playing time in seconds for songs not in the
  463. # songlength database, or in case you're not using a database.
  464. # A value of 0 means play indefinitely.
  465. #
  466. # filter:
  467. # Turns the SID filter emulation on or off.
  468. #
  469. #decoder {
  470. # plugin "sidplay"
  471. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  472. # default_songlength "120"
  473. # filter "true"
  474. #}
  475. #
  476. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement