annotate DOCS/tech/manpage.txt @ 7444:56a16bd12b79

use avcodec_alloc_context()
author michael
date Thu, 19 Sep 2002 09:47:37 +0000
parents bfad437d4119
children 2c1336588588
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
1 A documentation about MPlayer's man page
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
2 ========================================
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
3
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
4
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
5 About the documentation
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
6 -----------------------
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
7 Yes it's true: This is the documentation about the documentation (man page).
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
8 This guide should be used as a reference for questions about the man page
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
9 structure. It's not a strict guide but we recommend following it to get a
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
10 uniform man page.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
11
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
12
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
13 What belongs to the man page?
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
14 -----------------------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
15 - option descriptions (all)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
16 - usage (options, config files, controls, slave mode)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
17 - basic examples
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
18
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
19
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
20 What doesn't belong to the man page?
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
21 ------------------------------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
22 - instructions of a process (installation, encoding, etc)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
23 - detailed valuations or hints
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
24 - tutorials, guides
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
25
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
26
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
27 How should patches look like?
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
28 -----------------------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
29 Follow the rules in patches.txt, they apply to the man page too.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
30 Exceptions are:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
31 - Cosmetic patches are allowed but should be done seperately from the real
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
32 changes, be marked as cosmetic changes and shouldn't change the general
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
33 style without reasons/permissions
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
34 - The same applies for spellchecks
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
35
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
36
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
37 How do I create a html version of the man page?
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
38 -----------------------------------------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
39 The man pages was more or less designed for groff as it is the main tool for
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
40 it. Therefore only groff produces acceptable results without changes.
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
41 Additionaly, the SS variable should be set to either very low or very high
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
42 values to produce a better groff html output (~18 looks nice for man).
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
43 Here's an overview again:
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
44
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
45 - groff: groff -Thtml -m man mplayer.1 > manpage.groff.html
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
46 - man2html: You can view it over your cgi script:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
47 http://localhost/cgi-bin/man2html?mplayer
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
48 The output is unuseable as the script doesn't seem to
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
49 support the macro definitions. Maybe a manual change of all
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
50 leads to acceptable results.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
51 - rman: rman -f html mplayer.1 > manpage.rman.html
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
52 The output is ugly, you need to remove the .PDs to produce
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
53 at least acceptable results.
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
54
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
55
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
56 The structure
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
57 -------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
58 The options are divided into the the layer they belong to. The only exception
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
59 is the OSD/SUB section. Inside the section they're alphabetically ordered.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
60
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
61 (Header)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
62 Not visible, copyright and author informations.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
63 (Macro definitions)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
64 Not visible, some macro defintions.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
65 NAME
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
66 The manpage is used for both: mplayer and mencoder.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
67 SYNOPSIS
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
68 A description of MPlayer's playtree.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
69 DESCRIPTION
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
70 A general description of MPlayer, MEncoder, GMPlayer and its features.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
71 GENERAL NOTES
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
72 Some general notes about the options and a description of the config file
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
73 format.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
74 PLAYER OPTIONS (MPLAYER ONLY)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
75 Option descriptions about the user interface (mplayer only).
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
76 DEMUXER/STREAM OPTIONS
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
77 Option descriptions about the demuxer and stream layer.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
78 OSD/SUB OPTIONS
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
79 This section is special: It contains all description about subtitles and
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
80 OSD. It is independent of the usual layer separation and was created
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
81 because of its size. The options may therefore come from any layer.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
82 AUDIO OUTPUT OPTIONS (MPLAYER ONLY)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
83 Option descriptions about the audio output layer (ao) (mplayer only).
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
84 VIDEO OUTPUT OPTIONS (MPLAYER ONLY)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
85 Option descriptions about the video output layer (vo) (mplayer only).
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
86 DECODING/FILTERING OPTIONS
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
87 Options about the decoding and filter layer (ad,vd,vf,pl).
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
88 ENCODING OPTIONS (MENCODER ONLY)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
89 Encoding option descriptions (ve) (mencoder only).
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
90 KEYBOARD CONTROL
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
91 A description of MPlayer's input system and the default keyboard controls.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
92 SLAVE MODE PROTOCOL
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
93 A description about the slave mode protocol (-slave).
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
94 FILES
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
95 A list and description of all installed/used files/directories.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
96 EXAMPLES
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
97 Basic examples. Again: no long descriptions/processes.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
98 BUGS
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
99 AUTHORS
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
100 STANDARD DISCLAIMER
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
101
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
102
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
103 The man page/groff format
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
104 -------------------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
105 Just read this and rtfs:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
106 http://www.tldp.org/HOWTO/mini/Man-Page.html
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
107 man 7 man
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
108 man 7 groff
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
109
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
110
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
111 Directives for the internal "style"
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
112 -----------------------------------
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
113 It was kept simple but there are still certain directives/rules to get a
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
114 uniform man page. The best way is to read (and understand) the source.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
115
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
116 General:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
117 - No line should contain more than 79 characters
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
118 - Used commands: .TH, .SH, .TP, .IP, .[R]B, .I, .br, .RS, .RE, macro
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
119 definitions, comments
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
120 - Don't forget the quotation marks around expressions or the backslash
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
121 before a '-' if it's needed.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
122
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
123 Separations:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
124 - Sections (.SH) 2 newlines before (3 visible because of .SH)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
125 - Options not (it's done automatically over .TP)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
126 - Sub options not (it's done automatically over .IP)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
127 should be be separated over a comment (.) at the
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
128 beginning and the end to make the man page readable ;)
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
129 - Examples, notes 1 newline before
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
130 - Big parts better use .P (paragraph) or .br (equal to html's <BR>)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
131 instead of newlines
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
132 - In general no newlines
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
133 never more than 2 spaces between anything
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
134
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
135 Option description:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
136 - Option and/or suboption parameters should be short and descriptive.
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
137 - If the option is between a certain range, it should be specified at the
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
138 beginning (eg. <0\-100> or <\-100 \- 100>)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
139 - All optional things are but between angular paranthesis ([])
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
140 - Obsolete options are followed by (OBSOLETE), beta options by
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
141 (BETA CODE), etc
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
142 - MPlayer only options in a section which isn't marked this way
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
143 are followed by (MPLAYER only)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
144 - Add hints to other options if they belong to each other
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
145 eg. (\-vo zr only) or (see \-alang option too)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
146 - If a non trivial default parameter exist, write it down
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
147 eg. (default: 24)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
148 - Options inside a section are all alphabetically ordered
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
149 - Examples and notes at the end of the description (before sub options)
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
150 - The end of the suboptions _always_ has to be followed by a paragraphs
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
151 (BUG).
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
152
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
153 Macro definitions (see beginning of man page):
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
154 - SS SS is the starting value of the suboption column
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
155 - .IPs Add new suboption (we use .TP for normal options and .IP for
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
156 the rest)
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
157 - .RSs Begin of suboptions, end with .RE
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
158 - .RSss Begin of suboptions in a suboption
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
159 - .REss End of suboptions in a suboption
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
160
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
161 Options, sub options, examples structure:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
162 - Normal options (note the '<' and '>'):
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
163
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
164 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
165 .TP
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
166 .B \-option <parameters>
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
167 description
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
168 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
169
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
170 - Long sub options:
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
171
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
172 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
173 description. Available options are:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
174 .
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
175 .RSs
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
176 .IPs "subopt1=<value>"
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
177 description1
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
178 .IPs "subopt2=<value>"
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
179 description2
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
180 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
181 .IPs "last subopt=<value>"
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
182 last description
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
183 .RE
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
184 .
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
185 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
186
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
187 - Short sub options:
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
188
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
189 [...]
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
190 description. Available options are:
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
191
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
192 .DP 0
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
193 .RSs
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
194 .IPs "subopt1=<value>"
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
195 description1
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
196 .IPs "subopt2=<value>"
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
197 description2
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
198 [...]
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
199 .IPs "last subopt=<value>"
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
200 last description
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
201 .RE
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
202 .DP 1
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
203 .
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
204 [...]
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
205
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
206
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
207 - Sub options in sub options:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
208
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
209 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
210 .IPs "subopt1=<value>"
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
211 description1
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
212 .RSss
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
213 subsubopt1: description1
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
214 .br
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
215 subsubopt2: description2
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
216 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
217 .REss
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
218 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
219
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
220 - Examples (like sub options, note: newline before and ':' after
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
221 .I EXAMPLE, .PD 0 before and .PD 1 after the examples):
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
222
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
223 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
224
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
225 .I EXAMPLE:
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
226 .PD 0
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
227 .RSs
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
228 .IP "-option used parameters"
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
229 description
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
230 [...]
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
231 .RE
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
232 .PD 1
7289
bfad437d4119 changes for rewrite
jonas
parents: 7286
diff changeset
233 .
7286
98dd8785cf24 man page documentation
jonas
parents:
diff changeset
234 [...]