Mercurial > mplayer.hg
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 <CODE>rm subtitles.idx subtitles.sub</CODE><BR> | 341 <CODE>rm subtitles.idx subtitles.sub</CODE><BR> |
342 <CODE>mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles | 342 <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> <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 0 - fast bilinear<BR> | |
380 1 - bilinear<BR> | |
381 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 <B>help</B> - get list of available codecs<BR> | |
388 <B>rawrgb</B> - ?<BR> | |
389 <B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> | |
390 <B>divx4</B> - encode to DivX4<BR> | |
391 <B>lavc</B> - encode with a codec from libavcodec<BR> | |
392 <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 <B>help</B> - get list of available codecs<BR> | |
399 <B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> | |
400 <B>pcm</B> - encode to uncompressed PCM<BR> | |
401 <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 <B>on</B> - turns on multifile support<BR> | |
408 <B>w</B>=<value> - width of the output file<BR> | |
409 <B>h</B>=<value> - height of the output file<BR> | |
410 <B>fps</B>=<value> - fps of the output file<BR> | |
411 <B>type</B>=<value> - 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 <CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR> | |
420 Common options: <B>(for a full list, check the man page)</B><BR> | |
421 <B>help</B> - get help<BR> | |
422 <B>br</B>=<value> - specify bitrate in kbit <4-16000> | |
423 or bit <16001-24000000><BR> | |
424 <B>q</B>=<value> - quality (1-fastest, 5-best - default 5)<BR> | |
425 <B>key</B>=<value> - 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 <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 <B>help</B> - get help<BR> | |
434 <B>vcodec</B>=<value> - select videocodec (for the full list, see the libavcodec section above)<BR> | |
435 <B>vbitrate</B>=<value> - specify bitrate in kbit <4-16000> or bit <16001-24000000><BR> | |
436 <B>vhq</B> - high quality<BR> | |
437 <B>keyint</B>=<value> - 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 <CODE>-lameopts q=3</CODE><BR> | |
444 <CODE>-lameopts br=192:cbr</CODE><BR> | |
445 Common options: <B>(for a full list, check the man page)</B><BR> | |
446 <B>help</B> - get help<BR> | |
447 <B>cbr</B> - select <B>CBR</B> MP3 (default is <B>VBR</B>)<BR> | |
448 <B>br</B>=<value> - specify bitrate in kbit <0-1024> (this is for <B>CBR</B> only!)<BR> | |
449 <B>q</B>=<value> - quality (0-highest, 9-fastest - default 0) (this is for <B>VBR</B> only!)<BR> | |
450 <B>vbr</B>=<value> - 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> 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> 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> 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> 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> 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> cat *.vob | mencoder <options> -</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> mencoder -tv on:driver=v4l:width=640:height=480 <options></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> |