MPFire Version 2 begonnen
[people/pmueller/ipfire-2.x.git] / config / mpfire / mpd.conf
1 # MPD CONFIG FILE
2 # For a full description of all config parameters,
3 # Check the mpd man page, "man mpd".
4
5 ##################### REQUIRED ###########################
6 port "6600"
7 music_directory "/"
8 playlist_directory "/var/ipfire/mpfire"
9 log_file "/var/log/mpd.log"
10 error_file "/var/log/mpd.error.log"
11 pid_file "/var/run/mpd.pid"
12 ##########################################################
13
14 ##########################################################
15 # EVERYTHING ELSE IS OPTIONAL
16 ##########################################################
17
18 #################### OPTIONAL FILES ######################
19 #
20 # Location of DB file
21 #
22 db_file "/var/ipfire/mpfire/db/mpd.db"
23 #
24 # The state file (if set) will be a file
25 # for storing all current information
26 # (playlist, playing/paused, etc...) from
27 # the last MPD session. This will be used
28 # to recreate your last MPD session after
29 # restart.
30 #
31 state_file "/var/ipfire/mpfire/mpd_state"
32 #
33 ##########################################################
34
35
36 ################### VOLUME MIXER #########################
37 #
38 # Examples:
39 # ALSA Mixer
40 mixer_type "alsa"
41 mixer_device "default"
42 mixer_control "PCM"
43 #
44 # OSS Mixer
45 #mixer_type "oss"
46 #mixer_device "/dev/mixer"
47 #mixer_control "PCM"
48 #
49 # Software Mixer
50 #mixer_type "software"
51 #
52 ##########################################################
53
54
55 ################## AUDIO OUTPUT ##########################
56 #
57 audio_output {
58 type "alsa"
59 name "alsa"
60 device "hw:0,0" # optional
61 format "44100:16:2" # optional
62 }
63 #
64 # An example of an OSS output:
65 #
66 audio_output {
67 type "oss"
68 name "My OSS Device"
69 device "/dev/dsp" # optional
70 format "44100:16:2" # optional
71 }
72 #
73 # An example of a shout output (for streaming to Icecast):
74 #
75 audio_output {
76 type "shout"
77 name "My Shout Stream"
78 host "localhost"
79 port "8000"
80 mount "/mpd.ogg"
81 password "hackme"
82 # quality "5.0"
83 bitrate "128"
84 format "44100:16:1"
85 # user "source" # optional
86 # description "My Stream Description" # optional
87 # genre "jazz" # optional
88 # public "no" # optional
89 }
90 #
91 # Set this if you have problems
92 # playing audio files.
93 # This will resample your music so
94 # that it comes out at the set rate.
95 #
96 #audio_output_format "44100:16:2"
97 #
98 # You should not need mess with
99 # this value unless you know
100 # what you're doing.
101 #
102 #audio_write_size "1024"
103 #
104 ##########################################################
105
106 ################# REPLAYGAIN #############################
107 #
108 # Use Replay Gain (album or title)
109 # http://www.replaygain.org
110 #
111 #replaygain "album"
112 #
113 # Sets the pre-amp used for files that have replaygain
114 # info. Valid values are between -15 to 15 (in dB).
115 #
116 #replaygain_preamp "0"
117 #
118 ##########################################################
119
120
121 ################ OUTPUT BUFFER SETTINGS ##################
122 #
123 # You should not need to mess with this
124 # unless you know what you're doing.
125 #
126 audio_buffer_size "2048"
127 #
128 # This means exactly what it says, it will
129 # buffer your file up to the percentage of
130 # the buffer before it begins playing.
131 #
132 buffer_before_play "25%"
133 #
134 ##########################################################
135
136
137 ################### HTTP PROXY ###########################
138 #
139 # http_proxy_host "proxy.isp.com"
140 # http_proxy_port "8080"
141 # http_proxy_user "user"
142 # http_proxy_password "password"
143 #
144 ##########################################################
145
146
147 ################# SECURITY SETTINGS ######################
148 #
149 # It is encouraged to run MPD as
150 # non-superuser. If you start mpd as root
151 # (for example, in an init script), set
152 # this value, then mpd will drop root priveleges
153 # and runs as the user specified.
154 #
155 user "nobody"
156 #
157 # Set this value if you only have one
158 # address you want to allow connection to.
159 #
160 bind_to_address "localhost"
161 #
162 # If you want to setup MPD to use
163 # passwords set them here
164 #
165 #password "password1@read,add,control,admin"
166 #password "password2@read"
167 #
168 # Specify permissions used by default when no password is
169 # given by for a connection/client.
170 #
171 #default_permissions "read,add,control,admin"
172 #
173 ##########################################
174
175
176 ################ MISCELLANEOUS OPTIONS ###################
177 #
178 # This setting exists as precaution against attacks.
179 #
180 #max_playlist_length "16384"
181 #
182 # Valid options are "default", "secure" or "verbose".
183 #log_level "default"
184 #
185 connection_timeout "60"
186 #
187 # This should be fine for 2-3 people using clients
188 # at the same time.
189 #
190 #max_connections "5"
191 #
192 # No need to change these unless you know better.
193 #
194 #max_command_list_size "2048"
195 #max_output_buffer_size "2048"
196 #
197 # This will make playlists compatible with normal music
198 # players.
199 #
200 #save_absolute_paths_in_playlists "no"
201 #
202 ##########################################################
203
204 ###################### CHARACTER ENCODINGS #####################
205 #
206 # If file or directory names do not display correctly, then you
207 # may need to change this. In most cases it should be either
208 # "ISO-8859-1" or "UTF-8". You must recreate your database
209 # after changing this (use mpd --create-db).
210 #
211 filesystem_charset "UTF-8"
212 #
213 # The encoding that ID3v1 tags should be converted from.
214 #
215 id3v1_encoding "UTF-8"
216 metadata_to_use "artist,album,title,track,name,comment,date,genre"
217 #
218 ################################################################