comparison DOCS/encoding.html @ 7043:ba9c212ed577

begun removing "Available options" and "Examples" sections, which was discussed earlier on the list. Objections? Better solutions?
author gabucino
date Sun, 18 Aug 2002 20:51:55 +0000
parents 797e7ba735ac
children 4f87cd0f642f
comparison
equal deleted inserted replaced
7042:c3e81327a656 7043:ba9c212ed577
340 <P><I>Copying a french subtitle from an MPEG file</I><BR> 340 <P><I>Copying a french subtitle from an MPEG file</I><BR>
341 &nbsp;&nbsp;<CODE>rm subtitles.idx subtitles.sub</CODE><BR> 341 &nbsp;&nbsp;<CODE>rm subtitles.idx subtitles.sub</CODE><BR>
342 &nbsp;&nbsp;<CODE>mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles 342 &nbsp;&nbsp;<CODE>mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles
343 -vobsuboutindex 0 -vobsuboutid fr -sid 1</CODE></P> 343 -vobsuboutindex 0 -vobsuboutid fr -sid 1</CODE></P>
344 344
345 345 <P><B><A NAME="options">2.4.4 Options</A></B></P>
346 <P><B><A NAME="syntax">2.4.4 Syntax</A></B></P> 346
347 347 <P>For the complete list of available MEncoder options and examples, please
348 <P>&nbsp;&nbsp;<CODE>mencoder [options] [input file] [options] ...</CODE></P> 348 see the manpage.</P>
349
350
351 <P><B><A NAME="options">2.4.5 Available options</A></B></P>
352
353 <P>NOTE: for all available options, <B>read the man page.</B></P>
354
355 <P>As <B>MEncoder</B> is built on the same codebase as <B>MPlayer</B>, there
356 are many <B>MPlayer</B> options that have function in <B>MEncoder</B> too.
357 See, you can use <CODE>-sid</CODE> to rip a DVD with subtitles, or
358 <CODE>-noidx</CODE> to disregard buggy index of input AVI. <B>Be smart!</B></P>
359
360 <TABLE BORDER=1>
361 <TR>
362 <TD><CODE>-ss</CODE> time</TD>
363 <TD>start encoding from the given time (can start only from keyframes!)
364 </TD>
365 </TR>
366 <TR>
367 <TD><CODE>-endpos</CODE> time</TD>
368 <TD>stop encoding at the given time. See the man page for examples.
369 </TD>
370 </TR>
371 <TR>
372 <TD><CODE>-o</CODE> filename</TD>
373 <TD>specify output filename
374 </TD>
375 </TR>
376 <TR>
377 <TD><CODE>-sws</CODE> 0-2</TD>
378 <TD>type of scaling method<BR>
379 &nbsp;&nbsp;0 - fast bilinear<BR>
380 &nbsp;&nbsp;1 - bilinear<BR>
381 &nbsp;&nbsp;2 - bicubic (best quality)<BR>
382 </TD>
383 </TR>
384 <TR>
385 <TD><CODE>-ovc</CODE> codecname</TD>
386 <TD>Encode with the given codec (codec names are from codecs.conf). Examples:<BR>
387 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR>
388 &nbsp;&nbsp;<B>rawrgb</B> - ?<BR>
389 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR>
390 &nbsp;&nbsp;<B>divx4</B> - encode to DivX4<BR>
391 &nbsp;&nbsp;<B>lavc</B> - encode with a codec from libavcodec<BR>
392 &nbsp;&nbsp;<B>vfw</B> - encode with a Windows DLL<BR>
393 </TD>
394 </TR>
395 <TR>
396 <TD><CODE>-oac</CODE> codecname</TD>
397 <TD>Encode with the given codec (codec names are from codecs.conf). Examples:<BR>
398 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR>
399 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR>
400 &nbsp;&nbsp;<B>pcm</B> - encode to uncompressed PCM<BR>
401 &nbsp;&nbsp;<B>mp3lame</B> - encode to MP3 (using Lame)<BR>
402 </TD>
403 </TR>
404 <TR>
405 <TD><CODE>-mf</CODE> multifile options</TD>
406 <TD>Used when encoding from multiple JPEG files. Its sub-options are:<BR>
407 &nbsp;&nbsp;<B>on</B> - turns on multifile support<BR>
408 &nbsp;&nbsp;<B>w</B>=&lt;value&gt; - width of the output file<BR>
409 &nbsp;&nbsp;<B>h</B>=&lt;value&gt; - height of the output file<BR>
410 &nbsp;&nbsp;<B>fps</B>=&lt;value&gt; - fps of the output file<BR>
411 &nbsp;&nbsp;<B>type</B>=&lt;value&gt; - type of input files (available types:
412 <CODE>jpeg</CODE>, <CODE>png</CODE>)<BR>
413 </TD>
414 </TR>
415
416 <TR>
417 <TD><CODE>-divx4opts</CODE></TD>
418 <TD>If encoding to DivX4, you can specify its parameters here, like:<BR>
419 &nbsp;&nbsp;<CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR>
420 Common options: <B>(for a full list, check the man page)</B><BR>
421 &nbsp;&nbsp;<B>help</B> - get help<BR>
422 &nbsp;&nbsp;<B>br</B>=&lt;value&gt; - specify bitrate in kbit &lt;4-16000&gt;
423 or bit &lt;16001-24000000&gt;<BR>
424 &nbsp;&nbsp;<B>q</B>=&lt;value&gt; - quality (1-fastest, 5-best - default 5)<BR>
425 &nbsp;&nbsp;<B>key</B>=&lt;value&gt; - keyframe interval<BR>
426 </TD>
427 </TR>
428 <TR>
429 <TD><CODE>-lavcopts</CODE></TD>
430 <TD>If encoding with libavcodec, you can specify its parameters here, like:<BR>
431 &nbsp;&nbsp;<CODE>-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250</CODE><BR>
432 Common options: <B>(for a full list, check the man page)</B><BR>
433 &nbsp;&nbsp;<B>help</B> - get help<BR>
434 &nbsp;&nbsp;<B>vcodec</B>=&lt;value&gt; - select videocodec (for the full list, see the libavcodec section above)<BR>
435 &nbsp;&nbsp;<B>vbitrate</B>=&lt;value&gt; - specify bitrate in kbit &lt;4-16000&gt; or bit &lt;16001-24000000&gt;<BR>
436 &nbsp;&nbsp;<B>vhq</B> - high quality<BR>
437 &nbsp;&nbsp;<B>keyint</B>=&lt;value&gt; - keyframe interval<BR>
438 </TD>
439 </TR>
440 <TR>
441 <TD><CODE>-lameopts</CODE></TD>
442 <TD>If encoding to MP3 with libmp3lame, you can specify its parameters here, like:<BR>
443 &nbsp;&nbsp;<CODE>-lameopts q=3</CODE><BR>
444 &nbsp;&nbsp;<CODE>-lameopts br=192:cbr</CODE><BR>
445 Common options: <B>(for a full list, check the man page)</B><BR>
446 &nbsp;&nbsp;<B>help</B> - get help<BR>
447 &nbsp;&nbsp;<B>cbr</B> - select <B>CBR</B> MP3 (default is <B>VBR</B>)<BR>
448 &nbsp;&nbsp;<B>br</B>=&lt;value&gt; - specify bitrate in kbit &lt;0-1024&gt; (this is for <B>CBR</B> only!)<BR>
449 &nbsp;&nbsp;<B>q</B>=&lt;value&gt; - quality (0-highest, 9-fastest - default 0) (this is for <B>VBR</B> only!)<BR>
450 &nbsp;&nbsp;<B>vbr</B>=&lt;value&gt; - VBR sub-mode (3-ABR, best quality/speed) (this is for <B>VBR</B> only!)<BR>
451 </TD>
452 </TR>
453 <TR>
454 <TD><CODE>-vobsubout</CODE> basename</TD>
455 <TD>Specify the basename for the output <CODE>.idx</CODE> and <CODE>.sub</CODE>
456 files. This turns off subtitle rendering on the encoded movie.</TD>
457 </TR>
458 <TR>
459 <TD><CODE>-vobsuboutindex</CODE> index</TD>
460 <TD>Specify the index of the subtitles in the output files. Defaults to 0.</TD>
461 </TR>
462 <TR>
463 <TD><CODE>-vobsuboutid</CODE> langid</TD>
464 <TD>Specify the language two letter code for the subtitles. This overrides
465 what is read from the DVD or the <CODE>.ifo</CODE> file.</TD>
466 </TR>
467 </TABLE>
468
469 <P><B><A NAME="examples">2.4.6 Examples</A></B></P>
470
471 <P>Using <B>MEncoder</B> is the easiest thing on Earth. See the following:</P>
472
473 <P>Encoding from DVD, title 2:<BR>
474 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options -o title2.avi</CODE></P>
475
476 <P>The same, but with libavcodec family, MJPEG compression:<BR>
477 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -dvd 2 -lavcopts vcodec=mjpeg:more_options -ffourcc mjpg -o title2.avi</CODE></P>
478
479 <P>Encoding from DVD, title 2, with rescaling:<BR>
480 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -dvd 2 -vop scale=640:480 -sws 2 -lavcopts vcodec=mpeg4:more_options -o title2.avi</CODE></P>
481
482 <P>Encoding from HTTP:<BR>
483 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder http://mplayer.hq/example.avi -lavcopts vcodec=mpeg4:more_options -o example.avi</CODE></P>
484
485 <P>Encoding from a pipe:<BR>
486 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;rar p test-SVCD.rar | mencoder -lavcopts vcodec=mpeg4:more_options -ofps 24 -pass 1 -- -</CODE></P>
487
488 <P>Encoding multiple *.vob files:<BR>
489 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;cat *.vob | mencoder &lt;options&gt; -</CODE></P>
490
491 <P>Encoding from tuner (see the <A HREF="documentation.html#tv">TV input</A> section for tuner options):<BR>
492 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -tv on:driver=v4l:width=640:height=480 &lt;options&gt;</CODE></P>
493
494 <P>For all available options, <B>check the MEncoder man page.</B></P>
495 349
496 </BODY> 350 </BODY>
497 </HTML> 351 </HTML>