2003-01-01 18:47:51 +00:00
|
|
|
========================================
|
2002-09-05 16:42:38 +00:00
|
|
|
A documentation about MPlayer's man page
|
|
|
|
========================================
|
|
|
|
|
|
|
|
|
|
|
|
About the documentation
|
|
|
|
-----------------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
Yes it's true: This is the documentation of the documentation (man page).
|
2002-09-05 16:42:38 +00:00
|
|
|
This guide should be used as a reference for questions about the man page
|
|
|
|
structure. It's not a strict guide but we recommend following it to get a
|
|
|
|
uniform man page.
|
|
|
|
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
What belongs in the man page?
|
2002-09-05 16:42:38 +00:00
|
|
|
-----------------------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
- option descriptions (all)
|
2003-10-13 17:54:04 +00:00
|
|
|
- usage (options, config files, controls)
|
2002-09-05 16:42:38 +00:00
|
|
|
- basic examples
|
|
|
|
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
What doesn't belong in the man page?
|
2002-09-05 16:42:38 +00:00
|
|
|
------------------------------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
- instructions for installation, encoding and similar processes
|
|
|
|
- detailed evaluations or hints
|
2002-09-05 16:42:38 +00:00
|
|
|
- tutorials, guides
|
|
|
|
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
How should patches look like?
|
|
|
|
-----------------------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
Follow the rules in patches.txt, they apply to the man page, too.
|
2002-09-05 16:42:38 +00:00
|
|
|
Exceptions are:
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
- Cosmetic patches are allowed but should be done separately from the real
|
2002-09-05 16:42:38 +00:00
|
|
|
changes, be marked as cosmetic changes and shouldn't change the general
|
2003-01-01 18:47:51 +00:00
|
|
|
style without reasons/permissions.
|
|
|
|
- The same applies to spell checking.
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
How do I create an HTML, text or other version of the man page?
|
2002-10-14 22:14:41 +00:00
|
|
|
---------------------------------------------------------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
The man page was more or less designed for groff as it is the main tool for
|
2002-09-05 16:42:38 +00:00
|
|
|
it. Therefore only groff produces acceptable results without changes.
|
2003-01-01 18:47:51 +00:00
|
|
|
Additionally, the SS variable should be set to either very low or very high
|
|
|
|
values to produce a better groff HTML output (Due to a bug of groff2html?).
|
|
|
|
A setting of 4 should look readable. Here's an overview again:
|
2002-10-14 22:14:41 +00:00
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
- groff: Groff is the "official" tool to convert man pages.
|
|
|
|
To get good results you need a recent version (1.18.2).
|
2003-05-31 22:32:02 +00:00
|
|
|
groff -man -Thtml mplayer.1 > manpage.html
|
2002-11-17 00:00:27 +00:00
|
|
|
groff -rLL=64n -m man -Tascii mplayer.1 | col -bx > manpage.txt
|
2003-01-01 18:47:51 +00:00
|
|
|
The groff man page lists other output formats to use with -T.
|
|
|
|
- man2html: You can view it through a CGI script:
|
2002-09-05 16:42:38 +00:00
|
|
|
http://localhost/cgi-bin/man2html?mplayer
|
2003-01-01 18:47:51 +00:00
|
|
|
The output is unusable as the script doesn't seem to support
|
|
|
|
the macro definitions. Maybe manually changing all leads to
|
|
|
|
acceptable results.
|
2002-10-14 22:42:55 +00:00
|
|
|
- rman: rman -f html mplayer.1 > manpage.rman.html
|
2002-10-14 22:14:41 +00:00
|
|
|
The output is ugly as rman doesn't understand many of the
|
|
|
|
macros used.
|
|
|
|
- troffcvt: troff2html -man mplayer.1 > manpage.tcvt.html
|
2003-01-01 18:47:51 +00:00
|
|
|
The (good) output is similar to groff but simplified...
|
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
The structure
|
|
|
|
-------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
The option descriptions are divided into sections. Inside a section options are
|
|
|
|
alphabetically sorted. The sections are:
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
(Header)
|
2003-01-01 18:47:51 +00:00
|
|
|
Not visible, copyright and author information.
|
2002-09-05 16:42:38 +00:00
|
|
|
(Macro definitions)
|
2003-01-01 18:47:51 +00:00
|
|
|
Not visible, some macro definitions.
|
2002-09-05 16:42:38 +00:00
|
|
|
NAME
|
2003-01-01 18:47:51 +00:00
|
|
|
The man page is used for both mplayer and mencoder.
|
2002-09-05 16:42:38 +00:00
|
|
|
SYNOPSIS
|
|
|
|
A description of MPlayer's playtree.
|
|
|
|
DESCRIPTION
|
|
|
|
A general description of MPlayer, MEncoder, GMPlayer and its features.
|
|
|
|
GENERAL NOTES
|
|
|
|
Some general notes about the options and a description of the config file
|
|
|
|
format.
|
2003-05-31 16:41:41 +00:00
|
|
|
KEYBOARD CONTROL
|
|
|
|
A description of MPlayer's input system and the default keyboard controls.
|
2002-09-05 16:42:38 +00:00
|
|
|
PLAYER OPTIONS (MPLAYER ONLY)
|
2003-01-01 18:47:51 +00:00
|
|
|
User interface option descriptions (MPlayer only).
|
2002-09-05 16:42:38 +00:00
|
|
|
DEMUXER/STREAM OPTIONS
|
2003-01-01 18:47:51 +00:00
|
|
|
Demuxer and stream layer option descriptions.
|
2002-09-05 16:42:38 +00:00
|
|
|
OSD/SUB OPTIONS
|
2003-01-01 18:47:51 +00:00
|
|
|
This section is special in that it contains all subtitle and OSD option
|
|
|
|
descriptions even if they might belong to one of the other sections. It was
|
|
|
|
created because of its size.
|
2002-09-05 16:42:38 +00:00
|
|
|
AUDIO OUTPUT OPTIONS (MPLAYER ONLY)
|
2003-01-01 18:47:51 +00:00
|
|
|
Audio output layer (ao) option descriptions (MPlayer only).
|
2002-09-05 16:42:38 +00:00
|
|
|
VIDEO OUTPUT OPTIONS (MPLAYER ONLY)
|
2003-01-01 18:47:51 +00:00
|
|
|
Video output layer (vo) option descriptions (MPlayer only).
|
2002-09-05 16:42:38 +00:00
|
|
|
DECODING/FILTERING OPTIONS
|
2003-05-31 16:41:41 +00:00
|
|
|
Decoding/Filtering layer options (ad, vd, pl).
|
|
|
|
VIDEO FILTERS
|
|
|
|
Video filter description (vf)
|
2003-07-05 12:37:10 +00:00
|
|
|
GENERAL ENCODING OPTIONS (MENCODER ONLY)
|
2003-01-01 18:47:51 +00:00
|
|
|
Encoding option descriptions (ve) (MEncoder only).
|
2003-07-05 12:37:10 +00:00
|
|
|
CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY)
|
|
|
|
Codec specific option descriptions (lavc,divx4,xvid,lame) (MEncoder only).
|
2002-09-05 16:42:38 +00:00
|
|
|
FILES
|
|
|
|
A list and description of all installed/used files/directories.
|
|
|
|
EXAMPLES
|
|
|
|
Basic examples. Again: no long descriptions/processes.
|
|
|
|
BUGS
|
|
|
|
AUTHORS
|
|
|
|
STANDARD DISCLAIMER
|
|
|
|
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
The man page/groff format
|
|
|
|
-------------------------
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
Just read this and RTFS:
|
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
http://www.tldp.org/HOWTO/mini/Man-Page.html
|
|
|
|
man 7 man
|
|
|
|
man 7 groff
|
|
|
|
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
"Style" guidelines
|
|
|
|
------------------
|
|
|
|
|
|
|
|
This section was kept simple but there are certain guidelines/rules to get a
|
2002-09-05 16:42:38 +00:00
|
|
|
uniform man page. The best way is to read (and understand) the source.
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
General:
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
- No line should contain more than 79 characters.
|
2002-10-15 13:51:46 +00:00
|
|
|
- Used commands: .TH, .SH, .TP, .IP, .PP, .[R]B, .I, .br, .RS, .RE, .na,
|
|
|
|
.nh, .ad, .hy, macro definitions, comments and some more
|
2003-10-13 17:54:04 +00:00
|
|
|
- Don't forget the quotation marks around expressions, etc...
|
|
|
|
- Each new sentence should start on a line of its own.
|
|
|
|
- Put a backslash before a '-' if it denotes a range (1\-10), an option
|
2003-10-14 13:56:37 +00:00
|
|
|
(\-fs), stdin (\-) or a dash (mplayer \- Movie Player for Linux).
|
|
|
|
Use just '-' if it is a hyphen (A-V) or a minus (-1). Please note that
|
|
|
|
it should be \-dvd-device and not \-dvd\-device.
|
2002-09-05 16:42:38 +00:00
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
Option descriptions:
|
|
|
|
|
2003-10-28 11:17:10 +00:00
|
|
|
- Options should be in alphabetical order.
|
2003-01-01 18:47:51 +00:00
|
|
|
- Option and/or suboption parameters should be short, descriptive and put
|
|
|
|
in angular brackets (e.g. \-vo <driver>).
|
|
|
|
- If the option has a parameter in a certain range, specify it right after
|
|
|
|
the option (e.g. \-subpos <0\-100>).
|
|
|
|
- Optional things should be put in square brackets ([]).
|
2002-09-05 16:42:38 +00:00
|
|
|
- Obsolete options are followed by (OBSOLETE), beta options by
|
2003-01-01 18:47:51 +00:00
|
|
|
(BETA CODE), etc.
|
2002-09-05 16:42:38 +00:00
|
|
|
- MPlayer only options in a section which isn't marked this way
|
2003-01-01 18:47:51 +00:00
|
|
|
are followed by (MPLAYER only).
|
|
|
|
- Add references to other options if they belong to each other, e.g.
|
|
|
|
'(\-vo zr only)' or '(also see \-alang)' or are commonly used together.
|
|
|
|
- If a nontrivial default parameter exists, mention it, e.g. (default: 24).
|
|
|
|
- Put examples and notes at the end of the description (before suboptions).
|
|
|
|
- The end of the suboptions _always_ has to be followed by a paragraph
|
2002-09-05 22:54:57 +00:00
|
|
|
(BUG).
|
2003-10-28 11:17:10 +00:00
|
|
|
- For flag options just document the non-default one of -XXX and -noXXX, if
|
|
|
|
the option is not a flag, describe both, one below the other (this is an
|
|
|
|
exception to the alphabetical order).
|
2002-09-05 16:42:38 +00:00
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
Macro definitions (see beginning of man page):
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
- SS Starting value of the suboption column
|
2002-09-05 16:42:38 +00:00
|
|
|
- .IPs Add new suboption (we use .TP for normal options and .IP for
|
|
|
|
the rest)
|
|
|
|
- .RSs Begin of suboptions, end with .RE
|
|
|
|
- .RSss Begin of suboptions in a suboption
|
|
|
|
- .REss End of suboptions in a suboption
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
|
|
|
|
Options, suboptions, examples structure:
|
|
|
|
|
2002-09-05 16:42:38 +00:00
|
|
|
- Normal options (note the '<' and '>'):
|
|
|
|
|
|
|
|
[...]
|
|
|
|
.TP
|
2003-01-01 18:47:51 +00:00
|
|
|
.B \-option <parameter>
|
2002-09-05 16:42:38 +00:00
|
|
|
description
|
|
|
|
[...]
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
- Long suboptions:
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
[...]
|
|
|
|
description. Available options are:
|
|
|
|
.
|
|
|
|
.RSs
|
|
|
|
.IPs "subopt1=<value>"
|
|
|
|
description1
|
|
|
|
.IPs "subopt2=<value>"
|
|
|
|
description2
|
|
|
|
[...]
|
|
|
|
.IPs "last subopt=<value>"
|
|
|
|
last description
|
|
|
|
.RE
|
|
|
|
.
|
|
|
|
[...]
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
- Short suboptions:
|
2002-09-05 22:54:57 +00:00
|
|
|
|
|
|
|
[...]
|
|
|
|
description. Available options are:
|
|
|
|
|
2003-08-26 10:02:34 +00:00
|
|
|
.PD 0
|
2002-09-05 22:54:57 +00:00
|
|
|
.RSs
|
|
|
|
.IPs "subopt1=<value>"
|
|
|
|
description1
|
|
|
|
.IPs "subopt2=<value>"
|
|
|
|
description2
|
|
|
|
[...]
|
|
|
|
.IPs "last subopt=<value>"
|
|
|
|
last description
|
|
|
|
.RE
|
2003-08-26 10:02:34 +00:00
|
|
|
.PD 1
|
2002-09-05 22:54:57 +00:00
|
|
|
.
|
|
|
|
[...]
|
|
|
|
|
2003-01-01 18:47:51 +00:00
|
|
|
- Suboptions in suboptions:
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
[...]
|
|
|
|
.IPs "subopt1=<value>"
|
|
|
|
description1
|
|
|
|
.RSss
|
|
|
|
subsubopt1: description1
|
|
|
|
.br
|
|
|
|
subsubopt2: description2
|
|
|
|
[...]
|
|
|
|
.REss
|
|
|
|
[...]
|
|
|
|
|
2002-10-14 22:14:41 +00:00
|
|
|
- Examples:
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
[...]
|
|
|
|
|
|
|
|
.I EXAMPLE:
|
|
|
|
.PD 0
|
|
|
|
.RSs
|
|
|
|
.IP "-option used parameters"
|
|
|
|
description
|
|
|
|
[...]
|
|
|
|
.RE
|
|
|
|
.PD 1
|
2002-09-05 22:54:57 +00:00
|
|
|
.
|
2002-09-05 16:42:38 +00:00
|
|
|
[...]
|