Mercurial > mplayer.hg
annotate DOCS/mencoder.1 @ 5568:772c627c1494
anything to (S)VCD encode script by Juergen Hammelmann <juergen.hammelmann at gmx.de>
author | atmos4 |
---|---|
date | Thu, 11 Apr 2002 22:53:48 +0000 |
parents | 37b49bb4c2d2 |
children | e9aac7e08638 |
rev | line source |
---|---|
3953 | 1 .\" MEncoder (C) 2000-2002 Arpad Gereoffy <sendmail@to.mplayer-users> |
2602 | 2 .\" This manpage was/is done by Gabucino |
2597 | 3 .\" |
4776
47f0a86e8b8e
man2html compatibility (patch by Goetz Waschk <waschk@informatik.uni-rostock.de>)
gabucino
parents:
4709
diff
changeset
|
4 .TH MEncoder 1 |
2597 | 5 .SH NAME |
6 mencoder \- Movie Encoder for Linux | |
7 .SH SYNOPSIS | |
8 .B mencoder | |
2602 | 9 .RB [ \-vcd\ <track\ number> ] |
10 .RB [ \-dvd\ <titleid> ] | |
11 .RB [ \-chapter\ <chapterid> ] | |
12 .RB [ \-dvdangle\ <angleid> ] | |
13 .RB [ \-dvdkey\ <key> ] | |
14 .RB [ \-nobps ] | |
15 .RB [ \-aid\ <id> ] | |
16 .RB [ \-vid\ <id> ] | |
17 .RB [ \-pp\ <quality> ] | |
18 .RB [ \-vc\ <video\ codec\ name> ] | |
19 .RB [ \-ac\ <audio\ codec\ name> ] | |
20 .RB [ \-vfm\ <video\ codec\ family> ] | |
21 .RB [ \-afm\ <audio\ codec\ family> ] | |
2630 | 22 .RB [ \-include\ <configfile> ] |
2674 | 23 .RB [ \-mc\ seconds/5f ] |
2602 | 24 .RB [ \-v ] |
25 .RB [ \-mp3file\ <filename> ] | |
26 .RB [ \-ac3file\ <filename> ] | |
27 .RB [ \-ovc\ <video\ codec\ name> ] | |
28 .RB [ \-oac\ <audio\ codec\ name> ] | |
5188 | 29 .RB [ \-nosound ] |
4919 | 30 .RB [ \-mf\ <multifile\ options> ] |
2628 | 31 .RB [ \-divx4opts\ <codec\ options> ] |
3721 | 32 .RB [ \-lavcopts\ <codec\ options> ] |
2628 | 33 .RB [ \-lameopts\ <codec\ options> ] |
2602 | 34 .RB [ \-pass\ <1/2> ] |
3423 | 35 .RB [ \-passlogfile\ <filename> ] |
2603 | 36 .RB [ \-ofps\ <fps> ] |
37 .RB [ \-o\ <filename> ] | |
2664 | 38 .RB [ \-frames\ <number> ] |
3277 | 39 .RB [ \-x\ <rescale\ width> ] |
40 .RB [ \-y\ <rescale\ height> ] | |
41 .RB [ \-sws\ <0-2> ] | |
3774 | 42 .RB [ \-ffourcc\ fourcc ] |
4709 | 43 .RB [ \-ss\ <time> ] |
44 .RB [ \-endpos\ <time> ] | |
4992 | 45 .RB [ \-audiofile\ <file\ name> ] |
4919 | 46 .I - or file or files specified with escaped wildcard or device |
2597 | 47 .PP |
48 .SH DESCRIPTION | |
49 .I mencoder | |
2868 | 50 MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to |
51 encode MPlayer-playable movies (AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET) to other | |
52 MPlayer-playable formats (see below). Currently it's in beta stage, and encodes | |
53 only to DivX4 (1 or 2 passes) video, PCM/MP3/VBRMP3 audio. Also has stream | |
54 copying abilities. In the future, there will be cropping, resizing filters, and | |
55 other interesting stuff. | |
2597 | 56 .LP |
57 .SH "GENERAL OPTIONS" | |
58 .TP | |
59 .I NOTE | |
2602 | 60 Every "flag" option has "noflag" pair, e.g. -flag opposite is -noflag |
61 .TP | |
2868 | 62 .I NOTE |
63 CHECK THE HTML DOCUMENTATION TOO ! | |
64 .TP | |
4680 | 65 .I NOTE |
66 As MEncoder uses the same 'libmpdemux' as MPlayer, their options are | |
67 _sometimes the same_ ! So although for example the -sid option isn't | |
68 mentioned here, you can use it in MEncoder too! (for encoding DVD with | |
69 subtitles) | |
70 .TP | |
2602 | 71 .B \-vcd <track number> |
72 Encode the specified VCD track. | |
2597 | 73 .TP |
2602 | 74 .B \-dvd <title number> |
75 Encode the specified DVD title. | |
76 .TP | |
77 .B \-chapter <chapter id> | |
78 Use with -dvd option (see above). Start encoding at the specified chapter. | |
2597 | 79 .TP |
2602 | 80 .B \-dvdangle <angle id> |
81 Use with -dvd option (see above), and if the DVD disc has multiple angles. | |
82 It will encode the angle specified here. | |
83 .TP | |
84 .B \-dvdkey <key> | |
85 Used to decrypt CSS-encrypted streams on hard disk (with given CSS decrypt | |
86 key). | |
2597 | 87 .TP |
2602 | 88 .B \-nobps |
2907 | 89 Used only for AVIs. Doesn't use the bps value in the AVI header, instead |
90 calculates it. | |
2602 | 91 .TP |
92 .B \-aid <audio stream id> | |
2907 | 93 If the source media contains multiple audio streams (for example DVDs), encode |
2602 | 94 the specified one. |
2597 | 95 .TP |
2602 | 96 .B \-vid <video stream id> |
2907 | 97 If the source media contains multiple video streams, encode the specified one. |
2602 | 98 .TP |
99 .B \-pp <value> | |
4364 | 100 See man mplayer. |
2597 | 101 .TP |
2602 | 102 .B \-vc <codec name> |
103 Use specified codec (according to codecs.conf) for decoding input video | |
104 stream. | |
105 .TP | |
106 .B \-ac <codec name> | |
107 Use specified codec (according to codecs.conf) for decoding input audio | |
108 stream. | |
2597 | 109 .TP |
2666 | 110 .B \-vfm <video codec family> |
111 Force decoding by using a specific codec FAMILY, and FALLBACK to default | |
112 if failed. For examples see MPlayer manpage. | |
2602 | 113 .TP |
2666 | 114 .B \-afm <audio codec family> |
115 Force decoding by using a specific codec FAMILY, and FALLBACK to default | |
116 if failed. For examples see MPlayer manpage. | |
2597 | 117 .TP |
2628 | 118 .B \-include |
2674 | 119 specify config file to be parsed after the default |
120 .TP | |
121 .B \-mc\ seconds/5frame | |
122 maximum sync correction per 5 frames (in seconds). | |
123 Use -mc 0 to disable input A/V sync. | |
2628 | 124 .TP |
125 .B \-v | |
126 Increase verbosity. | |
127 .TP | |
2666 | 128 .B \-ovc <codecname> |
129 Encode with the given codec (codec names are from codecs.conf). | |
130 Examples: | |
131 | |
132 -ovc help get help | |
133 -ovc copy no encoding, just streamcopy | |
134 -ovc divx4 encode to DivX4 | |
3774 | 135 -ovc lavc encode with a libavcodec codec |
2666 | 136 .TP |
137 .B \-oac <codecname> | |
138 Encode with the given codec (codec names are from codecs.conf). | |
139 Examples: | |
140 | |
141 -oac help get help | |
142 -oac copy no encoding, just streamcopy | |
143 -oac pcm encode to uncompressed PCM | |
144 -oac mp3lame encode to MP3 (using Lame) | |
145 .TP | |
5188 | 146 .B \-nosound |
147 Encode only video, no audio stream. | |
148 .TP | |
4992 | 149 .B \-audiofile <file name> |
150 Copy audio from external file. | |
151 .TP | |
4919 | 152 .B \-mf <multifile options> |
153 Used when encoding from multiple JPEG files. | |
154 Its sub-options are: | |
155 | |
156 on turns on multifile support | |
157 w=<value> width of the output file | |
158 h=<value> height of the output file | |
159 fps=<value> fps of the output file | |
160 type=<value> type of input files (jpeg, png) | |
161 .TP | |
2628 | 162 .B \-divx4opts |
163 If encoding to DivX4, you can specify its parameters here, like: | |
164 | |
2630 | 165 -divx4opts br=1800:deinterlace:key=250 |
2628 | 166 |
167 Available options: | |
168 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2729
diff
changeset
|
169 help get help |
2631 | 170 br=XXX specify bitrate in |
171 kbit <4-16000> or | |
172 bit <16001-24000000> | |
173 key=XXX maximum keyframe interval | |
174 (in frames) | |
175 deinterlace enable deinterlacing | |
2855 | 176 (don't use, DivX4 is buggy!) |
2631 | 177 q=XXXX quality (1-fastest, 5-best) |
178 min_quant=XXX minimum quantizer (0-32) | |
179 max_quant=XXX maximum quantizer (0-32) | |
180 rc_period=XXX rate control period | |
181 rc_reaction_period=XXX rate control | |
182 reaction period | |
183 rc_reaction_ratio=XXX rate control | |
184 reaction ratio | |
2628 | 185 |
186 .TP | |
3721 | 187 .B \-lavcopts |
188 If encoding with a codec from libavcodec, you can specify its parameters here, | |
189 like: | |
190 | |
191 -lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250 | |
192 | |
193 Available options: | |
194 | |
195 help get help | |
196 vcodec=XXX use the specified codec | |
197 (for full list, see html doc!) | |
198 vbitrate=XXX specify bitrate in | |
199 kbit <4-16000> or | |
200 bit <16001-24000000> | |
201 keyint=XXX interval between keyframes | |
202 (specify in frames) | |
203 vhq very high quality | |
4339 | 204 vme=XXX motion estimation method |
5228 | 205 vqmin=XXX minimum quantizer |
206 vqmax=XXX maximum quantizer | |
207 vqdiff=XXX quantizer difference. Limits the | |
208 maximum quantizer difference | |
209 between frames. | |
5232 | 210 vratetol=XXX approximated bitrate tolerance |
5228 | 211 vqcomp=XXX if the value is set to 1.0, the |
212 quantizer will stay nearly | |
213 constant. If it's 0.0, the | |
214 quantizer will be changed | |
215 to make all frames | |
216 approximately equally sized. | |
217 vqblur=XXX blurs the quantizer graph over | |
218 time. | |
219 0.0 : no blur | |
220 1.0 : average all past | |
221 quantizers | |
3721 | 222 .TP |
2628 | 223 .B \-lameopts |
224 If encoding to MP3 with libmp3lame, you can specify its parameters here, like: | |
225 | |
5227 | 226 -lameopts br=192:cbr |
2628 | 227 |
228 Available options: | |
229 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2729
diff
changeset
|
230 help get help |
2631 | 231 br=XXX specify bitrate in |
232 kbit <0-1024> | |
2868 | 233 (only for CBR) |
2664 | 234 q=XXX Quality |
235 (0-highest, 9-fastest) | |
2868 | 236 (for VBR) |
2631 | 237 vbr=XXX variable bitrate method |
238 0=cbr | |
239 1=mt | |
240 2=rh(default) | |
241 3=abr | |
242 4=mtrh | |
243 cbr constant bitrate | |
244 mode=XXX 0=stereo | |
245 1=joint-stereo | |
246 2=dualchannel | |
247 3=mono | |
248 (default: auto) | |
249 padding=XXX 0=no | |
250 1=all | |
251 2=adjust | |
252 ratio=XXX compression ratio <1-100> | |
2628 | 253 |
254 .TP | |
2664 | 255 .B \-pass <1/2> |
256 With this you can encode 2pass DivX4 files. First encode with -pass 1, then | |
257 with the same parameters, encode with -pass 2. | |
258 .TP | |
3423 | 259 .B \-passlogfile <filename> |
260 When encoding in 2pass mode, MEncoder dumps first pass' informations | |
261 to the given file instead of the default divx2pass.log . | |
262 .TP | |
2664 | 263 .B \-ofps <fps> |
264 The output file will have different frame/sec than the source. | |
265 .TP | |
2673 | 266 .B \-o <filename> |
267 Outputs to the given filename, instead of the default 'test.avi' . | |
268 .TP | |
2664 | 269 .B \-frames <number> |
270 Encode only given number of frames. | |
3277 | 271 .TP |
4709 | 272 .B \-ss <time> |
273 seek to given time position. For example : | |
274 | |
275 -ss 56 seeks to 56 seconds | |
276 -ss 01:10:00 seeks to 1 hour 10 min | |
277 | |
278 Can start only from keyframes ! | |
279 .TP | |
280 .B \-endpos <time> | |
281 stop encoding at given time. Can be specified in many was : | |
282 | |
283 -endpos 56 encode only 56 seconds | |
284 -endpos 01:10:00 encode only 1 hours | |
285 | |
286 Can be used in conjuction with -ss ! | |
287 .TP | |
3277 | 288 .B \-x <rescale width> |
289 Rescale output movie to given pixels wide. | |
290 .TP | |
291 .B \-y <rescale height> | |
292 Rescale output movie to given pixels tall. | |
293 .TP | |
4339 | 294 .B \-sws <0-2> |
3277 | 295 Type of scaling method |
296 | |
3721 | 297 0 fast bilinear (default) |
3277 | 298 1 bilinear |
299 2 bicubic (best quality) | |
3774 | 300 .TP |
301 .B \-ffourcc fourcc | |
302 Can be used to force the video fourcc of the output file. For example -ffourcc | |
303 div3 will have the output file contain "div3" as video fourcc. | |
304 .IP | |
2602 | 305 .SH FILES AND DIRECTORIES |
306 .IP | |
307 .SH "EXAMPLES" | |
2664 | 308 .B Encoding DVD title #2 |
309 mencoder -dvd 2 -o title2.avi | |
310 .TP | |
4398 | 311 .B Encoding DVD title #2, only selected chapters |
312 mencoder -dvd 2 -chapter 10-15 -o title2.avi | |
313 .TP | |
3721 | 314 .B The same, but with libavcodec family, MJPEG compression |
315 mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg | |
316 .TP | |
2664 | 317 .B Encoding from HTTP |
318 mencoder http://mplayer.hq/example.avi -o example.avi | |
319 .TP | |
2874
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
320 .B Encoding from a pipe |
2664 | 321 rar p test-SVCD.rar | mencoder -divx4opts br=800 -ofps 24 -pass 1 -- - |
2874
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
322 .TP |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
323 .B Encoding multiple *.vob files |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
324 cat *.vob | mencoder <options> - |
2597 | 325 .IP |
326 .SH BUGS | |
327 Probably. Check the documentation. | |
328 | |
329 Bugreports should be addressed to the MPlayer-users mailing list | |
330 (mplayer-users@mplayerhq.hu) ! If you want to submit a bugreport | |
331 (which we love to receive!), please double-check the bugreports.html, and | |
332 tell us all that we need to know to identify your problem. | |
333 | |
334 .LP | |
335 .SH AUTHORS | |
336 Check documentation ! | |
337 | |
3953 | 338 MPlayer is (C) 2000-2002 |
3856 | 339 .I Arpad Gereoffy <sendmail@to.mplayer-users> |
2597 | 340 |
341 This manpage is written and maintained by | |
342 .I Gabucino . | |
343 .LP | |
344 .SH STANDARD DISCLAIMER | |
345 Use only at your own risk! There may be errors and inaccuracies that could | |
346 be damaging to your system or your eye. Proceed with caution, and although | |
347 this is highly unlikely, the author doesn't take any responsibility for that! | |
348 .\" end of file |