Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.42 KB | None | 0 0
  1. $ cat /etc/mpd.conf
  2.        
  3. # An example configuration file for MPD.
  4. # Read the user manual for documentation: http://www.musicpd.org/doc/user/
  5. # or /usr/share/doc/mpd/user-manual.html
  6.  
  7.  
  8. # Files and directories #######################################################
  9. #
  10. # This setting controls the top directory which MPD will search to discover the
  11. # available audio files and add them to the daemon's online database. This
  12. # setting defaults to the XDG directory, otherwise the music directory will be
  13. # be disabled and audio files will only be accepted over ipc socket (using
  14. # file:// protocol) or streaming files over an accepted protocol.
  15. #
  16. music_directory         "/media/sf_D_DRIVE/Musique/"
  17. #
  18. # This setting sets the MPD internal playlist directory. The purpose of this
  19. # directory is storage for playlists created by MPD. The server will use
  20. # playlist files not created by the server but only if they are in the MPD
  21. # format. This setting defaults to playlist saving being disabled.
  22. #
  23. playlist_directory              "/var/lib/mpd/playlists"
  24. #
  25. # This setting sets the location of the MPD database. This file is used to
  26. # load the database at server start up and store the database while the
  27. # server is not up. This setting defaults to disabled which will allow
  28. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  29. # files over an accepted protocol.
  30. #
  31. db_file                 "/var/lib/mpd/tag_cache"
  32. #
  33. # These settings are the locations for the daemon log files for the daemon.
  34. # These logs are great for troubleshooting, depending on your log_level
  35. # settings.
  36. #
  37. # The special value "syslog" makes MPD use the local syslog daemon. This
  38. # setting defaults to logging to syslog, otherwise logging is disabled.
  39. #
  40. log_file                        "/var/log/mpd/mpd.log"
  41. #
  42. # This setting sets the location of the file which stores the process ID
  43. # for use of mpd --kill and some init scripts. This setting is disabled by
  44. # default and the pid file will not be stored.
  45. #
  46. pid_file                        "/run/mpd/pid"
  47. #
  48. # This setting sets the location of the file which contains information about
  49. # most variables to get MPD back into the same general shape it was in before
  50. # it was brought down. This setting is disabled by default and the server
  51. # state will be reset on server start up.
  52. #
  53. state_file                      "/var/lib/mpd/state"
  54. #
  55. # The location of the sticker database.  This is a database which
  56. # manages dynamic information attached to songs.
  57. #
  58. sticker_file                   "/var/lib/mpd/sticker.sql"
  59. #
  60. ###############################################################################
  61.  
  62.  
  63. # General music daemon options ################################################
  64. #
  65. # This setting specifies the user that MPD will run as. MPD should never run as
  66. # root and you may use this setting to make MPD change its user ID after
  67. # initialization. This setting is disabled by default and MPD is run as the
  68. # current user.
  69. #
  70. user                            "mpd"
  71. #
  72. # This setting specifies the group that MPD will run as. If not specified
  73. # primary group of user specified with "user" setting will be used (if set).
  74. # This is useful if MPD needs to be a member of group such as "audio" to
  75. # have permission to use sound card.
  76. #
  77. #group                          "nogroup"
  78. #
  79. # This setting sets the address for the daemon to listen on. Careful attention
  80. # should be paid if this is assigned to anything other then the default, any.
  81. # This setting can deny access to control of the daemon. Choose any if you want
  82. # to have mpd listen on every address. Not effective if systemd socket
  83. # activation is in use.
  84. #
  85. # For network
  86. bind_to_address         "localhost"
  87. #
  88. # And for Unix Socket
  89. #bind_to_address                "/run/mpd/socket"
  90. #
  91. # This setting is the TCP port that is desired for the daemon to get assigned
  92. # to.
  93. #
  94. #port                           "6600"
  95. #
  96. # This setting controls the type of information which is logged. Available
  97. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  98. # argument is recommended for troubleshooting, though can quickly stretch
  99. # available resources on limited hardware storage.
  100. #
  101. #log_level                      "default"
  102. #
  103. # If you have a problem with your MP3s ending abruptly it is recommended that
  104. # you set this argument to "no" to attempt to fix the problem. If this solves
  105. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  106. # (available as vbrfix in the debian archive), at which
  107. # point gapless MP3 playback can be enabled.
  108. #
  109. #gapless_mp3_playback                   "yes"
  110. #
  111. # Setting "restore_paused" to "yes" puts MPD into pause mode instead
  112. # of starting playback after startup.
  113. #
  114. #restore_paused "no"
  115. #
  116. # This setting enables MPD to create playlists in a format usable by other
  117. # music players.
  118. #
  119. #save_absolute_paths_in_playlists       "no"
  120. #
  121. # This setting defines a list of tag types that will be extracted during the
  122. # audio file discovery process. The complete list of possible values can be
  123. # found in the mpd.conf man page.
  124. #metadata_to_use        "artist,album,title,track,name,genre,date,composer,performer,disc"
  125. #
  126. # This setting enables automatic update of MPD's database when files in
  127. # music_directory are changed.
  128. #
  129. #auto_update    "yes"
  130. #
  131. # Limit the depth of the directories being watched, 0 means only watch
  132. # the music directory itself.  There is no limit by default.
  133. #
  134. #auto_update_depth "3"
  135. #
  136. ###############################################################################
  137.  
  138.  
  139. # Symbolic link behavior ######################################################
  140. #
  141. # If this setting is set to "yes", MPD will discover audio files by following
  142. # symbolic links outside of the configured music_directory.
  143. #
  144. #follow_outside_symlinks        "yes"
  145. #
  146. # If this setting is set to "yes", MPD will discover audio files by following
  147. # symbolic links inside of the configured music_directory.
  148. #
  149. #follow_inside_symlinks         "yes"
  150. #
  151. ###############################################################################
  152.  
  153.  
  154. # Zeroconf / Avahi Service Discovery ##########################################
  155. #
  156. # If this setting is set to "yes", service information will be published with
  157. # Zeroconf / Avahi.
  158. #
  159. #zeroconf_enabled               "yes"
  160. #
  161. # The argument to this setting will be the Zeroconf / Avahi unique name for
  162. # this MPD server on the network.
  163. #
  164. #zeroconf_name                  "Music Player"
  165. #
  166. ###############################################################################
  167.  
  168.  
  169. # Permissions #################################################################
  170. #
  171. # If this setting is set, MPD will require password authorization. The password
  172. # can setting can be specified multiple times for different password profiles.
  173. #
  174. #password                        "password@read,add,control,admin"
  175. #
  176. # This setting specifies the permissions a user has who has not yet logged in.
  177. #
  178. #default_permissions             "read,add,control,admin"
  179. #
  180. ###############################################################################
  181.  
  182.  
  183. # Database #######################################################################
  184. #
  185.  
  186. #database {
  187. #       plugin "proxy"
  188. #       host "other.mpd.host"
  189. #       port "6600"
  190. #}
  191.  
  192. # Input #######################################################################
  193. #
  194.  
  195. input {
  196.         plugin "curl"
  197. #       proxy "proxy.isp.com:8080"
  198. #       proxy_user "user"
  199. #       proxy_password "password"
  200. }
  201.  
  202. #
  203. ###############################################################################
  204.  
  205. # Audio Output ################################################################
  206. #
  207. # MPD supports various audio output types, as well as playing through multiple
  208. # audio outputs at the same time, through multiple audio_output settings
  209. # blocks. Setting this block is optional, though the server will only attempt
  210. # autodetection for one sound card.
  211. #
  212. # An example of an ALSA output:
  213. #
  214. audio_output {
  215.         type            "alsa"
  216.         name            "My ALSA Device"
  217. #       device          "hw:0,0"        # optional
  218. #       mixer_type      "hardware"      # optional
  219. #       mixer_device    "default"       # optional
  220. #       mixer_control   "PCM"           # optional
  221. #       mixer_index     "0"             # optional
  222. }
  223. #
  224. # An example of an OSS output:
  225. #
  226. #audio_output {
  227. #       type            "oss"
  228. #       name            "My OSS Device"
  229. #       device          "/dev/dsp"      # optional
  230. #       mixer_type      "hardware"      # optional
  231. #       mixer_device    "/dev/mixer"    # optional
  232. #       mixer_control   "PCM"           # optional
  233. #}
  234. #
  235. # An example of a shout output (for streaming to Icecast):
  236. #
  237. #audio_output {
  238. #       type            "shout"
  239. #       encoder         "vorbis"                # optional
  240. #       name            "My Shout Stream"
  241. #       host            "localhost"
  242. #       port            "8000"
  243. #       mount           "/mpd.ogg"
  244. #       password        "hackme"
  245. #       quality         "5.0"
  246. #       bitrate         "128"
  247. #       format          "44100:16:1"
  248. #       protocol        "icecast2"              # optional
  249. #       user            "source"                # optional
  250. #       description     "My Stream Description" # optional
  251. #       url             "http://example.com"    # optional
  252. #       genre           "jazz"                  # optional
  253. #       public          "no"                    # optional
  254. #       timeout         "2"                     # optional
  255. #       mixer_type      "software"              # optional
  256. #}
  257. #
  258. # An example of a recorder output:
  259. #
  260. #audio_output {
  261. #       type            "recorder"
  262. #       name            "My recorder"
  263. #       encoder         "vorbis"                # optional, vorbis or lame
  264. #       path            "/var/lib/mpd/recorder/mpd.ogg"
  265. ##      quality         "5.0"                   # do not define if bitrate is defined
  266. #       bitrate         "128"                   # do not define if quality is defined
  267. #       format          "44100:16:1"
  268. #}
  269. #
  270. # An example of a httpd output (built-in HTTP streaming server):
  271. #
  272. #audio_output {
  273. #       type            "httpd"
  274. #       name            "My HTTP Stream"
  275. #       encoder         "vorbis"                # optional, vorbis or lame
  276. #       port            "8000"
  277. #       bind_to_address "0.0.0.0"               # optional, IPv4 or IPv6
  278. #       quality         "5.0"                   # do not define if bitrate is defined
  279. #       bitrate         "128"                   # do not define if quality is defined
  280. #       format          "44100:16:1"
  281. #       max_clients     "0"                     # optional 0=no limit
  282. #}
  283. #
  284. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  285. # Please see README.Debian if you want mpd to play through the pulseaudio
  286. # daemon started as part of your graphical desktop session!
  287. #
  288. #audio_output {
  289. #       type            "pulse"
  290. #       name            "My Pulse Output"
  291. #       server          "remote_server"         # optional
  292. #       sink            "remote_server_sink"    # optional
  293. #}
  294. #
  295. # An example of a winmm output (Windows multimedia API).
  296. #
  297. #audio_output {
  298. #       type            "winmm"
  299. #       name            "My WinMM output"
  300. #       device          "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  301. #               or
  302. #       device          "0"             # optional
  303. #       mixer_type      "hardware"      # optional
  304. #}
  305. #
  306. # An example of an openal output.
  307. #
  308. #audio_output {
  309. #       type            "openal"
  310. #       name            "My OpenAL output"
  311. #       device          "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
  312. #}
  313. #
  314. # An example of an sndio output.
  315. #
  316. #audio_output {
  317. #  type        "sndio"
  318. #  name        "sndio output"
  319. #  mixer_type  "software"
  320. #}
  321. #
  322. ## Example "pipe" output:
  323. #
  324. #audio_output {
  325. #       type            "pipe"
  326. #       name            "my pipe"
  327. #       command         "aplay -f cd 2>/dev/null"
  328. ## Or if you're want to use AudioCompress
  329. #       command         "AudioCompress -m | aplay -f cd 2>/dev/null"
  330. ## Or to send raw PCM stream through PCM:
  331. #       command         "nc example.org 8765"
  332. #       format          "44100:16:2"
  333. #}
  334. #
  335. ## An example of a null output (for no audio output):
  336. #
  337. #audio_output {
  338. #       type            "null"
  339. #       name            "My Null Output"
  340. #       mixer_type      "none"                  # optional
  341. #}
  342. #
  343. ###############################################################################
  344.  
  345.  
  346. # Normalization automatic volume adjustments ##################################
  347. #
  348. # This setting specifies the type of ReplayGain to use. This setting can have
  349. # the argument "off", "album", "track" or "auto". "auto" is a special mode that
  350. # chooses between "track" and "album" depending on the current state of
  351. # random playback. If random playback is enabled then "track" mode is used.
  352. # See <http://www.replaygain.org> for more details about ReplayGain.
  353. # This setting is off by default.
  354. #
  355. #replaygain                     "album"
  356. #
  357. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  358. # default this setting is disabled.
  359. #
  360. #replaygain_preamp              "0"
  361. #
  362. # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
  363. # By default this setting is disabled.
  364. #
  365. #replaygain_missing_preamp      "0"
  366. #
  367. # This setting enables or disables ReplayGain limiting.
  368. # MPD calculates actual amplification based on the ReplayGain tags
  369. # and replaygain_preamp / replaygain_missing_preamp setting.
  370. # If replaygain_limit is enabled MPD will never amplify audio signal
  371. # above its original level. If replaygain_limit is disabled such amplification
  372. # might occur. By default this setting is enabled.
  373. #
  374. #replaygain_limit               "yes"
  375. #
  376. # This setting enables on-the-fly normalization volume adjustment. This will
  377. # result in the volume of all playing audio to be adjusted so the output has
  378. # equal "loudness". This setting is disabled by default.
  379. #
  380. #volume_normalization           "no"
  381. #
  382. ###############################################################################
  383.  
  384.  
  385. # Character Encoding ##########################################################
  386. #
  387. # If file or directory names do not display correctly for your locale then you
  388. # may need to modify this setting.
  389. #
  390. filesystem_charset              "UTF-8"
  391. #
  392. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement