Mercurial > mplayer.hg
annotate DOCS/mencoder.1 @ 5931:95c14d5dbb22
printf to mp_msg
author | albeu |
---|---|
date | Thu, 02 May 2002 10:28:33 +0000 |
parents | 77a529bfc80e |
children | 0ed8c98cbf38 |
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 [ \-sws\ <0-2> ] |
3774 | 40 .RB [ \-ffourcc\ fourcc ] |
4709 | 41 .RB [ \-ss\ <time> ] |
42 .RB [ \-endpos\ <time> ] | |
4992 | 43 .RB [ \-audiofile\ <file\ name> ] |
5720 | 44 .RB [ \-sub\ <subtitle\ file\ name> ] |
4919 | 45 .I - or file or files specified with escaped wildcard or device |
2597 | 46 .PP |
47 .SH DESCRIPTION | |
48 .I mencoder | |
2868 | 49 MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to |
50 encode MPlayer-playable movies (AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET) to other | |
5849 | 51 MPlayer-playable formats (see below). Currently it and encodes to divx4/xvid |
52 (using divx4linux/xvid core), libavcodec formats (including divx3 and mpeg4), | |
53 raw uncompressed rgb (usable with virtualdub etc), PCM/MP3/VBRMP3 audio. | |
54 Also has stream copying abilities. | |
55 You can use MPlayer's video filters, so scale, crop, expand, flip, etc. | |
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 | |
5849 | 121 .B \-mc\ seconds/frame |
122 maximum sync correction per frame (in seconds). | |
2674 | 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 | |
5849 | 134 -ovc divx4 encode to DivX4/DivX5 or XviD |
135 -ovc rawrgb encode to uncompressed RGB24 | |
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 | |
5849 | 158 w=<value> width of the output file [autodetected] |
159 h=<value> height of the output file [autodetected] | |
160 fps=<value> fps of the output file [default: 25fps] | |
4919 | 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> | |
5848
48a0667742b9
volume setting with lame - patch by silicon@falcon.sch.bme.hu
arpi
parents:
5829
diff
changeset
|
347 vol=XXX set audio input gain <0-10> |
2631 | 348 mode=XXX 0=stereo |
349 1=joint-stereo | |
350 2=dualchannel | |
351 3=mono | |
352 (default: auto) | |
353 padding=XXX 0=no | |
354 1=all | |
355 2=adjust | |
2628 | 356 |
357 .TP | |
2664 | 358 .B \-pass <1/2> |
359 With this you can encode 2pass DivX4 files. First encode with -pass 1, then | |
360 with the same parameters, encode with -pass 2. | |
5829 | 361 NOTE: for libavcodec 2-pass use -lavcopts vpass=1/2 instead of -pass 1/2 |
2664 | 362 .TP |
3423 | 363 .B \-passlogfile <filename> |
364 When encoding in 2pass mode, MEncoder dumps first pass' informations | |
365 to the given file instead of the default divx2pass.log . | |
366 .TP | |
2664 | 367 .B \-ofps <fps> |
368 The output file will have different frame/sec than the source. | |
5849 | 369 You MUST set it for variable fps (asf, some mov) and progressive |
370 (29.97fps telecined mpeg) files. | |
2664 | 371 .TP |
2673 | 372 .B \-o <filename> |
373 Outputs to the given filename, instead of the default 'test.avi' . | |
374 .TP | |
2664 | 375 .B \-frames <number> |
376 Encode only given number of frames. | |
3277 | 377 .TP |
4709 | 378 .B \-ss <time> |
379 seek to given time position. For example : | |
380 | |
381 -ss 56 seeks to 56 seconds | |
382 -ss 01:10:00 seeks to 1 hour 10 min | |
383 | |
384 Can start only from keyframes ! | |
385 .TP | |
5720 | 386 .B \-sub <subtitle file name> |
387 given VOBsub/text subtitle will be encoded INTO the output file. Text | |
388 subtitles need fonts properly installed. | |
389 .TP | |
4709 | 390 .B \-endpos <time> |
391 stop encoding at given time. Can be specified in many was : | |
392 | |
393 -endpos 56 encode only 56 seconds | |
394 -endpos 01:10:00 encode only 1 hours | |
395 | |
396 Can be used in conjuction with -ss ! | |
397 .TP | |
4339 | 398 .B \-sws <0-2> |
5849 | 399 Type of scaling method (use with -vop scale=w:h) |
3277 | 400 |
3721 | 401 0 fast bilinear (default) |
3277 | 402 1 bilinear |
403 2 bicubic (best quality) | |
3774 | 404 .TP |
405 .B \-ffourcc fourcc | |
406 Can be used to force the video fourcc of the output file. For example -ffourcc | |
407 div3 will have the output file contain "div3" as video fourcc. | |
408 .IP | |
2602 | 409 .SH FILES AND DIRECTORIES |
410 .IP | |
411 .SH "EXAMPLES" | |
2664 | 412 .B Encoding DVD title #2 |
413 mencoder -dvd 2 -o title2.avi | |
414 .TP | |
4398 | 415 .B Encoding DVD title #2, only selected chapters |
416 mencoder -dvd 2 -chapter 10-15 -o title2.avi | |
417 .TP | |
3721 | 418 .B The same, but with libavcodec family, MJPEG compression |
419 mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg | |
420 .TP | |
2664 | 421 .B Encoding from HTTP |
422 mencoder http://mplayer.hq/example.avi -o example.avi | |
423 .TP | |
2874
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
424 .B Encoding from a pipe |
2664 | 425 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
|
426 .TP |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
427 .B Encoding multiple *.vob files |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
428 cat *.vob | mencoder <options> - |
2597 | 429 .IP |
430 .SH BUGS | |
431 Probably. Check the documentation. | |
432 | |
433 Bugreports should be addressed to the MPlayer-users mailing list | |
434 (mplayer-users@mplayerhq.hu) ! If you want to submit a bugreport | |
435 (which we love to receive!), please double-check the bugreports.html, and | |
436 tell us all that we need to know to identify your problem. | |
437 | |
438 .LP | |
439 .SH AUTHORS | |
440 Check documentation ! | |
441 | |
3953 | 442 MPlayer is (C) 2000-2002 |
3856 | 443 .I Arpad Gereoffy <sendmail@to.mplayer-users> |
2597 | 444 |
445 This manpage is written and maintained by | |
446 .I Gabucino . | |
447 .LP | |
448 .SH STANDARD DISCLAIMER | |
449 Use only at your own risk! There may be errors and inaccuracies that could | |
450 be damaging to your system or your eye. Proceed with caution, and although | |
451 this is highly unlikely, the author doesn't take any responsibility for that! | |
452 .\" end of file |