2006-06-04 22:05:30 +02:00
|
|
|
.TH mpd.conf 5
|
|
|
|
.SH NAME
|
|
|
|
mpd.conf \- Music Player Daemon configuration file
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBmpd.conf\fP is the configuration file for mpd(1). If not specified on the
|
2009-01-14 14:27:17 +01:00
|
|
|
command line, MPD first searches for it at \fB~/.mpdconf\fP then at
|
|
|
|
\fB~/.mpd/mpd.conf\fP and then in \fB/etc/mpd.conf\fP.
|
2006-06-04 22:05:30 +02:00
|
|
|
|
|
|
|
Lines beginning with a "#" character are comments. All other non-empty lines
|
|
|
|
specify parameters and their values. These lines contain the parameter name
|
|
|
|
and parameter value (surrounded by double quotes) separated by whitespace
|
|
|
|
(either tabs or spaces). For example:
|
|
|
|
|
|
|
|
parameter "value"
|
|
|
|
|
|
|
|
The exception to this rule is the audio_output parameter, which is of the form:
|
|
|
|
|
|
|
|
audio_output {
|
|
|
|
.br
|
|
|
|
parameter1 "value"
|
|
|
|
parameter2 "value"
|
|
|
|
.br
|
|
|
|
}
|
|
|
|
|
|
|
|
Parameters that take a file or directory as an argument should use absolute
|
|
|
|
paths.
|
|
|
|
|
|
|
|
See \fBdocs/mpdconf.example\fP in the source tarball for an example
|
|
|
|
configuration file.
|
|
|
|
.SH REQUIRED PARAMETERS
|
|
|
|
.TP
|
2008-11-28 10:57:39 +01:00
|
|
|
.B follow_outside_symlinks <yes or no>
|
|
|
|
Control if MPD will follow symbolic links pointing outside the music dir.
|
|
|
|
You must recreate the database after changing this option.
|
2008-12-08 09:00:38 +01:00
|
|
|
The default is "yes".
|
2008-11-28 10:57:39 +01:00
|
|
|
.TP
|
|
|
|
.B follow_inside_symlinks <yes or no>
|
|
|
|
Control if MPD will follow symbolic links pointing outside the music dir, potentially
|
|
|
|
adding duplicates to the database.
|
|
|
|
You must recreate the database after changing this option.
|
|
|
|
The default is "yes".
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B db_file <file>
|
|
|
|
This specifies where the db file will be stored.
|
|
|
|
.TP
|
2009-01-19 18:51:57 +01:00
|
|
|
.B sticker_file <file>
|
|
|
|
The location of the sticker database. This is a database which
|
|
|
|
manages dynamic information attached to songs.
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B log_file <file>
|
|
|
|
This specifies where the log file should be located.
|
2008-12-28 19:48:53 +01:00
|
|
|
The special value "syslog" makes MPD use the local syslog daemon.
|
2006-06-05 22:05:24 +02:00
|
|
|
.SH OPTIONAL PARAMETERS
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B pid_file <file>
|
|
|
|
This specifies the file to save mpd's process ID in.
|
|
|
|
.TP
|
2009-01-18 16:56:07 +01:00
|
|
|
.B music_directory <directory>
|
|
|
|
This specifies the directory where music is located.
|
|
|
|
If you do not configure this, you can only play streams.
|
|
|
|
.TP
|
2009-01-18 16:15:45 +01:00
|
|
|
.B playlist_directory <directory>
|
|
|
|
This specifies the directory where saved playlists are stored.
|
|
|
|
If you do not configure this, you cannot save playlists.
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B state_file <file>
|
|
|
|
This specifies if a state file is used and where it is located. The state of
|
|
|
|
mpd will be saved to this file when mpd is terminated by a TERM signal or by
|
|
|
|
the "kill" command. When mpd is restarted, it will read the state file and
|
|
|
|
restore the state of mpd (including the playlist).
|
|
|
|
.TP
|
2006-08-28 22:47:50 +02:00
|
|
|
.B user <username>
|
2008-12-20 17:37:12 +01:00
|
|
|
This specifies the user that MPD will run as, if set. MPD should
|
|
|
|
never run as root, and you may use this option to make MPD change its
|
|
|
|
user id after initialization. Do not use this option if you start MPD
|
|
|
|
as an unprivileged user.
|
2006-08-28 22:47:50 +02:00
|
|
|
.TP
|
|
|
|
.B bind_to_address <ip address or hostname or any>
|
|
|
|
This specifies which address mpd binds to and listens on. Multiple
|
|
|
|
bind_to_address parameters may be specified. The default is "any", which binds
|
|
|
|
to all available addresses.
|
2008-12-16 21:31:52 +01:00
|
|
|
|
|
|
|
To bind to a Unix domain socket, specify an absolute path. For a
|
|
|
|
system-wide MPD, we suggest the path "\fB/var/run/mpd/socket\fP".
|
2006-08-28 22:47:50 +02:00
|
|
|
.TP
|
|
|
|
.B port <port>
|
|
|
|
This specifies the port that mpd listens on. The default is 6600.
|
|
|
|
.TP
|
|
|
|
.B log_level <default, secure, or verbose>
|
|
|
|
This specifies how verbose logs are. "default" is minimal logging, "secure"
|
|
|
|
reports from what address a connection is opened, and when it is closed, and
|
|
|
|
"verbose" records excessive amounts of information for debugging purposes. The
|
|
|
|
default is "default".
|
|
|
|
.TP
|
2007-06-03 20:08:51 +02:00
|
|
|
.B zeroconf_enabled <yes or no>
|
2007-06-03 22:09:12 +02:00
|
|
|
If yes, and MPD has been compiled with support for Avahi or Bonjour, service
|
|
|
|
information will be published with Zeroconf. The default is yes.
|
2007-06-03 20:08:51 +02:00
|
|
|
.TP
|
2007-03-31 18:04:04 +02:00
|
|
|
.B zeroconf_name <name>
|
2007-06-03 22:09:12 +02:00
|
|
|
If Zeroconf is enabled, this is the service name to publish. This name should
|
|
|
|
be unique to your local network, but name collisions will be properly dealt
|
|
|
|
with. The default is "Music Player".
|
2007-03-31 18:04:04 +02:00
|
|
|
.TP
|
2006-08-28 22:47:50 +02:00
|
|
|
.B password <password@permissions>
|
|
|
|
This specifies a password for access to mpd. The format is
|
|
|
|
"password@permissions" where permissions is a comma delimited list composed
|
|
|
|
of "read", "add", "control", and/or "admin". "read" allows for reading of the
|
|
|
|
database, displaying the current playlist, and current status of mpd. "add"
|
|
|
|
allows for adding songs and loading playlists. "control" allows for all other
|
|
|
|
player and playlist manipulations. "admin" allows the db to be updated and for
|
|
|
|
the client to kill mpd. An example value is "somePassword@read,add". Multiple
|
|
|
|
password parameters may be specified.
|
|
|
|
.TP
|
|
|
|
.B default_permissions <permissions>
|
|
|
|
This specifies the permissions of a client that has not been authenticated
|
|
|
|
using a password. The format of permissions is specified in the description of
|
|
|
|
the "password" config parameter. If no passwords are specified, the default is
|
|
|
|
"read,add,control,admin", otherwise it is "" (no permissions).
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B audio_output
|
2006-07-27 21:23:37 +02:00
|
|
|
See \fBDESCRIPTION\fP and the various \fBAUDIO OUTPUT PARAMETERS\fP sections
|
2006-09-12 23:52:49 +02:00
|
|
|
for the format of this parameter. Multiple audio_output sections may be
|
|
|
|
specified. If no audio_output section is specified, then MPD will scan for a
|
|
|
|
usable audio output.
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B audio_output_format <sample_rate:bits:channels>
|
|
|
|
This specifies the sample rate, bits per sample, and number of channels of
|
|
|
|
audio that is sent to each audio output. Note that audio outputs may specify
|
|
|
|
their own audio format which will be used for actual output to the audio
|
|
|
|
device. An example is "44100:16:2" for 44100Hz, 16 bits, and 2 channels. The
|
|
|
|
default is to use the audio format of the input file.
|
|
|
|
.TP
|
2007-02-02 04:51:07 +01:00
|
|
|
.B samplerate_converter <integer or prefix>
|
2007-02-13 23:46:04 +01:00
|
|
|
This specifies the libsamplerate converter to use. The supplied value should
|
|
|
|
either be an integer or a prefix of the name of a converter. The default is
|
|
|
|
"Fastest Sinc Interpolator".
|
|
|
|
|
|
|
|
At the time of this writing, the following converters are available:
|
2007-02-02 04:51:07 +01:00
|
|
|
.RS
|
2007-02-13 23:46:04 +01:00
|
|
|
.TP
|
2007-02-02 04:51:07 +01:00
|
|
|
Best Sinc Interpolator (0)
|
|
|
|
|
|
|
|
Band limited sinc interpolation, best quality, 97dB SNR, 96% BW.
|
2007-02-13 23:46:04 +01:00
|
|
|
.TP
|
2007-02-02 04:51:07 +01:00
|
|
|
Medium Sinc Interpolator (1)
|
|
|
|
|
|
|
|
Band limited sinc interpolation, medium quality, 97dB SNR, 90% BW.
|
2007-02-13 23:46:04 +01:00
|
|
|
.TP
|
|
|
|
Fastest Sinc Interpolator (2)
|
2007-02-02 04:51:07 +01:00
|
|
|
|
|
|
|
Band limited sinc interpolation, fastest, 97dB SNR, 80% BW.
|
2007-02-13 23:46:04 +01:00
|
|
|
.TP
|
2007-02-02 04:51:07 +01:00
|
|
|
ZOH Interpolator (3)
|
|
|
|
|
2007-02-13 23:46:04 +01:00
|
|
|
Zero order hold interpolator, very fast, very poor quality with audible
|
|
|
|
distortions.
|
|
|
|
.TP
|
2007-02-02 04:51:07 +01:00
|
|
|
Linear Interpolator (4)
|
|
|
|
|
|
|
|
Linear interpolator, very fast, poor quality.
|
|
|
|
.RE
|
2007-02-13 23:46:04 +01:00
|
|
|
.IP
|
|
|
|
For an up-to-date list of available converters, please see the libsamplerate
|
|
|
|
documentation (available online at <\fBhttp://www.mega-nerd.com/SRC/\fP>).
|
2007-02-02 04:51:07 +01:00
|
|
|
.TP
|
2008-12-31 16:46:41 +01:00
|
|
|
.B mixer_type <alsa, oss, software or hardware>
|
|
|
|
This specifies which mixer to use. The default is hardware and depends on
|
|
|
|
what audio output support mpd was built with. Options alsa and oss are
|
|
|
|
legacy and should not be used in new configs, but when set mixer_device
|
|
|
|
and mixer_control will apply.
|
2007-03-31 18:04:04 +02:00
|
|
|
.TP
|
|
|
|
.B mixer_device <mixer dev>
|
|
|
|
This specifies which mixer to use. The default for oss is "/dev/mixer"; the
|
2008-12-31 16:46:41 +01:00
|
|
|
default for alsa is "default". This option is deprecated and should not be
|
2009-01-01 18:36:47 +01:00
|
|
|
used. Look at the mixer_device option of corresponding output device instead.
|
2007-03-31 18:04:04 +02:00
|
|
|
.TP
|
|
|
|
.B mixer_control <mixer ctrl>
|
|
|
|
This specifies which mixer control to use (sometimes referred to as the
|
|
|
|
"device"). Examples of mixer controls are PCM, Line1, Master, etc. An example
|
2008-12-31 16:46:41 +01:00
|
|
|
for OSS is "Pcm", and an example for alsa is "PCM". This option is deprecated
|
2009-01-01 18:36:47 +01:00
|
|
|
and should not be used. Look at the mixer_control option of corresponding
|
2008-12-31 16:46:41 +01:00
|
|
|
output device instead.
|
2007-03-31 18:04:04 +02:00
|
|
|
.TP
|
|
|
|
.B replaygain <album or track>
|
|
|
|
If specified, mpd will adjust the volume of songs played using ReplayGain tags
|
|
|
|
(see <\fBhttp://www.replaygain.org/\fP>). Setting this to "album" will adjust
|
|
|
|
volume using the album's ReplayGain tags, while setting it to "track" will
|
|
|
|
adjust it using the track ReplayGain tags. Currently only FLAC, Ogg Vorbis,
|
|
|
|
Musepack, and MP3 (through ID3v2 ReplayGain tags, not APEv2) are supported.
|
|
|
|
.TP
|
|
|
|
.B replaygain_preamp <-15 to 15>
|
|
|
|
This is the gain (in dB) applied to songs with ReplayGain tags.
|
|
|
|
.TP
|
|
|
|
.B volume_normalization <yes or no>
|
|
|
|
If yes, mpd will normalize the volume of songs as they play. The default is no.
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B audio_buffer_size <size in KiB>
|
2007-05-23 16:10:58 +02:00
|
|
|
This specifies the size of the audio buffer in kibibytes. The default is 2048,
|
|
|
|
large enough for nearly 12 seconds of CD-quality audio.
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B buffer_before_play <0-100%>
|
2007-05-23 16:10:58 +02:00
|
|
|
This specifies how much of the audio buffer should be filled before playing a
|
|
|
|
song. Try increasing this if you hear skipping when manually changing songs.
|
2007-05-27 15:12:02 +02:00
|
|
|
The default is 10%, a little over 1 second of CD-quality audio with the default
|
|
|
|
buffer size.
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B http_proxy_host <hostname>
|
|
|
|
Use to specify the proxy host used for HTTP connections.
|
|
|
|
.TP
|
|
|
|
.B http_proxy_port <port>
|
|
|
|
The port that the HTTP proxy host uses.
|
|
|
|
.TP
|
|
|
|
.B http_proxy_user <username>
|
|
|
|
If the HTTP proxy server requires authentication, this specifies the username.
|
|
|
|
.TP
|
|
|
|
.B http_proxy_password <password>
|
|
|
|
If the HTTP proxy server requires authentication, this specifies the password.
|
|
|
|
.TP
|
|
|
|
.B connection_timeout <seconds>
|
|
|
|
If a client does not send any new data in this time period, the connection is
|
|
|
|
closed. The default is 60.
|
|
|
|
.TP
|
|
|
|
.B max_connections <number>
|
|
|
|
This specifies the maximum number of clients that can be connected to mpd. The
|
|
|
|
default is 5.
|
|
|
|
.TP
|
2006-08-28 22:47:50 +02:00
|
|
|
.B max_playlist_length <number>
|
|
|
|
This specifies the maximum number of songs that can be in the playlist. The
|
|
|
|
default is 4096.
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B max_command_list_size <size in KiB>
|
|
|
|
This specifies the maximum size a command list can be. The default is 2048.
|
|
|
|
.TP
|
|
|
|
.B max_output_buffer_size <size in KiB>
|
|
|
|
This specifies the maximum size of the output buffer to a client. The default
|
|
|
|
is 8192.
|
|
|
|
.TP
|
2006-08-28 22:47:50 +02:00
|
|
|
.B filesystem_charset <charset>
|
|
|
|
This specifies the character set used for the filesystem. A list of supported
|
|
|
|
character sets can be obtained by running "iconv -l". The default is
|
|
|
|
determined from the locale when the db was originally created.
|
|
|
|
.TP
|
|
|
|
.B id3v1_encoding <charset>
|
|
|
|
This specifies the character set which ID3v1 tags are encoded in. A list of
|
|
|
|
supported character sets can be obtained by running "iconv -l". The default is
|
|
|
|
to let libid3tag convert them (from ISO-8859-1, as the standard specifies) and
|
|
|
|
do no additional conversion.
|
|
|
|
.TP
|
2006-12-23 19:56:23 +01:00
|
|
|
.B gapless_mp3_playback <yes or no>
|
|
|
|
This specifies whether to support gapless playback of MP3s which have the
|
|
|
|
necessary headers. Useful if your MP3s have headers with incorrect
|
|
|
|
information. If you have such MP3s, it is highly recommended that you fix them
|
|
|
|
using vbrfix (available from <http://www.willwap.co.uk/Programs/vbrfix.php>)
|
2007-04-09 15:01:18 +02:00
|
|
|
instead of disabling gapless MP3 playback. The default is to support gapless
|
|
|
|
MP3 playback.
|
2006-12-23 19:56:23 +01:00
|
|
|
.TP
|
|
|
|
.B save_absolute_paths_in_playlists <yes or no>
|
|
|
|
This specifies whether relative or absolute paths for song filenames are used
|
|
|
|
when saving playlists. The default is "no".
|
|
|
|
.TP
|
2006-08-28 22:47:50 +02:00
|
|
|
.B metadata_to_use <tags>
|
2007-03-31 22:40:57 +02:00
|
|
|
This specifies the tag types that will be scanned for and made available to
|
2006-08-28 22:47:50 +02:00
|
|
|
clients. Note that you must recreate (not update) your database for changes to
|
|
|
|
this parameter to take effect. Possible values are artist, album, title,
|
|
|
|
track, name, genre, date, composer, performer, comment, and disc. Multiple
|
|
|
|
tags may be specified as a comma separated list. An example value is
|
|
|
|
"artist,album,title,track". The special value "none" may be used alone to
|
|
|
|
disable all metadata. The default is to use all known tag types except for
|
|
|
|
comments.
|
2006-06-04 22:05:30 +02:00
|
|
|
.SH REQUIRED AUDIO OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B type <type>
|
2006-07-16 19:32:59 +02:00
|
|
|
This specifies the audio output type. See the list of supported outputs in mpd
|
|
|
|
--version for possible values.
|
2006-07-13 21:03:49 +02:00
|
|
|
.TP
|
|
|
|
.B name <name>
|
|
|
|
This specifies a unique name for the audio output.
|
2006-06-04 22:05:30 +02:00
|
|
|
.SH OPTIONAL AUDIO OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B format <sample_rate:bits:channels>
|
|
|
|
This specifies the sample rate, bits per sample, and number of channels of
|
|
|
|
audio that is sent to the audio output device. See documentation for the
|
|
|
|
\fBaudio_output_format\fP parameter for more details. The default is to use
|
|
|
|
whatever audio format is passed to the audio output.
|
2006-07-16 19:32:59 +02:00
|
|
|
.SH OPTIONAL ALSA OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B device <dev>
|
2007-04-25 20:22:23 +02:00
|
|
|
This specifies the device to use for audio output. The default is "default".
|
2006-07-16 19:32:59 +02:00
|
|
|
.TP
|
2009-01-01 18:36:47 +01:00
|
|
|
.B mixer_device <mixer dev>
|
2008-12-31 16:46:41 +01:00
|
|
|
This specifies which mixer to use. The default for oss is "/dev/mixer"; the
|
|
|
|
default for alsa is "default".
|
|
|
|
.TP
|
2009-01-01 18:36:47 +01:00
|
|
|
.B mixer_control <mixer ctrl>
|
2008-12-31 16:46:41 +01:00
|
|
|
This specifies which mixer control to use (sometimes referred to as the
|
|
|
|
"device"). Examples of mixer controls are PCM, Line1, Master, etc. An example
|
|
|
|
for OSS is "Pcm", and an example for alsa is "PCM".
|
|
|
|
.TP
|
2006-07-16 19:32:59 +02:00
|
|
|
.B use_mmap <yes or no>
|
|
|
|
Setting this allows you to use memory-mapped I/O. Certain hardware setups may
|
2007-04-09 15:01:18 +02:00
|
|
|
benefit from this, but most do not. Most users do not need to set this. The
|
|
|
|
default is to not use memory-mapped I/O.
|
2006-07-16 19:32:59 +02:00
|
|
|
.TP
|
2008-10-14 17:21:49 +02:00
|
|
|
.B auto_resample <yes or no>
|
|
|
|
Setting this to "no" disables ALSA's software resampling, if the
|
|
|
|
hardware does not support a specific sample rate. This lets MPD do
|
|
|
|
the resampling. "yes" is the default and allows ALSA to resample.
|
|
|
|
.TP
|
|
|
|
.B auto_channels <yes or no>
|
|
|
|
Setting this to "no" disables ALSA's channel conversion, if the
|
|
|
|
hardware does not support a specific number of channels. Default: "yes".
|
|
|
|
.TP
|
|
|
|
.B auto_format <yes or no>
|
|
|
|
Setting this to "no" disables ALSA's sample format conversion, if the
|
|
|
|
hardware does not support a specific sample format. Default: "yes".
|
|
|
|
.TP
|
2006-07-16 19:32:59 +02:00
|
|
|
.B buffer_time <time in microseconds>
|
|
|
|
This sets the length of the hardware sample buffer in microseconds. Increasing
|
|
|
|
it may help to reduce or eliminate skipping on certain setups. Most users do
|
|
|
|
not need to change this. The default is 500000 microseconds (0.5 seconds).
|
|
|
|
.TP
|
|
|
|
.B period_time <time in microseconds>
|
|
|
|
This sets the time between hardware sample transfers in microseconds.
|
|
|
|
Increasing this can reduce CPU usage while lowering it can reduce underrun
|
|
|
|
errors on bandwidth-limited devices. Some users have reported good results
|
|
|
|
with this set to 50000, but not all devices support values this high. Most
|
|
|
|
users do not need to change this. The default is 256000000 / sample_rate(kHz),
|
|
|
|
or 5804 microseconds for CD-quality audio.
|
|
|
|
.SH OPTIONAL OSS OUTPUT PARAMETERS
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B device <dev>
|
2006-07-16 19:32:59 +02:00
|
|
|
This specifies the device to use for audio output. The default is "/dev/dsp".
|
|
|
|
.SH OPTIONAL PULSE OUTPUT PARAMETERS
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
2006-07-13 21:03:49 +02:00
|
|
|
.B server <server list>
|
2006-07-16 19:32:59 +02:00
|
|
|
A space separated list of servers to try to connect to. See
|
|
|
|
<\fBhttp://www.pulseaudio.org/wiki/ServerStrings\fP> for more details. The
|
|
|
|
default is to let PulseAudio choose a server.
|
2008-10-15 07:49:32 +02:00
|
|
|
If you specify more than one server name, MPD tries to connect to one
|
|
|
|
after another until it successfully establishes a connection.
|
2006-07-13 21:03:49 +02:00
|
|
|
.TP
|
|
|
|
.B sink <sink>
|
2006-07-16 19:32:59 +02:00
|
|
|
The sink to output to. The default is to let PulseAudio choose a sink.
|
2007-05-23 14:07:40 +02:00
|
|
|
.SH REQUIRED JACK OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B name <name>
|
|
|
|
The client name to use when connecting to JACK. The output ports <name>:left
|
|
|
|
and <name>:right will also be created for the left and right channels,
|
|
|
|
respectively.
|
|
|
|
.SH OPTIONAL JACK OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B ports <left_port,right_port>
|
|
|
|
This specifies the left and right ports to connect to for the left and right
|
|
|
|
channels, respectively. The default is to let JACK choose a pair of ports.
|
|
|
|
.TP
|
|
|
|
.B ringbuffer_size <size in bytes>
|
|
|
|
This specifies the size of the ringbuffer in bytes. The default is 32768.
|
2006-07-16 19:32:59 +02:00
|
|
|
.SH OPTIONAL AO OUTPUT PARAMETERS
|
2006-07-13 21:03:49 +02:00
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B driver <driver>
|
2006-07-16 19:32:59 +02:00
|
|
|
This specifies the libao driver to use for audio output. Possible values
|
|
|
|
depend on what libao drivers are available. See
|
2006-06-04 22:05:30 +02:00
|
|
|
<\fBhttp://www.xiph.org/ao/doc/drivers.html\fP> for information on some
|
|
|
|
commonly used drivers. Typical values for Linux include "oss" and "alsa09".
|
|
|
|
The default is "default", which causes libao to select an appropriate plugin.
|
|
|
|
.TP
|
|
|
|
.B options <opts>
|
2006-07-16 19:32:59 +02:00
|
|
|
This specifies the options to use for the selected libao driver. For oss, the
|
|
|
|
only option available is "dsp". For alsa09, the available options are: "dev",
|
|
|
|
"buf_size", and "periods". See <\fBhttp://www.xiph.org/ao/doc/drivers.html\fP>
|
|
|
|
for available options for some commonly used drivers. Options are assigned
|
|
|
|
using "=", and ";" is used to separate options. An example for oss:
|
|
|
|
"dsp=/dev/dsp". An example for alsa09: "dev=hw:0,0;buf_size=4096". The
|
|
|
|
default is "".
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B write_size <size in bytes>
|
2006-07-16 19:32:59 +02:00
|
|
|
This specifies how many bytes to write to the audio device at once. This
|
|
|
|
parameter is to work around a bug in older versions of libao on sound cards
|
|
|
|
with very small buffers. The default is 1024.
|
2007-06-13 16:15:30 +02:00
|
|
|
.SH REQUIRED FIFO OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B path <path>
|
|
|
|
This specifies the path of the FIFO to output to. Must be an absolute path.
|
|
|
|
If the path does not exist it will be created when mpd is started, and removed
|
|
|
|
when mpd is stopped. The FIFO will be created with the same user and group as
|
|
|
|
mpd is running as. Default permissions can be modified by using the builtin
|
|
|
|
shell command "umask". If a FIFO already exists at the specified path it will
|
|
|
|
be reused, and will \fBnot\fP be removed when mpd is stopped. You can use the
|
|
|
|
"mkfifo" command to create this, and then you may modify the permissions to
|
|
|
|
your liking.
|
2006-06-04 22:05:30 +02:00
|
|
|
.SH REQUIRED SHOUT OUTPUT PARAMETERS
|
|
|
|
.TP
|
|
|
|
.B name <name>
|
|
|
|
This specifies not only the unique audio output name, but also the stream
|
|
|
|
title.
|
|
|
|
.TP
|
|
|
|
.B host <hostname>
|
|
|
|
This specifies the hostname of the icecast server to connect to.
|
|
|
|
.TP
|
|
|
|
.B port <port>
|
|
|
|
This specifies the port of the icecast server to connect to.
|
|
|
|
.TP
|
|
|
|
.B mount <mountpoint>
|
|
|
|
This specifies the icecast mountpoint to use.
|
|
|
|
.TP
|
|
|
|
.B password <password>
|
|
|
|
This specifies the password to use when logging in to the icecast server.
|
|
|
|
.TP
|
|
|
|
.B quality <quality>
|
shout: introduce pluggable encoder API
I've perhaps gone a bit overboard, but here's the current rundown:
Both Ogg and MP3 use the "shout" audio output plugin. The shout audio
output plugin itself has two new plugins, one for the Ogg encoder,
and another for the MP3 (LAME) encoder.
Configuration for an Ogg stream doesn't change. For an MP3 stream,
configuration is the same as Ogg, with two exceptions. First, you must
specify the optional "encoding" parameter, which should be set to "mp3".
See mpd.conf(5) for more details. Second, the "quality" parameter is
reversed for LAME, such that 1 is high quality for LAME, whereas 10 is
high quality for Ogg.
I've decomposed the code so that all libshout related operations
are done in audioOutput_shout.c, all Ogg specific functions are in
audioOutput_shout_ogg.c, and of course then all LAME specific functions
are handled in audioOutput_shout_mp3.c.
To develop encoder plugins for the shout audio output plugin, I basically
just mimicked the plugin system used for audio outputs. This might be
overkill, but hopefully if anyone ever wants to support some other sort
of stream, like maybe AAC, FLAC, or WMA (hey it could happen), they will
hopefully be all set.
The Ogg encoder is slightly less optimal under this configuration.
It used to send shout data directly out of its ogg_page structures. Now,
in the interest of encapsulation, it copies the data from its ogg_page
structures into a buffer provided by the shout audio output plugin (see
audioOutput_shout_ogg.c, line 77.) I suspect the performance impact
is negligible.
As for metadata, I'm pretty sure they'll both work. I wrote up a test
scaffold that would create a fake tag, and tell the plugin to send it
out to the stream every few seconds. It seemed to work fine. Of course,
if something does break, I'll be glad to fix it.
Lastly, I've renamed lots of things into snake_case, in keeping with
normalperson's wishes in that regard.
[mk: moved the MP3 patch after this one. Splitted this patch into
several parts; the others were already applied before this one. Fixed
a bunch GCC warnings and wrong whitespace modifications. Made it
compile with mpd-mk by adapting to its prototypes]
2008-09-12 16:04:40 +02:00
|
|
|
This specifies the encoding quality to use. The value must be between 0
|
2006-06-04 22:05:30 +02:00
|
|
|
and 10. Fractional values, such as 2.5, are permitted. Either the quality or
|
shout: introduce pluggable encoder API
I've perhaps gone a bit overboard, but here's the current rundown:
Both Ogg and MP3 use the "shout" audio output plugin. The shout audio
output plugin itself has two new plugins, one for the Ogg encoder,
and another for the MP3 (LAME) encoder.
Configuration for an Ogg stream doesn't change. For an MP3 stream,
configuration is the same as Ogg, with two exceptions. First, you must
specify the optional "encoding" parameter, which should be set to "mp3".
See mpd.conf(5) for more details. Second, the "quality" parameter is
reversed for LAME, such that 1 is high quality for LAME, whereas 10 is
high quality for Ogg.
I've decomposed the code so that all libshout related operations
are done in audioOutput_shout.c, all Ogg specific functions are in
audioOutput_shout_ogg.c, and of course then all LAME specific functions
are handled in audioOutput_shout_mp3.c.
To develop encoder plugins for the shout audio output plugin, I basically
just mimicked the plugin system used for audio outputs. This might be
overkill, but hopefully if anyone ever wants to support some other sort
of stream, like maybe AAC, FLAC, or WMA (hey it could happen), they will
hopefully be all set.
The Ogg encoder is slightly less optimal under this configuration.
It used to send shout data directly out of its ogg_page structures. Now,
in the interest of encapsulation, it copies the data from its ogg_page
structures into a buffer provided by the shout audio output plugin (see
audioOutput_shout_ogg.c, line 77.) I suspect the performance impact
is negligible.
As for metadata, I'm pretty sure they'll both work. I wrote up a test
scaffold that would create a fake tag, and tell the plugin to send it
out to the stream every few seconds. It seemed to work fine. Of course,
if something does break, I'll be glad to fix it.
Lastly, I've renamed lots of things into snake_case, in keeping with
normalperson's wishes in that regard.
[mk: moved the MP3 patch after this one. Splitted this patch into
several parts; the others were already applied before this one. Fixed
a bunch GCC warnings and wrong whitespace modifications. Made it
compile with mpd-mk by adapting to its prototypes]
2008-09-12 16:04:40 +02:00
|
|
|
the bitrate parameter must be specified, but not both. For Ogg, a
|
|
|
|
higher quality number produces higher quality output. For MP3, it's
|
|
|
|
just the opposite, with lower numbers producing higher quality output.
|
2006-06-04 22:05:30 +02:00
|
|
|
.TP
|
|
|
|
.B bitrate <kbps>
|
|
|
|
This specifies the bitrate to use for encoding. Either the quality or the
|
|
|
|
bitrate parameter must be specified, but not both.
|
|
|
|
.TP
|
|
|
|
.B format <sample_rate:bits:channels>
|
|
|
|
This specifies the sample rate, bits per sample, and number of channels to use
|
|
|
|
for encoding.
|
|
|
|
.SH OPTIONAL SHOUT OUTPUT PARAMETERS
|
|
|
|
.TP
|
shout: introduce pluggable encoder API
I've perhaps gone a bit overboard, but here's the current rundown:
Both Ogg and MP3 use the "shout" audio output plugin. The shout audio
output plugin itself has two new plugins, one for the Ogg encoder,
and another for the MP3 (LAME) encoder.
Configuration for an Ogg stream doesn't change. For an MP3 stream,
configuration is the same as Ogg, with two exceptions. First, you must
specify the optional "encoding" parameter, which should be set to "mp3".
See mpd.conf(5) for more details. Second, the "quality" parameter is
reversed for LAME, such that 1 is high quality for LAME, whereas 10 is
high quality for Ogg.
I've decomposed the code so that all libshout related operations
are done in audioOutput_shout.c, all Ogg specific functions are in
audioOutput_shout_ogg.c, and of course then all LAME specific functions
are handled in audioOutput_shout_mp3.c.
To develop encoder plugins for the shout audio output plugin, I basically
just mimicked the plugin system used for audio outputs. This might be
overkill, but hopefully if anyone ever wants to support some other sort
of stream, like maybe AAC, FLAC, or WMA (hey it could happen), they will
hopefully be all set.
The Ogg encoder is slightly less optimal under this configuration.
It used to send shout data directly out of its ogg_page structures. Now,
in the interest of encapsulation, it copies the data from its ogg_page
structures into a buffer provided by the shout audio output plugin (see
audioOutput_shout_ogg.c, line 77.) I suspect the performance impact
is negligible.
As for metadata, I'm pretty sure they'll both work. I wrote up a test
scaffold that would create a fake tag, and tell the plugin to send it
out to the stream every few seconds. It seemed to work fine. Of course,
if something does break, I'll be glad to fix it.
Lastly, I've renamed lots of things into snake_case, in keeping with
normalperson's wishes in that regard.
[mk: moved the MP3 patch after this one. Splitted this patch into
several parts; the others were already applied before this one. Fixed
a bunch GCC warnings and wrong whitespace modifications. Made it
compile with mpd-mk by adapting to its prototypes]
2008-09-12 16:04:40 +02:00
|
|
|
.B encoding <encoding>
|
|
|
|
This specifies which output encoding to use. Should be either "ogg"
|
2008-10-12 12:14:51 +02:00
|
|
|
or "mp3", "mp3" is needed for shoutcast streaming. The default is "ogg".
|
shout: introduce pluggable encoder API
I've perhaps gone a bit overboard, but here's the current rundown:
Both Ogg and MP3 use the "shout" audio output plugin. The shout audio
output plugin itself has two new plugins, one for the Ogg encoder,
and another for the MP3 (LAME) encoder.
Configuration for an Ogg stream doesn't change. For an MP3 stream,
configuration is the same as Ogg, with two exceptions. First, you must
specify the optional "encoding" parameter, which should be set to "mp3".
See mpd.conf(5) for more details. Second, the "quality" parameter is
reversed for LAME, such that 1 is high quality for LAME, whereas 10 is
high quality for Ogg.
I've decomposed the code so that all libshout related operations
are done in audioOutput_shout.c, all Ogg specific functions are in
audioOutput_shout_ogg.c, and of course then all LAME specific functions
are handled in audioOutput_shout_mp3.c.
To develop encoder plugins for the shout audio output plugin, I basically
just mimicked the plugin system used for audio outputs. This might be
overkill, but hopefully if anyone ever wants to support some other sort
of stream, like maybe AAC, FLAC, or WMA (hey it could happen), they will
hopefully be all set.
The Ogg encoder is slightly less optimal under this configuration.
It used to send shout data directly out of its ogg_page structures. Now,
in the interest of encapsulation, it copies the data from its ogg_page
structures into a buffer provided by the shout audio output plugin (see
audioOutput_shout_ogg.c, line 77.) I suspect the performance impact
is negligible.
As for metadata, I'm pretty sure they'll both work. I wrote up a test
scaffold that would create a fake tag, and tell the plugin to send it
out to the stream every few seconds. It seemed to work fine. Of course,
if something does break, I'll be glad to fix it.
Lastly, I've renamed lots of things into snake_case, in keeping with
normalperson's wishes in that regard.
[mk: moved the MP3 patch after this one. Splitted this patch into
several parts; the others were already applied before this one. Fixed
a bunch GCC warnings and wrong whitespace modifications. Made it
compile with mpd-mk by adapting to its prototypes]
2008-09-12 16:04:40 +02:00
|
|
|
.TP
|
2008-10-12 12:14:51 +02:00
|
|
|
.B protocol <protocol>
|
|
|
|
This specifies the protocol that wil be used to connect to the
|
|
|
|
icecast/shoutcast server. The options are "shoutcast", "icecast1" and
|
|
|
|
"icecast2". The default is "icecast2".
|
2008-10-14 17:21:47 +02:00
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B user <username>
|
|
|
|
This specifies the username to use when logging in to the icecast server. The
|
|
|
|
default is "source".
|
|
|
|
.TP
|
|
|
|
.B public <yes or no>
|
|
|
|
This specifies whether to request that the stream be listed in all public
|
|
|
|
stream directories that the icecast server knows about. The default is no.
|
|
|
|
.TP
|
2007-06-12 20:28:57 +02:00
|
|
|
.B timeout <seconds>
|
|
|
|
This specifies the number of seconds to wait before giving up on trying to
|
|
|
|
connect to the icecast server. The default is 2 seconds.
|
|
|
|
.TP
|
2006-06-04 22:05:30 +02:00
|
|
|
.B description <description>
|
|
|
|
This specifies a description of the stream.
|
|
|
|
.TP
|
|
|
|
.B genre <genre>
|
|
|
|
This specifies the genre(s) of the stream.
|
|
|
|
.SH FILES
|
|
|
|
.TP
|
|
|
|
.BI ~/.mpdconf
|
|
|
|
User configuration file.
|
|
|
|
.TP
|
|
|
|
.BI /etc/mpd.conf
|
|
|
|
Global configuration file.
|
|
|
|
.SH SEE ALSO
|
|
|
|
mpd(1), mpc(1)
|