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