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