Mercurial > mplayer.hg
comparison DOCS/xml/en/mencoder.xml @ 15809:c4974449b18c
New codec covered by the encoding guide: XviD
author | gpoirier |
---|---|
date | Thu, 23 Jun 2005 17:25:53 +0000 |
parents | d7c271f828d9 |
children | b3924612667a |
comparison
equal
deleted
inserted
replaced
15808:f03a8d54e5f9 | 15809:c4974449b18c |
---|---|
2436 </para></listitem> | 2436 </para></listitem> |
2437 </itemizedlist> | 2437 </itemizedlist> |
2438 </sect2> | 2438 </sect2> |
2439 </sect1> | 2439 </sect1> |
2440 | 2440 |
2441 <sect1 id="menc-feat-xvid"> | |
2442 <title>Encoding with the <systemitem class="library">XviD</systemitem> | |
2443 codec</title> | |
2444 <para> | |
2445 <systemitem class="library">XviD</systemitem> is a free library for | |
2446 encoding MPEG-4 ASP video streams. | |
2447 Before starting to encode, you need to <link linkend="xvid"> | |
2448 set up <application>MEncoder</application> to support it</link>. | |
2449 </para> | |
2450 <para> | |
2451 This guide mainly aims at featuring the same kind of information | |
2452 as x264's encoding guide. | |
2453 Therefore, please begin by reading | |
2454 <link linkend="menc-feat-x264-intro">the first part</link> of that | |
2455 guide. | |
2456 </para> | |
2457 | |
2458 | |
2459 <sect2 id="menc-feat-xvid-intro"> | |
2460 <title>What options should I use to get the best results?</title> | |
2461 | |
2462 <para> | |
2463 Please begin by reviewing the | |
2464 <systemitem class="library">XviD</systemitem> section of | |
2465 <application>MPlayer</application>'s man page. | |
2466 This section is intended to be a supplement to the man page. | |
2467 </para> | |
2468 <para> | |
2469 The XviD default settings are already a good tradeoff between | |
2470 speed and quality, therefore you can safely stick to them if | |
2471 the following section puzzles you. | |
2472 </para> | |
2473 </sect2> | |
2474 | |
2475 <sect2 id="menc-feat-xvid-encoding-options"> | |
2476 <title>Encoding options of <systemitem class="library">XviD</systemitem></title> | |
2477 | |
2478 <itemizedlist> | |
2479 <listitem><para> | |
2480 <emphasis role="bold">vhq</emphasis> | |
2481 This setting affects the macroblock decision algorithm, where the | |
2482 higher the setting, the wiser the decision. | |
2483 The default setting may be safely used for every encode, while | |
2484 higher settings always help PSNR but are significantly slower. | |
2485 Please note that a better PSNR does not necessarily mean | |
2486 that the picture will look better, but tells you that it is | |
2487 closer to the original. | |
2488 Turning it off will noticeably speed up encoding; if speed is | |
2489 critical for you, the tradeoff may be worth it. | |
2490 </para></listitem> | |
2491 | |
2492 <listitem><para> | |
2493 <emphasis role="bold">bvhq</emphasis> | |
2494 This does the same job as vhq, but does it on B-frames. | |
2495 It has a negligible impact on speed, and slightly improves quality | |
2496 (around +0.1dB PSNR). | |
2497 </para></listitem> | |
2498 | |
2499 <listitem><para> | |
2500 <emphasis role="bold">max_bframes</emphasis> | |
2501 A higher number of consecutive allowed B-frames usually improves | |
2502 compressibility, although it may also lead to more blocking artifacts. | |
2503 The default setting is a good tradeoff between compressibility and | |
2504 quality, but you may increase it up to 3 if you are bitrate-starved. | |
2505 You may also decrease it to 1 or 0 if you are aiming at perfect | |
2506 quality, though in that case you should make sure your | |
2507 target bitrate is high enough to ensure that the encoder does not | |
2508 have to increase quantizers to reach it. | |
2509 </para></listitem> | |
2510 | |
2511 <listitem><para> | |
2512 <emphasis role="bold">bf_threshold</emphasis> | |
2513 This controls the B-frame sensitivity of the encoder, where a higher | |
2514 value leads to more B-frames being used (and vice versa). | |
2515 This setting is to be used together with <option>max_bframes</option>; | |
2516 if you are bitrate-starved, you should increase both | |
2517 <option>max_bframes</option> and <option>bf_threshold</option>, | |
2518 while you may increase <option>max_bframes</option> and reduce | |
2519 <option>bf_threshold</option> so that the encoder may use more | |
2520 B-frames in places that only <emphasis role="bold">really</emphasis> | |
2521 need them. | |
2522 A low number of <option>max_bframes</option> and a high value of | |
2523 <option>bf_threshold</option> is probably not a wise choice as it | |
2524 will force the encoder to put B-frames in places that would not | |
2525 benefit from them, therefore reducing visual quality. | |
2526 However, if you need to be compatible with standalone players that | |
2527 only support old DivX profiles (which only supports up to 1 | |
2528 consecutive B-frame), this would be your only way to | |
2529 increase compressibility through using B-frames. | |
2530 </para></listitem> | |
2531 | |
2532 <listitem><para> | |
2533 <emphasis role="bold">trellis</emphasis> | |
2534 Optimizes the quantization process to get an optimal tradeoff | |
2535 between PSNR and bitrate, which allows significant bit saving. | |
2536 These bits will in return be spent elsewhere on the video, | |
2537 raising overall visual quality. | |
2538 You should always leave it on as its impact on quality is huge. | |
2539 Even if you are looking for speed, do not disable it until you | |
2540 have turned down <option>vhq</option> and all other more | |
2541 CPU-hungry options to the minimum. | |
2542 </para></listitem> | |
2543 | |
2544 <listitem><para> | |
2545 <emphasis role="bold">cartoon</emphasis> | |
2546 Designed to better encode cartoon content, and has no impact on | |
2547 speed as it just tunes the mode decision heuristics for this type | |
2548 of content. | |
2549 </para></listitem> | |
2550 | |
2551 <listitem><para> | |
2552 <emphasis role="bold">me_quality</emphasis> | |
2553 This setting is to control the precision of the motion estimation. | |
2554 The higher <option>me_quality</option>, the more | |
2555 precise the estimation of the original motion will be, and the | |
2556 better the resulting clip will capture the original motion. | |
2557 </para> | |
2558 <para> | |
2559 The default setting is best in all cases; | |
2560 thus it is not recommended to turn it down unless you are | |
2561 really looking for speed, as all the bits saved by a good motion | |
2562 estimation would be spent elsewhere, raising overall quality. | |
2563 Therefore, do not go any lower than 5, and even that only as a last | |
2564 resort. | |
2565 </para></listitem> | |
2566 | |
2567 <listitem><para> | |
2568 <emphasis role="bold">chroma_me</emphasis> | |
2569 Improves motion estimation by also taking the chroma (color) | |
2570 information into account, whereas <option>me_quality</option> | |
2571 alone only uses luma (grayscale). | |
2572 This slows down encoding by 5-10% but improves visual quality | |
2573 quite a bit by reducing blocking effects. | |
2574 If you are looking for speed, you should disable this option before | |
2575 starting to consider reducing <option>me_quality</option>. | |
2576 </para></listitem> | |
2577 </itemizedlist> | |
2578 </sect2> | |
2579 </sect1> | |
2580 | |
2581 | |
2441 <sect1 id="menc-feat-telecine"> | 2582 <sect1 id="menc-feat-telecine"> |
2442 <title>How to deal with telecine and interlacing within NTSC DVDs</title> | 2583 <title>How to deal with telecine and interlacing within NTSC DVDs</title> |
2443 | 2584 |
2444 <sect2 id="menc-feat-telecine-intro"> | 2585 <sect2 id="menc-feat-telecine-intro"> |
2445 <title>Introduction</title> | 2586 <title>Introduction</title> |