Mercurial > mplayer.hg
annotate DOCS/mencoder.1 @ 5793:a4165df1936d
divx audio workaround
author | arpi |
---|---|
date | Tue, 23 Apr 2002 09:26:29 +0000 |
parents | e9aac7e08638 |
children | 7c6cf46a44ce |
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 | |
197 vcodec=XXX use the specified codec | |
198 (for full list, see html doc!) | |
199 vbitrate=XXX specify bitrate in | |
200 kbit <4-16000> or | |
201 bit <16001-24000000> | |
202 keyint=XXX interval between keyframes | |
203 (specify in frames) | |
204 vhq very high quality | |
4339 | 205 vme=XXX motion estimation method |
5228 | 206 vqmin=XXX minimum quantizer |
207 vqmax=XXX maximum quantizer | |
208 vqdiff=XXX quantizer difference. Limits the | |
209 maximum quantizer difference | |
210 between frames. | |
5232 | 211 vratetol=XXX approximated bitrate tolerance |
5228 | 212 vqcomp=XXX if the value is set to 1.0, the |
213 quantizer will stay nearly | |
214 constant. If it's 0.0, the | |
215 quantizer will be changed | |
216 to make all frames | |
217 approximately equally sized. | |
218 vqblur=XXX blurs the quantizer graph over | |
219 time. | |
220 0.0 : no blur | |
221 1.0 : average all past | |
222 quantizers | |
3721 | 223 .TP |
2628 | 224 .B \-lameopts |
225 If encoding to MP3 with libmp3lame, you can specify its parameters here, like: | |
226 | |
5227 | 227 -lameopts br=192:cbr |
2628 | 228 |
229 Available options: | |
230 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2729
diff
changeset
|
231 help get help |
2631 | 232 br=XXX specify bitrate in |
233 kbit <0-1024> | |
2868 | 234 (only for CBR) |
2664 | 235 q=XXX Quality |
236 (0-highest, 9-fastest) | |
2868 | 237 (for VBR) |
2631 | 238 vbr=XXX variable bitrate method |
239 0=cbr | |
240 1=mt | |
241 2=rh(default) | |
242 3=abr | |
243 4=mtrh | |
244 cbr constant bitrate | |
245 mode=XXX 0=stereo | |
246 1=joint-stereo | |
247 2=dualchannel | |
248 3=mono | |
249 (default: auto) | |
250 padding=XXX 0=no | |
251 1=all | |
252 2=adjust | |
253 ratio=XXX compression ratio <1-100> | |
2628 | 254 |
255 .TP | |
2664 | 256 .B \-pass <1/2> |
257 With this you can encode 2pass DivX4 files. First encode with -pass 1, then | |
258 with the same parameters, encode with -pass 2. | |
259 .TP | |
3423 | 260 .B \-passlogfile <filename> |
261 When encoding in 2pass mode, MEncoder dumps first pass' informations | |
262 to the given file instead of the default divx2pass.log . | |
263 .TP | |
2664 | 264 .B \-ofps <fps> |
265 The output file will have different frame/sec than the source. | |
266 .TP | |
2673 | 267 .B \-o <filename> |
268 Outputs to the given filename, instead of the default 'test.avi' . | |
269 .TP | |
2664 | 270 .B \-frames <number> |
271 Encode only given number of frames. | |
3277 | 272 .TP |
4709 | 273 .B \-ss <time> |
274 seek to given time position. For example : | |
275 | |
276 -ss 56 seeks to 56 seconds | |
277 -ss 01:10:00 seeks to 1 hour 10 min | |
278 | |
279 Can start only from keyframes ! | |
280 .TP | |
5720 | 281 .B \-sub <subtitle file name> |
282 given VOBsub/text subtitle will be encoded INTO the output file. Text | |
283 subtitles need fonts properly installed. | |
284 .TP | |
4709 | 285 .B \-endpos <time> |
286 stop encoding at given time. Can be specified in many was : | |
287 | |
288 -endpos 56 encode only 56 seconds | |
289 -endpos 01:10:00 encode only 1 hours | |
290 | |
291 Can be used in conjuction with -ss ! | |
292 .TP | |
3277 | 293 .B \-x <rescale width> |
294 Rescale output movie to given pixels wide. | |
295 .TP | |
296 .B \-y <rescale height> | |
297 Rescale output movie to given pixels tall. | |
298 .TP | |
4339 | 299 .B \-sws <0-2> |
3277 | 300 Type of scaling method |
301 | |
3721 | 302 0 fast bilinear (default) |
3277 | 303 1 bilinear |
304 2 bicubic (best quality) | |
3774 | 305 .TP |
306 .B \-ffourcc fourcc | |
307 Can be used to force the video fourcc of the output file. For example -ffourcc | |
308 div3 will have the output file contain "div3" as video fourcc. | |
309 .IP | |
2602 | 310 .SH FILES AND DIRECTORIES |
311 .IP | |
312 .SH "EXAMPLES" | |
2664 | 313 .B Encoding DVD title #2 |
314 mencoder -dvd 2 -o title2.avi | |
315 .TP | |
4398 | 316 .B Encoding DVD title #2, only selected chapters |
317 mencoder -dvd 2 -chapter 10-15 -o title2.avi | |
318 .TP | |
3721 | 319 .B The same, but with libavcodec family, MJPEG compression |
320 mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg | |
321 .TP | |
2664 | 322 .B Encoding from HTTP |
323 mencoder http://mplayer.hq/example.avi -o example.avi | |
324 .TP | |
2874
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
325 .B Encoding from a pipe |
2664 | 326 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
|
327 .TP |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
328 .B Encoding multiple *.vob files |
632032ff27bf
patch applied from Colin Marquardt <colin@marquardt-home.de>
gabucino
parents:
2868
diff
changeset
|
329 cat *.vob | mencoder <options> - |
2597 | 330 .IP |
331 .SH BUGS | |
332 Probably. Check the documentation. | |
333 | |
334 Bugreports should be addressed to the MPlayer-users mailing list | |
335 (mplayer-users@mplayerhq.hu) ! If you want to submit a bugreport | |
336 (which we love to receive!), please double-check the bugreports.html, and | |
337 tell us all that we need to know to identify your problem. | |
338 | |
339 .LP | |
340 .SH AUTHORS | |
341 Check documentation ! | |
342 | |
3953 | 343 MPlayer is (C) 2000-2002 |
3856 | 344 .I Arpad Gereoffy <sendmail@to.mplayer-users> |
2597 | 345 |
346 This manpage is written and maintained by | |
347 .I Gabucino . | |
348 .LP | |
349 .SH STANDARD DISCLAIMER | |
350 Use only at your own risk! There may be errors and inaccuracies that could | |
351 be damaging to your system or your eye. Proceed with caution, and although | |
352 this is highly unlikely, the author doesn't take any responsibility for that! | |
353 .\" end of file |