Created
April 21, 2012 21:19
-
-
Save hogart/2439651 to your computer and use it in GitHub Desktop.
mpd.conf for using with ubuntu systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# supposed you have default mpd.conf and have read comments in it | |
music_directory "/media/g/Music" | |
# mpd starts from `mpd` user. So create homedir for this user. | |
# also, don't forget to chown all this files to mpd | |
# well, you can change `user` setting below | |
playlist_directory "/home/mpd/pl" | |
db_file "/home/mpd/db" | |
log_file "/home/mpd/log" | |
pid_file "/home/mpd/pid" | |
state_file "/home/mpd/state" | |
sticker_file "/home/mpd/sticker.sql" | |
# General music daemon options ################################################ | |
user "mpd" | |
# better leave this as is, unless you're just casting over http and such | |
group "audio" | |
#no reason to change it | |
port "6600" | |
# uncomment and set to "verbose", if you're having troubles | |
#log_level "default" | |
# whe needs this? Well, maybe you need. Go on, uncomment it. | |
#gapless_mp3_playback "yes" | |
# This setting enables MPD to create playlists in a format usable by other | |
# music players. | |
#save_absolute_paths_in_playlists "no" | |
# This setting defines a list of tag types that will be extracted during the | |
# audio file discovery process. Optionally, 'comment' can be added to this | |
# list. | |
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" | |
# Uncomment this, if you're adding/removing your music oftenly | |
#auto_update "yes" | |
# Limit the depth of the directories being watched, 0 means only watch | |
# the music directory itself. There is no limit by default. | |
# I just can't imagine why such option can exist. Hiding audio-porn? | |
#auto_update_depth "3" | |
# If this setting is set to "yes", MPD will discover audio files by following | |
# symbolic links outside of the configured music_directory. | |
# | |
#follow_outside_symlinks "yes" | |
# | |
# If this setting is set to "yes", MPD will discover audio files by following | |
# symbolic links inside of the configured music_directory. | |
# | |
#follow_inside_symlinks "yes" | |
# | |
############################################################################### | |
# Comment it out in case you don't need zeroconf/avahi discovery | |
zeroconf_enabled "yes" | |
zeroconf_name "Music Player Daemon" | |
# You can set password for mpd, but why? | |
#password "password@read,add,control,admin" | |
#default_permissions "read,add,control,admin" | |
# Sound reading settings. Just follow examples, nothing hard here | |
input { | |
plugin "curl" | |
# proxy "proxy.isp.com:8080" | |
# proxy_user "user" | |
# proxy_password "password" | |
} | |
# Audio Output ################################################################ | |
# | |
# MPD supports various audio output types, as well as playing through multiple | |
# audio outputs at the same time, through multiple audio_output settings | |
# blocks. Setting this block is optional, though the server will only attempt | |
# autodetection for one sound card. | |
# | |
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of | |
# other audio outputs. | |
# | |
# An example of an ALSA output: | |
# | |
audio_output { | |
type "alsa" | |
name "My ALSA Device" | |
# device "hw:0,0" # optional | |
# format "44100:16:2" # optional | |
# mixer_device "default" # optional | |
# mixer_control "PCM" # optional | |
# mixer_index "0" # optional | |
} | |
# | |
# An example of an OSS output: | |
# | |
#audio_output { | |
# type "oss" | |
# name "My OSS Device" | |
# device "/dev/dsp" # optional | |
# format "44100:16:2" # optional | |
# mixer_device "/dev/mixer" # optional | |
# mixer_control "PCM" # optional | |
#} | |
# | |
# An example of a shout output (for streaming to Icecast): | |
# | |
#audio_output { | |
# type "shout" | |
# encoding "ogg" # optional | |
# name "My Shout Stream" | |
# host "localhost" | |
# port "8000" | |
# mount "/mpd.ogg" | |
# password "hackme" | |
# quality "5.0" | |
# bitrate "128" | |
# format "44100:16:1" | |
# protocol "icecast2" # optional | |
# user "source" # optional | |
# description "My Stream Description" # optional | |
# genre "jazz" # optional | |
# public "no" # optional | |
# timeout "2" # optional | |
#} | |
# | |
# An example of a recorder output: | |
# | |
#audio_output { | |
# type "recorder" | |
# name "My recorder" | |
# encoder "vorbis" # optional, vorbis or lame | |
# path "/var/lib/mpd/recorder/mpd.ogg" | |
# quality "5.0" # do not define if bitrate is defined | |
# bitrate "128" # do not define if quality is defined | |
# format "44100:16:1" | |
#} | |
# | |
# An example of a httpd output (built-in HTTP streaming server): | |
# Note that some clients don't support 312 bitrate | |
audio_output { | |
type "httpd" | |
name "My HTTP Stream" | |
encoder "lame" # optional, vorbis or lame | |
port "8000" | |
# quality "5.0" # do not define if bitrate is defined | |
bitrate "256" # do not define if quality is defined | |
format "44100:16:1" | |
} | |
# | |
# An example of a pulseaudio output (streaming to a remote pulseaudio server) | |
# | |
#audio_output { | |
# type "pulse" | |
# name "My Pulse Output" | |
# server "remote_server" # optional | |
# sink "remote_server_sink" # optional | |
#} | |
# | |
## Example "pipe" output: | |
# | |
#audio_output { | |
# type "pipe" | |
# name "my pipe" | |
# command "aplay -f cd 2>/dev/null" | |
## Or if you're want to use AudioCompress | |
# command "AudioCompress -m | aplay -f cd 2>/dev/null" | |
## Or to send raw PCM stream through PCM: | |
# command "nc example.org 8765" | |
# format "44100:16:2" | |
#} | |
# | |
## An example of a null output (for no audio output): | |
# | |
#audio_output { | |
# type "null" | |
# name "My Null Output" | |
#} | |
# Uncomment and change this if you want to cast or sound with another quality | |
#audio_output_format "44100:16:2" | |
# MPD have a lot another options considering audio mixing, but… | |
# there be dragons |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment