From 9849921fb67e080075d49daf2614628fd1f3d144 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Sun, 30 Apr 2006 14:53:28 +0000 Subject: Update man page, adding normalperson as developer git-svn-id: https://svn.musicpd.org/mpd/trunk@4129 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- doc/mpd.1 | 268 ++++++++------------------------------------------------------ 1 file changed, 33 insertions(+), 235 deletions(-) (limited to 'doc') diff --git a/doc/mpd.1 b/doc/mpd.1 index 8f0458085..6dd8276f1 100644 --- a/doc/mpd.1 +++ b/doc/mpd.1 @@ -1,265 +1,63 @@ .TH "Music Player Daemon" 1 .SH NAME -MPD \- A daemon for playing music (mp3, ogg vorbis, and flac) +MPD \- A daemon for playing music .SH SYNOPSIS .B mpd .RI [ options ] .RI [ CONF_FILE ] -.br .SH DESCRIPTION -MPD is a daemon for playing music (mp3, ogg vorbis, and flac). Music is played -through the server's audio device. The daemon stores info about all available -music, and this info can be easily searched and retrieved. Player control, info -retrieval, and playlist management can all be managed remotely. +MPD is a daemon for playing music. Music is played through the configured +audio output(s) (which are generally local, but can be remote). The daemon +stores info about all available music, and this info can be easily searched and +retrieved. Player control, info retrieval, and playlist management can all be +managed remotely. -MPD searches for a config file in ~/.mpdconf then /etc/mpd.conf or uses -CONF_FILE. Instead of using a config file, the minimal configuration paramters -can be specified on the command line: PORT, MUSIC_DIR, PLAYLIST_DIR, LOG_FILE, - and ERROR_FILE. +MPD searches for a config file in \fB~/.mpdconf\fP then \fB/etc/mpd.conf\fP or +uses CONF_FILE. -Read more about MPD on http://www.musicpd.org +Read more about MPD at <\fBhttp://www.musicpd.org/\fP>. .SH OPTIONS .TP -.BI --create-db -(Re)Crete the db file for mpd. -.TP .BI --help -.br Output a brief help message. .TP +.BI --kill +Kill the currently running mpd session. +.TP +.BI --create-db +Force (re)creation of database and exit. +.TP .BI --no-create-db -Do not create the db file for mpd, even if it doesn't exist. +Do not create database, even if it doesn't exist. .TP .BI --no-daemon Don't detach from console. .TP .BI --stdout -Don't redirect output to log files. +Print messages to stdout and stderr. .TP .BI --verbose -Output verbose amounts of information to the logs +Verbose logging. .TP .BI --version Print version information. -.SH PARAMETERS -Below are a list of parameters that can be specified in the config file. Each line in the config file should be of the form: -.br -parameter "value" -.TP -.B port -This specifies the port that MPD listens on. This parameter is required. This is typically 6600. -.TP -.B music_directory -This specifies the directory where music is located. This parameter is required. The directory path should be an absolute path. -.TP -.B playlist_directory -This specifies the directory where saved playlists are stored. This parameter is required. The directory path should be an absolute path. -.TP -.B log_file -This specifies where the log file should be located. This parameter is required. The file path should be an absolute path. -.TP -.B error_file -This specifies where the error file should be located. This parameter is required. The file path should be an absolute path. -.TP -.B log_level -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 -.B db_file -This specifies where the db file will be stored. The file path should be an -absolute path. The default is ".mpddb" in the playlist directory. -.TP -.B filesystem_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 bind_to_address -This specifies which address MPD binds to and listens on. The default is "any", -which binds to all available addresses. -.TP -.B user -This specifies the user that mpd will run as, if set. -.TP -.B password -This specifies a password for access to mpd. The format is -"password@permissions" where permissions is a comma delimmitted 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. More than one password can -be specified. An example of a password is "somePassword@read,add". -.TP -.B default_permissions -This specifies the permissions of a client that has not been authenticated using -a password. The format of permissions is specified n the description of the -"password" config paramter. If not passwords are specified, the default is -"read,add,control,admin", otherwise it is "" (no permissions). -.TP -.B state_file -This specifies if a state file is used and where it is located. The file path should be an absolute path. 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 -.B connection_timeout -If a client does not send any new data in this time period, the connection is closed. The default is 60 seconds. +.SH FILES .TP -.B max_connections -This specifies the maximum number of clients that can be connected to MPD. The default is 5 connections. +.BI ~/.mpdconf +User configuration file. .TP -.B mixer_type -This specifies which mixer to use. The default is oss. -.TP -.B mixer_device -This specifies which mixer to use. The default for oss is /dev/mixer; -the default for alsa is "hw:0". -.TP -.B mixer_control -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 -.B max_playlist_length -This specifies the maximum number of songs that can be in the playlist. The default is 4096 songs. -.TP -.B audio_buffer_size -This specifies the size of the audio output buffer that mpd uses. The default is 2048 kilobytes. -.B buffer_before play <0-100%> -This specifies the amount of the audio buffer that will be filled before a song begins playing. The default is 25%. -.TP -.B audio_output_format -This specifies the format all decoded audio should be converted to for playing. This options is useful if your sound card only supports a limited number of sample rates and if you want to ensure all transitions between songs are crossfaded/gapless. This option is not recommended for all users because it can cause a reduction in sound quality. The two most common formats are "48000:16:2" and "44100:16:2". -.TP -.B replaygain -This specifies whether to use replaygain tags (currently only supported for FLAC and Ogg Vorbis formats). -.TP -.B replaygain_preamp <-15 to 15> -This is the gain (in dB) applied to songs with replaygain tags. -.TP -.B max_command_list_size -This specifies the maximum size a command list can be (in kilobytes). The default is 2048 kilobytes. -.TP -.B max_output_buffer_size -This specifies the maximum size of the output buffer to a client (in kilobytes). -The default is 8192 kilobytes. -.TP -.B ao_driver -This specifies the ao plug-in to use for audio output. Typical values for -Linux include "oss" and "alsa09". The default value is "default". -.TP -.B ao_driver_options -This specifies the options to use for the selected ao_driver. For oss, the -only option available is "dsp". For alsa09, the available options are: -"dev", "buf_size", and "periods". 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 value is "". -.TP -.B audio_write_size -This specifies how many bytes mpd writes to the audio device at once. The -default is 1024. This options is to work around a bug in older versions -of libao on sound cards with very small buffers. -.TP -.B save_absolute_paths_in_playlists -This specifies whether relative or absolute paths for song filenames are -used when saving playlists. The default value is "no". -.TP -.B http_proxy_host -Use to specify the proxy host used for http connections. -.TP -.B http_proxy_port -The port that the http proxy host uses. -.TP -.B http_proxy_user -If the http proxy server requires authentication, this specifies the user. -.TP -.B http_proxy_password -If the http proxy server requires authentication, this specifies the password. -.SH EXAMPLES -.TP -Below is an example config file. (Note: '#' at the beginning of a line denotes a comment. The '#' must be the first character/symbol on that line.) -.br - -.br -# required -.br -port "6600" -.br -music_directory "~/mp3" -.br -playlist_directory "~/playlists" -.br -log_file "~/mpd.log" +.BI /etc/mpd.conf +Global configuration file. +.SH SEE ALSO +mpd.conf(5), mpc(1) +.SH BUGS +If you find a bug, please report it at .br -error_file "~/mpd.error" +<\fBhttp://www.musicpd.org/mantis/bug_report_page.php\fP>. +.\" What should we put here? +.SH AUTHORS +Warren Dukes .br +Eric Wong -.br -# optional -.br -mixer_type "oss" -.br -mixer_device "/dev/mixer" -.br -#mixer_control "Pcm" -.br -# mixer_type is typically "oss", "alsa", or "software" -.br -#mixer_type "alsa" -.br -#mixer_device "default" -.br -#mixer_control "PCM" -.br -# ao_driver is typically "oss" or "alsa09" -.br -#ao_driver "oss" -.br -#ao_driver_options "dsp=/dev/dsp" -.br -#audio_write_size "1024" -.br -max_playlist_length "4096" -.br -buffer_before_play "25%" -.br -audio_buffer_size "2048" -.br -#db_file "~/playlists/.mpddb" -.br -#state_file "~/playlists/.mpdstate" -.br -#user "shank" -.br -connection_timeout "60" -.br -max_connections "5" -.br -max_command_list_size "2048" -.br -max_output_buffer_size "2048" -.br -save_absolute_paths_in_playlists "no" -.br -# log_level can be "default", "secure", "verbose" -.br -log_level "default" -.br -# when bind_to_address is set to "any", MPD binds all available addresses -.br -bind_to_address "any" -.br -#password "password@read,add,control,admin" -.br -#default_permissions "read,add,control,admin" -.br -#filesystem_charset "UTF-8" -.br -#replaygain "album" -.br -#replaygain_preamp "0" -.br -#http_proxy_host "proxy.isp.com" -.br -#http_proxy_port "8080" -.br -#http_proxy_user "user" -.br -#http_proxy_password "password" -.SH SEE ALSO -mpc(1) +Special thanks to all the people that provided feedback and patches. -- cgit v1.2.3