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
|
|
|
|
2006-09-22 08:44:02 +00:00
|
|
|
- option descriptions (all)
|
|
|
|
- usage (options, configuration files, controls)
|
|
|
|
- basic examples
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
2006-09-22 08:44:02 +00:00
|
|
|
- instructions for installation, encoding and similar processes
|
|
|
|
- detailed evaluations or hints
|
|
|
|
- tutorials, guides
|
2002-09-05 16:42:38 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
2006-09-22 08:44:02 +00:00
|
|
|
- Cosmetic patches are allowed but should be done separately from the real
|
|
|
|
changes, be marked as cosmetic changes and shouldn't change the general
|
|
|
|
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
|
|
|
|
2006-11-01 17:33:45 +00:00
|
|
|
- groff:
|
|
|
|
groff is the "official" tool to convert man pages. To get good results you
|
|
|
|
need a recent version (1.18.2).
|
|
|
|
groff -mman -Thtml mplayer.1 > mplayer.1.html
|
2006-11-01 17:43:20 +00:00
|
|
|
groff -mman -Tlatin1 -rLL=78n mplayer.1 | col -bxp > mplayer.1.txt
|
2006-11-01 17:33:45 +00:00
|
|
|
The groff man page lists other output formats to use with -T.
|
|
|
|
|
|
|
|
Unfortunately groff is not able to handle UTF-8 input as of version 1.19.2.
|
|
|
|
groff-utf8 is a wrapper that works around these deficiencies:
|
|
|
|
http://www.haible.de/bruno/packages-groff-utf8.html
|
|
|
|
|
|
|
|
- man2html:
|
|
|
|
You can view it through a CGI script:
|
|
|
|
http://localhost/cgi-bin/man2html?mplayer
|
|
|
|
The output is unusable as the script doesn't seem to support the macro
|
|
|
|
definitions. Maybe manually changing all leads to acceptable results.
|
|
|
|
|
|
|
|
- rman:
|
|
|
|
rman -f html mplayer.1 > man_page.rman.html
|
|
|
|
The output is ugly as rman doesn't understand many of the macros used.
|
|
|
|
|
|
|
|
- troffcvt:
|
|
|
|
troff2html -man mplayer.1 > man_page.tcvt.html
|
|
|
|
The (good) output is similar to groff but simplified...
|
2003-01-01 18:47:51 +00:00
|
|
|
|
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)
|
2006-09-22 08:44:02 +00:00
|
|
|
not visible, copyright and author information
|
2002-09-05 16:42:38 +00:00
|
|
|
(Macro definitions)
|
2006-09-22 08:44:02 +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
|
2006-09-22 08:44:02 +00:00
|
|
|
a description of MPlayer's playtree
|
2002-09-05 16:42:38 +00:00
|
|
|
DESCRIPTION
|
2006-09-22 08:44:02 +00:00
|
|
|
a general description of MPlayer, MEncoder, GMPlayer and their features
|
2005-10-06 12:29:43 +00:00
|
|
|
INTERACTIVE CONTROL
|
2006-09-22 08:44:02 +00:00
|
|
|
description of MPlayer's input system and interactive controls
|
2004-02-10 07:14:12 +00:00
|
|
|
USAGE
|
2006-09-22 08:44:02 +00:00
|
|
|
some general notes about usage
|
2006-01-04 15:01:55 +00:00
|
|
|
CONFIGURATION FILES
|
2006-09-22 08:44:02 +00:00
|
|
|
description of the configuration file format
|
2004-02-10 07:14:12 +00:00
|
|
|
GENERAL OPTIONS
|
|
|
|
General options that are common to both MPlayer and MEncoder.
|
2002-09-05 16:42:38 +00:00
|
|
|
PLAYER OPTIONS (MPLAYER ONLY)
|
2006-09-22 08:44:02 +00:00
|
|
|
user interface option descriptions (MPlayer only)
|
2002-09-05 16:42:38 +00:00
|
|
|
DEMUXER/STREAM OPTIONS
|
2006-09-22 08:44:02 +00:00
|
|
|
demuxer and stream layer option descriptions
|
2006-07-12 23:14:30 +00:00
|
|
|
OSD/SUBTITLE OPTIONS
|
2003-01-01 18:47:51 +00:00
|
|
|
This section is special in that it contains all subtitle and OSD option
|
2006-09-22 08:44:02 +00:00
|
|
|
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)
|
2006-09-22 08:44:02 +00:00
|
|
|
audio output layer (ao) option descriptions (MPlayer only)
|
2004-05-13 10:52:06 +00:00
|
|
|
AUDIO OUTPUT DRIVERS (MPLAYER ONLY)
|
2006-09-22 08:44:02 +00:00
|
|
|
audio output driver description (ao)
|
2002-09-05 16:42:38 +00:00
|
|
|
VIDEO OUTPUT OPTIONS (MPLAYER ONLY)
|
2006-09-22 08:44:02 +00:00
|
|
|
video output layer (vo) option descriptions (MPlayer only)
|
2004-06-28 14:49:10 +00:00
|
|
|
VIDEO OUTPUT DRIVERS (MPLAYER ONLY)
|
2006-09-22 08:44:02 +00:00
|
|
|
video output driver description (vo)
|
2002-09-05 16:42:38 +00:00
|
|
|
DECODING/FILTERING OPTIONS
|
2006-09-22 08:44:02 +00:00
|
|
|
decoding/filtering layer options (ad, vd, pl)
|
2003-05-31 16:41:41 +00:00
|
|
|
VIDEO FILTERS
|
2006-09-22 08:44:02 +00:00
|
|
|
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
|
2006-09-22 08:44:02 +00:00
|
|
|
a list and description of all installed/used files/directories
|
2005-11-29 01:12:03 +00:00
|
|
|
EXAMPLES OF MPLAYER USAGE
|
2006-09-22 08:44:02 +00:00
|
|
|
basic examples, again: no long descriptions/processes
|
2005-11-29 01:12:03 +00:00
|
|
|
EXAMPLES OF MENCODER USAGE
|
2006-09-22 08:44:02 +00:00
|
|
|
basic examples, again: no long descriptions/processes
|
2002-09-05 16:42:38 +00:00
|
|
|
BUGS
|
|
|
|
AUTHORS
|
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
2003-12-07 00:49:44 +00:00
|
|
|
man 7 roff
|
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.
|
2006-09-22 08:44:02 +00:00
|
|
|
- used commands: .TH, .SH, .TP, .IP, .PP, .[R]B, .I, .br, .RS, .RE, .na,
|
2002-10-15 13:51:46 +00:00
|
|
|
.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.
|
2004-07-20 00:31:54 +00:00
|
|
|
- Don't start a line with "'" or ".", nroff treats them specially.
|
2006-09-18 12:36:53 +00:00
|
|
|
- To quickly check a manual page for markup errors, just run
|
|
|
|
man DOCS/man/XX/mplayer.1 > /dev/null
|
2003-01-01 18:47:51 +00:00
|
|
|
|
2006-09-22 08:44:02 +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.
|
2006-09-22 08:44:02 +00:00
|
|
|
- MPlayer-only options in a section which isn't marked this way
|
2004-07-02 01:39:16 +00:00
|
|
|
are followed by (MPlayer only).
|
2003-01-01 18:47:51 +00:00
|
|
|
- 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
|
|
|
|
2006-09-22 08:44:02 +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
|
2006-09-22 08:44:02 +00:00
|
|
|
the rest).
|
|
|
|
- .RSs begin of suboptions, end with .RE
|
|
|
|
- .RSss begin of suboptions in a suboption
|
|
|
|
- .REss end of suboptions in a suboption
|
2002-09-05 16:42:38 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
[...]
|
2004-07-02 01:39:16 +00:00
|
|
|
|
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
|
|
|
[...]
|