Mercurial > mplayer.hg
annotate DOCS/mencoder.1 @ 5829:21935594d592
small fixes
author | arpi |
---|---|
date | Thu, 25 Apr 2002 13:12:59 +0000 |
parents | 7c6cf46a44ce |
children | 48a0667742b9 |
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> ] |
5720 | 46 .RB [ \-sub\ <subtitle\ file\ name> ] |
4919 | 47 .I - or file or files specified with escaped wildcard or device |
2597 | 48 .PP |
49 .SH DESCRIPTION | |
50 .I mencoder | |
2868 | 51 MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to |
52 encode MPlayer-playable movies (AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET) to other | |
53 MPlayer-playable formats (see below). Currently it's in beta stage, and encodes | |
54 only to DivX4 (1 or 2 passes) video, PCM/MP3/VBRMP3 audio. Also has stream | |
55 copying abilities. In the future, there will be cropping, resizing filters, and | |
56 other interesting stuff. | |
2597 | 57 .LP |
58 .SH "GENERAL OPTIONS" | |
59 .TP | |
60 .I NOTE | |
2602 | 61 Every "flag" option has "noflag" pair, e.g. -flag opposite is -noflag |
62 .TP | |
2868 | 63 .I NOTE |
64 CHECK THE HTML DOCUMENTATION TOO ! | |
65 .TP | |
4680 | 66 .I NOTE |
67 As MEncoder uses the same 'libmpdemux' as MPlayer, their options are | |
68 _sometimes the same_ ! So although for example the -sid option isn't | |
69 mentioned here, you can use it in MEncoder too! (for encoding DVD with | |
70 subtitles) | |
71 .TP | |
2602 | 72 .B \-vcd <track number> |
73 Encode the specified VCD track. | |
2597 | 74 .TP |
2602 | 75 .B \-dvd <title number> |
76 Encode the specified DVD title. | |
77 .TP | |
78 .B \-chapter <chapter id> | |
79 Use with -dvd option (see above). Start encoding at the specified chapter. | |
2597 | 80 .TP |
2602 | 81 .B \-dvdangle <angle id> |
82 Use with -dvd option (see above), and if the DVD disc has multiple angles. | |
83 It will encode the angle specified here. | |
84 .TP | |
85 .B \-dvdkey <key> | |
86 Used to decrypt CSS-encrypted streams on hard disk (with given CSS decrypt | |
87 key). | |
2597 | 88 .TP |
2602 | 89 .B \-nobps |
2907 | 90 Used only for AVIs. Doesn't use the bps value in the AVI header, instead |
91 calculates it. | |
2602 | 92 .TP |
93 .B \-aid <audio stream id> | |
2907 | 94 If the source media contains multiple audio streams (for example DVDs), encode |
2602 | 95 the specified one. |
2597 | 96 .TP |
2602 | 97 .B \-vid <video stream id> |
2907 | 98 If the source media contains multiple video streams, encode the specified one. |
2602 | 99 .TP |
100 .B \-pp <value> | |
4364 | 101 See man mplayer. |
2597 | 102 .TP |
2602 | 103 .B \-vc <codec name> |
104 Use specified codec (according to codecs.conf) for decoding input video | |
105 stream. | |
106 .TP | |
107 .B \-ac <codec name> | |
108 Use specified codec (according to codecs.conf) for decoding input audio | |
109 stream. | |
2597 | 110 .TP |
2666 | 111 .B \-vfm <video codec family> |
112 Force decoding by using a specific codec FAMILY, and FALLBACK to default | |
113 if failed. For examples see MPlayer manpage. | |
2602 | 114 .TP |
2666 | 115 .B \-afm <audio codec family> |
116 Force decoding by using a specific codec FAMILY, and FALLBACK to default | |
117 if failed. For examples see MPlayer manpage. | |
2597 | 118 .TP |
2628 | 119 .B \-include |
2674 | 120 specify config file to be parsed after the default |
121 .TP | |
122 .B \-mc\ seconds/5frame | |
123 maximum sync correction per 5 frames (in seconds). | |
124 Use -mc 0 to disable input A/V sync. | |
2628 | 125 .TP |
126 .B \-v | |
127 Increase verbosity. | |
128 .TP | |
2666 | 129 .B \-ovc <codecname> |
130 Encode with the given codec (codec names are from codecs.conf). | |
131 Examples: | |
132 | |
133 -ovc help get help | |
134 -ovc copy no encoding, just streamcopy | |
135 -ovc divx4 encode to DivX4 | |
3774 | 136 -ovc lavc encode with a libavcodec codec |
2666 | 137 .TP |
138 .B \-oac <codecname> | |
139 Encode with the given codec (codec names are from codecs.conf). | |
140 Examples: | |
141 | |
142 -oac help get help | |
143 -oac copy no encoding, just streamcopy | |
144 -oac pcm encode to uncompressed PCM | |
145 -oac mp3lame encode to MP3 (using Lame) | |
146 .TP | |
5188 | 147 .B \-nosound |
148 Encode only video, no audio stream. | |
149 .TP | |
4992 | 150 .B \-audiofile <file name> |
151 Copy audio from external file. | |
152 .TP | |
4919 | 153 .B \-mf <multifile options> |
154 Used when encoding from multiple JPEG files. | |
155 Its sub-options are: | |
156 | |
157 on turns on multifile support | |
158 w=<value> width of the output file | |
159 h=<value> height of the output file | |
160 fps=<value> fps of the output file | |
161 type=<value> type of input files (jpeg, png) | |
162 .TP | |
2628 | 163 .B \-divx4opts |
164 If encoding to DivX4, you can specify its parameters here, like: | |
165 | |
2630 | 166 -divx4opts br=1800:deinterlace:key=250 |
2628 | 167 |
168 Available options: | |
169 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2729
diff
changeset
|
170 help get help |
2631 | 171 br=XXX specify bitrate in |
172 kbit <4-16000> or | |
173 bit <16001-24000000> | |
174 key=XXX maximum keyframe interval | |
175 (in frames) | |
176 deinterlace enable deinterlacing | |
2855 | 177 (don't use, DivX4 is buggy!) |
2631 | 178 q=XXXX quality (1-fastest, 5-best) |
179 min_quant=XXX minimum quantizer (0-32) | |
180 max_quant=XXX maximum quantizer (0-32) | |
181 rc_period=XXX rate control period | |
182 rc_reaction_period=XXX rate control | |
183 reaction period | |
184 rc_reaction_ratio=XXX rate control | |
185 reaction ratio | |
2628 | 186 |
187 .TP | |
3721 | 188 .B \-lavcopts |
189 If encoding with a codec from libavcodec, you can specify its parameters here, | |
190 like: | |
191 | |
192 -lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250 | |
193 | |
194 Available options: | |
195 | |
196 help get help | |
5811 | 197 |
198 vcodec=XXX use the specified codec : | |
199 mjpeg - Motion JPEG | |
200 h263 - H263 | |
201 h263p - H263 Plus | |
202 mpeg4 - DivX 4/5 | |
203 msmpeg4 - DivX 3 | |
204 rv10 - an old RealVideo codec | |
205 mpeg1video - MPEG1 video :) | |
206 There's no default, you must | |
207 specify it. | |
208 | |
3721 | 209 vbitrate=XXX specify bitrate in |
210 kbit <4-16000> or | |
211 bit <16001-24000000> | |
5811 | 212 (warning: 1kbit = 1000 bits) |
213 default = 800k | |
214 | |
215 vratetol=XXX approximated *filesize* tolerance | |
5829 | 216 in kbits. |
5811 | 217 (warning: 1kbit = 1000 bits) |
5829 | 218 default = 1024*8 kbits = 1MByte |
5811 | 219 |
3721 | 220 keyint=XXX interval between keyframes |
5811 | 221 (specify in frames, >300 are not |
222 recommended) | |
223 default = 250 (one key frame every | |
224 ten seconds in a 25fps movie) | |
225 | |
226 vhq high quality mode, macro blocks | |
227 will be encoded multiple times and | |
228 the smallest will be used. | |
229 default = HQ disabled | |
230 | |
231 vme=XXX [0..5] motion estimation method : | |
232 0 - no ME at all | |
233 1 - ME_FULL | |
234 2 - ME_LOG | |
235 3 - ME_PHODS | |
236 4 - ME_EPZS | |
237 5 - ME_X1 | |
238 EPZS usually gives best results, | |
239 but you can try X1 too. FULL is | |
240 very slow and the others are | |
241 experimental. | |
242 default = EPZS | |
243 | |
5228 | 244 vqcomp=XXX if the value is set to 1.0, the |
245 quantizer will stay nearly | |
5811 | 246 constant (high motion scenes will |
247 look bad). If it's 0.0, the | |
5228 | 248 quantizer will be changed |
5811 | 249 to make all frames approximately |
250 equally sized (low motion scenes | |
251 will look bad). | |
252 default = 0.5 | |
253 | |
5228 | 254 vqblur=XXX blurs the quantizer graph over |
255 time. | |
256 0.0 : no blur | |
257 1.0 : average all past | |
258 quantizers | |
5811 | 259 default = 0.5 |
260 | |
261 vqscale=XXX [2..31] gives each frame the same | |
262 quantizer (selects fixed quantizer | |
263 mode). | |
264 default = 0 (fixed quantizer mode | |
265 disabled) | |
266 | |
267 vrc_strategy=X [0..2] different strategies to | |
268 decide which frames should get | |
269 which quantizer. | |
270 default = 2 | |
271 | |
272 v4mv 4 motion vectors per macroblock, | |
273 may gives you slightly better | |
274 quality, can only be used in HQ | |
275 mode and is buggy with B frames | |
276 currently. | |
277 default = disabled | |
278 | |
279 vpass=X [1,2] select internal first pass | |
280 or second pass of 2-pass mode. | |
281 default = 0 (1-pass mode) | |
282 | |
283 The next 3 options apply only to I & P frames : | |
284 | |
285 vqmin=XX [1..31] minimum quantizer, | |
286 default = 3 | |
287 | |
288 vqmax=XX [1..31] maximum quantizer | |
289 default = 15 | |
290 | |
291 vqdiff=XX [1..31] quantizer difference. | |
292 Limits the maximum quantizer | |
293 difference between frames. | |
294 default = 3 | |
295 | |
296 The following options apply only to B frames : | |
297 | |
298 vmax_b_frames=X [0..4] maximum number of frames | |
299 between each I/P frame. | |
300 default = 0 (B-frames generation | |
301 disabled) | |
302 | |
303 vb_strategy=X strategy to choose between | |
304 I/P/B frames : | |
305 0 allways use max B | |
306 1 avoid B frames in high | |
307 motion / scene change (can | |
308 lead to filesize miss | |
309 prediction) | |
310 default = 0 | |
311 | |
312 In fixed quantizer mode you can use those options : | |
313 vqscale, vmax_b_frames, vhq, vme, keyint | |
314 | |
315 You can use the following options only in pass 1 of 2-pass mode or in 1-pass mode : | |
316 vqblur, vqdiff | |
317 | |
318 You can use the following options only in pass 2 of 2-pass mode : | |
319 vrc_strategy, vb_strategy | |
320 | |
321 All other options can be used in all modes. | |
322 | |
3721 | 323 .TP |
2628 | 324 .B \-lameopts |
325 If encoding to MP3 with libmp3lame, you can specify its parameters here, like: | |
326 | |
5227 | 327 -lameopts br=192:cbr |
2628 | 328 |
329 Available options: | |
330 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2729
diff
changeset
|
331 help get help |
2631 | 332 vbr=XXX variable bitrate method |
333 0=cbr | |
334 1=mt | |
335 2=rh(default) | |
336 3=abr | |
337 4=mtrh | |
5829 | 338 abr average bitrate |
2631 | 339 cbr constant bitrate |
5829 | 340 br=XXX specify bitrate in |
341 kbit <0-1024> | |
342 (only for CBR and ABR) | |
343 q=XXX Quality | |
344 (0-highest, 9-low) | |
345 (for VBR) | |
346 ratio=XXX compression ratio <1-100> | |
2631 | 347 mode=XXX 0=stereo |
348 1=joint-stereo | |
349 2=dualchannel | |
350 3=mono | |
351 (default: auto) | |
352 padding=XXX 0=no | |
353 1=all | |
354 2=adjust | |
2628 | 355 |
356 .TP | |
2664 | 357 .B \-pass <1/2> |
358 With this you can encode 2pass DivX4 files. First encode with -pass 1, then | |
359 with the same parameters, encode with -pass 2. | |
5829 | 360 NOTE: for libavcodec 2-pass use -lavcopts vpass=1/2 instead of -pass 1/2 |
2664 | 361 .TP |
3423 | 362 .B \-passlogfile <filename> |
363 When encoding in 2pass mode, MEncoder dumps first pass' informations | |
364 to the given file instead of the default divx2pass.log . | |
365 .TP | |
2664 | 366 .B \-ofps <fps> |
367 The output file will have different frame/sec than the source. | |
368 .TP | |
2673 | 369 .B \-o <filename> |
370 Outputs to the given filename, instead of the default 'test.avi' . | |
371 .TP | |
2664 | 372 .B \-frames <number> |
373 Encode only given number of frames. | |
3277 | 374 .TP |
4709 | 375 .B \-ss <time> |
376 seek to given time position. For example : | |
377 | |
378 -ss 56 seeks to 56 seconds | |
379 -ss 01:10:00 seeks to 1 hour 10 min | |
380 | |
381 Can start only from keyframes ! | |
382 .TP | |
5720 | 383 .B \-sub <subtitle file name> |
384 given VOBsub/text subtitle will be encoded INTO the output file. Text | |
385 subtitles need fonts properly installed. | |
386 .TP | |
4709 | 387 .B \-endpos <time> |
388 stop encoding at given time. Can be specified in many was : | |
389 | |
390 -endpos 56 encode only 56 seconds | |
391 -endpos 01:10:00 encode only 1 hours | |
392 | |
393 Can be used in conjuction with -ss ! | |
394 .TP | |
3277 | 395 .B \-x <rescale width> |
396 Rescale output movie to given pixels wide. | |
397 .TP | |
398 .B \-y <rescale height> | |
399 Rescale output movie to given pixels tall. | |
400 .TP | |
4339 | 401 .B \-sws <0-2> |
3277 | 402 Type of scaling method |
403 | |
3721 | 404 0 fast bilinear (default) |
3277 | 405 1 bilinear |
406 2 bicubic (best quality) | |
3774 | 407 .TP |
408 .B \-ffourcc fourcc | |
409 Can be used to force the video fourcc of the output file. For example -ffourcc | |
410 div3 will have the output file contain "div3" as video fourcc. | |
411 .IP | |
2602 | 412 .SH FILES AND DIRECTORIES |
413 .IP | |
414 .SH "EXAMPLES" | |
2664 | 415 .B Encoding DVD title #2 |
416 mencoder -dvd 2 -o title2.avi | |
417 .TP | |
4398 | 418 .B Encoding DVD title #2, only selected chapters |
419 mencoder -dvd 2 -chapter 10-15 -o title2.avi | |
420 .TP | |
3721 | 421 .B The same, but with libavcodec family, MJPEG compression |
422 mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg | |
423 .TP | |
2664 | 424 .B Encoding from HTTP |
425 mencoder http://mplayer.hq/example.avi -o example.avi | |
426 .TP | |
2874
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
427 .B Encoding from a pipe |
2664 | 428 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
|
429 .TP |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
430 .B Encoding multiple *.vob files |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
431 cat *.vob | mencoder <options> - |
2597 | 432 .IP |
433 .SH BUGS | |
434 Probably. Check the documentation. | |
435 | |
436 Bugreports should be addressed to the MPlayer-users mailing list | |
437 (mplayer-users@mplayerhq.hu) ! If you want to submit a bugreport | |
438 (which we love to receive!), please double-check the bugreports.html, and | |
439 tell us all that we need to know to identify your problem. | |
440 | |
441 .LP | |
442 .SH AUTHORS | |
443 Check documentation ! | |
444 | |
3953 | 445 MPlayer is (C) 2000-2002 |
3856 | 446 .I Arpad Gereoffy <sendmail@to.mplayer-users> |
2597 | 447 |
448 This manpage is written and maintained by | |
449 .I Gabucino . | |
450 .LP | |
451 .SH STANDARD DISCLAIMER | |
452 Use only at your own risk! There may be errors and inaccuracies that could | |
453 be damaging to your system or your eye. Proceed with caution, and although | |
454 this is highly unlikely, the author doesn't take any responsibility for that! | |
455 .\" end of file |