Mercurial > mplayer.hg
comparison DOCS/encoding.html @ 4982:6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
ocassional misc fixes
author | gabucino |
---|---|
date | Thu, 07 Mar 2002 17:55:34 +0000 |
parents | 40b48a0a780e |
children | e2f8b4b74c25 |
comparison
equal
deleted
inserted
replaced
4981:bfc652fc7f43 | 4982:6cb9d9a1716d |
---|---|
1 <HTML> | 1 <HTML> |
2 | |
3 <HEAD> | |
4 <STYLE> | |
5 .text | |
6 {font-family : Verdana, Arial, Helvetica, sans-serif; | |
7 font-size : 14px;} | |
8 </STYLE> | |
9 </HEAD> | |
10 | |
2 <BODY BGCOLOR=white> | 11 <BODY BGCOLOR=white> |
3 | 12 |
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 13 <FONT CLASS="text"> |
5 | 14 |
6 <P><B><A NAME=2.4>2.4. Encoding with MEncoder</A></B></P> | 15 <P><B><A NAME=2.4>2.4. Encoding with MEncoder</A></B></P> |
7 | 16 |
8 <P><B><A NAME=2.4.1>2.4.1. Overview</B></P> | 17 <P><B><A NAME=2.4.1>2.4.1. Overview</B></P> |
9 | 18 |
98 audio is encoded only once, unlike in 2-pass mode. The schematics :</P> | 107 audio is encoded only once, unlike in 2-pass mode. The schematics :</P> |
99 | 108 |
100 <P> | 109 <P> |
101 <TABLE> | 110 <TABLE> |
102 <TR> | 111 <TR> |
103 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 112 <TD><FONT CLASS="text"> |
104 <CODE>rm frameno.avi</CODE></TD> | 113 <CODE>rm frameno.avi</CODE></TD> |
105 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 114 <TD><FONT CLASS="text"> |
106 <B>remove conflicting temporary file</B></TD> | 115 <B>remove conflicting temporary file</B></TD> |
107 </TR> | 116 </TR> |
108 <TR> | 117 <TR> |
109 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 118 <TD><FONT CLASS="text"> |
110 <CODE>mencoder <file/DVD> -ovc frameno -o | 119 <CODE>mencoder <file/DVD> -ovc frameno -o |
111 frameno.avi</CODE></TD> | 120 frameno.avi</CODE></TD> |
112 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 121 <TD><FONT CLASS="text"> |
113 <B><U>First pass</U> : an audio-only avi file will be created, containing | 122 <B><U>First pass</U> : an audio-only avi file will be created, containing |
114 ONLY the requested audio stream. Don't forget <CODE>-lameopts</CODE>, if | 123 ONLY the requested audio stream. Don't forget <CODE>-lameopts</CODE>, if |
115 you need to set it. If you were encoding a long movie, MEncoder prints | 124 you need to set it. If you were encoding a long movie, MEncoder prints |
116 the recommended bitrate values for 650Mb, 700Mb, and 800Mb destination | 125 the recommended bitrate values for 650Mb, 700Mb, and 800Mb destination |
117 sizes, after this pass finishes.</B></TD> | 126 sizes, after this pass finishes.</B></TD> |
118 </TR> | 127 </TR> |
119 <TR> | 128 <TR> |
120 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 129 <TD><FONT CLASS="text"> |
121 <CODE>mencoder <file/DVD> -oac copy -pass 1 | 130 <CODE>mencoder <file/DVD> -oac copy -pass 1 |
122 -divx4opts br=<bitrate></CODE></TD> | 131 -divx4opts br=<bitrate></CODE></TD> |
123 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 132 <TD><FONT CLASS="text"> |
124 <B><U>Second pass</U> : alias the first pass of DivX4 video encoding. | 133 <B><U>Second pass</U> : alias the first pass of DivX4 video encoding. |
125 Optionally specify the video bitrate MEncoder printed at the end of the | 134 Optionally specify the video bitrate MEncoder printed at the end of the |
126 previous pass.</B></TD> | 135 previous pass.</B></TD> |
127 </TR> | 136 </TR> |
128 <TR> | 137 <TR> |
129 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 138 <TD><FONT CLASS="text"> |
130 <CODE>mencoder <file/DVD> -oac copy -pass 2 | 139 <CODE>mencoder <file/DVD> -oac copy -pass 2 |
131 -divx4opts br=<bitrate></CODE></TD> | 140 -divx4opts br=<bitrate></CODE></TD> |
132 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 141 <TD><FONT CLASS="text"> |
133 <B><U>Third pass</U> : alias the second pass of DivX4 video encoding. | 142 <B><U>Third pass</U> : alias the second pass of DivX4 video encoding. |
134 Optionally specify the video bitrate MEncoder printed at the end of the | 143 Optionally specify the video bitrate MEncoder printed at the end of the |
135 previous pass. In this pass, audio from <CODE>frameno.avi</CODE> will be | 144 previous pass. In this pass, audio from <CODE>frameno.avi</CODE> will be |
136 inserted into the destination file.. and it's all ready!</B></TD> | 145 inserted into the destination file.. and it's all ready!</B></TD> |
137 </TR> | 146 </TR> |
292 <CODE>-noidx</CODE> to disregard buggy index of input AVI. <B>Be smart!</B> | 301 <CODE>-noidx</CODE> to disregard buggy index of input AVI. <B>Be smart!</B> |
293 </P> | 302 </P> |
294 | 303 |
295 <TABLE BORDER=1> | 304 <TABLE BORDER=1> |
296 <TR> | 305 <TR> |
297 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 306 <TD><FONT CLASS="text"> |
298 <I>-ss</I> time</TD> | 307 <I>-ss</I> time</TD> |
299 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 308 <TD><FONT CLASS="text"> |
300 start encoding from the given time (can start only from keyframes !) | 309 start encoding from the given time (can start only from keyframes !) |
301 </TD> | 310 </TD> |
302 </TR> | 311 </TR> |
303 <TR> | 312 <TR> |
304 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 313 <TD><FONT CLASS="text"> |
305 <I>-endpos</I> time</TD> | 314 <I>-endpos</I> time</TD> |
306 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 315 <TD><FONT CLASS="text"> |
307 stop encoding at the given time. See the manpage for examples ! | 316 stop encoding at the given time. See the manpage for examples ! |
308 </TD> | 317 </TD> |
309 </TR> | 318 </TR> |
310 <TR> | 319 <TR> |
311 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 320 <TD><FONT CLASS="text"> |
312 <I>-o</I> filename</TD> | 321 <I>-o</I> filename</TD> |
313 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 322 <TD><FONT CLASS="text"> |
314 specify output filename | 323 specify output filename |
315 </TD> | 324 </TD> |
316 </TR> | 325 </TR> |
317 <TR> | 326 <TR> |
318 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 327 <TD><FONT CLASS="text"> |
319 <I>-x</I> width in pixels</TD> | 328 <I>-x</I> width in pixels</TD> |
320 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 329 <TD><FONT CLASS="text"> |
321 rescale output video to given pixels width | 330 rescale output video to given pixels width |
322 </TD> | 331 </TD> |
323 </TR> | 332 </TR> |
324 <TR> | 333 <TR> |
325 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 334 <TD><FONT CLASS="text"> |
326 <I>-y</I> height in pixels</TD> | 335 <I>-y</I> height in pixels</TD> |
327 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 336 <TD><FONT CLASS="text"> |
328 rescale output video to given pixels height | 337 rescale output video to given pixels height |
329 </TD> | 338 </TD> |
330 </TR> | 339 </TR> |
331 <TR> | 340 <TR> |
332 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 341 <TD><FONT CLASS="text"> |
333 <I>-sws</I> 0-2</TD> | 342 <I>-sws</I> 0-2</TD> |
334 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 343 <TD><FONT CLASS="text"> |
335 type of scaling method<BR> | 344 type of scaling method<BR> |
336 0 - fast bilinear<BR> | 345 0 - fast bilinear<BR> |
337 1 - bilinear<BR> | 346 1 - bilinear<BR> |
338 2 - bicubic (best quality)<BR> | 347 2 - bicubic (best quality)<BR> |
339 </TD> | 348 </TD> |
340 </TR> | 349 </TR> |
341 <TR> | 350 <TR> |
342 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 351 <TD><FONT CLASS="text"> |
343 <I>-ovc</I> codecname</TD> | 352 <I>-ovc</I> codecname</TD> |
344 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 353 <TD><FONT CLASS="text"> |
345 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> | 354 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> |
346 <B>help</B> - get list of available codecs<BR> | 355 <B>help</B> - get list of available codecs<BR> |
347 <B>null</B> - do not create a video stream in the output AVI<BR> | 356 <B>null</B> - do not create a video stream in the output AVI<BR> |
348 <B>raw</B> - create uncompressed video<BR> | 357 <B>raw</B> - create uncompressed video<BR> |
349 <B>rawrgb</B> - ?<BR> | 358 <B>rawrgb</B> - ?<BR> |
352 <B>lavc</B> - encode with a codec from libavcodec<BR> | 361 <B>lavc</B> - encode with a codec from libavcodec<BR> |
353 <B>vfw</B> - encode with a Windows DLL<BR> | 362 <B>vfw</B> - encode with a Windows DLL<BR> |
354 </TD> | 363 </TD> |
355 </TR> | 364 </TR> |
356 <TR> | 365 <TR> |
357 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 366 <TD><FONT CLASS="text"> |
358 <I>-oac</I> codecname</TD> | 367 <I>-oac</I> codecname</TD> |
359 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 368 <TD><FONT CLASS="text"> |
360 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> | 369 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> |
361 <B>help</B> - get list of available codecs<BR> | 370 <B>help</B> - get list of available codecs<BR> |
362 <B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> | 371 <B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> |
363 <B>pcm</B> - encode to uncompressed PCM<BR> | 372 <B>pcm</B> - encode to uncompressed PCM<BR> |
364 <B>mp3lame</B> - encode to MP3 (using Lame)<BR> | 373 <B>mp3lame</B> - encode to MP3 (using Lame)<BR> |
365 </TD> | 374 </TD> |
366 </TR> | 375 </TR> |
367 <TR> | 376 <TR> |
368 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 377 <TD><FONT CLASS="text"> |
369 <I>-mf</I> multifile options</TD> | 378 <I>-mf</I> multifile options</TD> |
370 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 379 <TD><FONT CLASS="text"> |
371 Used when encoding from multiple JPEG files. Its sub-options are:<BR> | 380 Used when encoding from multiple JPEG files. Its sub-options are:<BR> |
372 <B>on</B> - turns on multifile support<BR> | 381 <B>on</B> - turns on multifile support<BR> |
373 <B>w</B>=<value> - width of the output file<BR> | 382 <B>w</B>=<value> - width of the output file<BR> |
374 <B>h</B>=<value> - height of the output file<BR> | 383 <B>h</B>=<value> - height of the output file<BR> |
375 <B>fps</B>=<value> - fps of the output file<BR> | 384 <B>fps</B>=<value> - fps of the output file<BR> |
376 <B>type</B>=<value> - type of input files (available types : <CODE>jpeg</CODE>, <CODE>png</CODE>)<BR> | 385 <B>type</B>=<value> - type of input files (available types : <CODE>jpeg</CODE>, <CODE>png</CODE>)<BR> |
377 </TD> | 386 </TD> |
378 </TR> | 387 </TR> |
379 | 388 |
380 <TR> | 389 <TR> |
381 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 390 <TD><FONT CLASS="text"> |
382 <I>-divx4opts</I></TD> | 391 <I>-divx4opts</I></TD> |
383 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 392 <TD><FONT CLASS="text"> |
384 If encoding to DivX4, you can specify its parameters here, like:<BR> | 393 If encoding to DivX4, you can specify its parameters here, like:<BR> |
385 <CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR> | 394 <CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR> |
386 Common options: <B>(for full list, check the manpage!)</B><BR> | 395 Common options: <B>(for full list, check the manpage!)</B><BR> |
387 <B>help</B> - get help<BR> | 396 <B>help</B> - get help<BR> |
388 <B>br</B>=<value> - specify bitrate in kbit <4-16000> or bit <16001-24000000><BR> | 397 <B>br</B>=<value> - specify bitrate in kbit <4-16000> or bit <16001-24000000><BR> |
389 <B>q</B>=<value> - quality (1-fastest, 5-best - default 5)<BR> | 398 <B>q</B>=<value> - quality (1-fastest, 5-best - default 5)<BR> |
390 <B>key</B>=<value> - keyframe interval<BR> | 399 <B>key</B>=<value> - keyframe interval<BR> |
391 </TD> | 400 </TD> |
392 </TR> | 401 </TR> |
393 <TR> | 402 <TR> |
394 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 403 <TD><FONT CLASS="text"> |
395 <I>-lavcopts</I></TD> | 404 <I>-lavcopts</I></TD> |
396 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 405 <TD><FONT CLASS="text"> |
397 If encoding with libavcodec, you can specify its parameters here, like:<BR> | 406 If encoding with libavcodec, you can specify its parameters here, like:<BR> |
398 <CODE>-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250</CODE><BR> | 407 <CODE>-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250</CODE><BR> |
399 Common options: <B>(for full list, check the manpage!)</B><BR> | 408 Common options: <B>(for full list, check the manpage!)</B><BR> |
400 <B>help</B> - get help<BR> | 409 <B>help</B> - get help<BR> |
401 <B>vcodec</B>=<value> - select videocodec (for the full list, see the libavcodec section above)<BR> | 410 <B>vcodec</B>=<value> - select videocodec (for the full list, see the libavcodec section above)<BR> |
403 <B>vhq</B> - high quality<BR> | 412 <B>vhq</B> - high quality<BR> |
404 <B>keyint</B>=<value> - keyframe interval<BR> | 413 <B>keyint</B>=<value> - keyframe interval<BR> |
405 </TD> | 414 </TD> |
406 </TR> | 415 </TR> |
407 <TR> | 416 <TR> |
408 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 417 <TD><FONT CLASS="text"> |
409 <I>-lameopts</I></TD> | 418 <I>-lameopts</I></TD> |
410 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | 419 <TD><FONT CLASS="text"> |
411 If encoding to MP3 with libmp3lame, you can specify its parameters here, like:<BR> | 420 If encoding to MP3 with libmp3lame, you can specify its parameters here, like:<BR> |
412 <CODE>-lameopts q=3</CODE><BR> | 421 <CODE>-lameopts q=3</CODE><BR> |
413 <CODE>-lameopts br=192:cbr</CODE><BR> | 422 <CODE>-lameopts br=192:cbr</CODE><BR> |
414 Common options: <B>(for full list, check the manpage!)</B><BR> | 423 Common options: <B>(for full list, check the manpage!)</B><BR> |
415 <B>help</B> - get help<BR> | 424 <B>help</B> - get help<BR> |