Mercurial > mplayer.hg
comparison DOCS/xml/en/encoding-guide.xml @ 20254:beca75a03355
Update x264 option names that changed with r20060
author | gpoirier |
---|---|
date | Mon, 16 Oct 2006 09:09:03 +0000 |
parents | 50113e22db17 |
children | bb1bddc32870 |
comparison
equal
deleted
inserted
replaced
20253:05ff3ca951b2 | 20254:beca75a03355 |
---|---|
3622 | 3622 |
3623 <listitem><para> | 3623 <listitem><para> |
3624 <emphasis role="bold">me</emphasis>: | 3624 <emphasis role="bold">me</emphasis>: |
3625 This option is for choosing the motion estimation search method. | 3625 This option is for choosing the motion estimation search method. |
3626 Altering this option provides a straightforward quality-vs-speed | 3626 Altering this option provides a straightforward quality-vs-speed |
3627 tradeoff. <option>me=1</option> is only a few percent faster than | 3627 tradeoff. <option>me=dia</option> is only a few percent faster than |
3628 the default search, at a cost of under 0.1dB global PSNR. The | 3628 the default search, at a cost of under 0.1dB global PSNR. The |
3629 default setting (<option>me=2</option>) is a reasonable tradeoff | 3629 default setting (<option>me=hex</option>) is a reasonable tradeoff |
3630 between speed and quality. <option>me=3</option> gains a little under | 3630 between speed and quality. <option>me=umh</option> gains a little under |
3631 0.1dB global PSNR, with a speed penalty that varies depending on | 3631 0.1dB global PSNR, with a speed penalty that varies depending on |
3632 <option>frameref</option>. At high values of | 3632 <option>frameref</option>. At high values of |
3633 <option>frameref</option> (e.g. 12 or so), <option>me=3</option> | 3633 <option>frameref</option> (e.g. 12 or so), <option>me=umh</option> |
3634 is about 40% slower than the default <option> me=2</option>. With | 3634 is about 40% slower than the default <option> me=hex</option>. With |
3635 <option>frameref=3</option>, the speed penalty incurred drops to | 3635 <option>frameref=3</option>, the speed penalty incurred drops to |
3636 25%-30%. | 3636 25%-30%. |
3637 </para> | 3637 </para> |
3638 <para> | 3638 <para> |
3639 <option>me=4</option> uses an exhaustive search that is too slow for | 3639 <option>me=esa</option> uses an exhaustive search that is too slow for |
3640 practical use. | 3640 practical use. |
3641 </para> | 3641 </para> |
3642 </listitem> | 3642 </listitem> |
3643 | 3643 |
3644 <listitem><para> | 3644 <listitem><para> |
3645 <emphasis role="bold">4x4mv</emphasis>: | 3645 <emphasis role="bold">partitions=p4x4</emphasis>: |
3646 This option enables the use of 8x4, 4x8 and 4x4 subpartitions in | 3646 This option enables the use of 8x4, 4x8 and 4x4 subpartitions in |
3647 predicted macroblocks. Enabling it results in a fairly consistent | 3647 predicted macroblocks. Enabling it results in a fairly consistent |
3648 10%-15% loss of speed. This option is rather useless in source | 3648 10%-15% loss of speed. This option is rather useless in source |
3649 containing only low motion, however in some high-motion source, | 3649 containing only low motion, however in some high-motion source, |
3650 particularly source with lots of small moving objects, gains of | 3650 particularly source with lots of small moving objects, gains of |
3784 prediction is less accurate, but the quality difference is normally much | 3784 prediction is less accurate, but the quality difference is normally much |
3785 too small to be visible. Try, for example, adding | 3785 too small to be visible. Try, for example, adding |
3786 <option>subq=1:frameref=1</option> to the first pass | 3786 <option>subq=1:frameref=1</option> to the first pass |
3787 <option>x264encopts</option>. Then, on the second pass, use slower, | 3787 <option>x264encopts</option>. Then, on the second pass, use slower, |
3788 higher-quality options: | 3788 higher-quality options: |
3789 <option>subq=6:frameref=15:4x4mv:me=3</option> | 3789 <option>subq=6:frameref=15:partitions=p4x4:me=umh</option> |
3790 </para></listitem> | 3790 </para></listitem> |
3791 <listitem><para> | 3791 <listitem><para> |
3792 <emphasis role="bold">Three pass encoding</emphasis>? | 3792 <emphasis role="bold">Three pass encoding</emphasis>? |
3793 | 3793 |
3794 x264 offers the ability to make an arbitrary number of consecutive | 3794 x264 offers the ability to make an arbitrary number of consecutive |
3837 (understanding that there are diminishing returns which may become | 3837 (understanding that there are diminishing returns which may become |
3838 vanishingly low, or even zero). The video stream will still have seekable | 3838 vanishingly low, or even zero). The video stream will still have seekable |
3839 points as long as there are some scene changes. | 3839 points as long as there are some scene changes. |
3840 </para></listitem> | 3840 </para></listitem> |
3841 <listitem><para> | 3841 <listitem><para> |
3842 <emphasis role="bold">deblockalpha, deblockbeta</emphasis>: | 3842 <emphasis role="bold">deblock</emphasis>: |
3843 This topic is going to be a bit controversial. | 3843 This topic is going to be a bit controversial. |
3844 </para> | 3844 </para> |
3845 <para> | 3845 <para> |
3846 H.264 defines a simple deblocking procedure on I-blocks that uses | 3846 H.264 defines a simple deblocking procedure on I-blocks that uses |
3847 pre-set strengths and thresholds depending on the QP of the block | 3847 pre-set strengths and thresholds depending on the QP of the block |
3849 By default, high QP blocks are filtered heavily, and low QP blocks | 3849 By default, high QP blocks are filtered heavily, and low QP blocks |
3850 are not deblocked at all. | 3850 are not deblocked at all. |
3851 The pre-set strengths defined by the standard are well-chosen and | 3851 The pre-set strengths defined by the standard are well-chosen and |
3852 the odds are very good that they are PSNR-optimal for whatever | 3852 the odds are very good that they are PSNR-optimal for whatever |
3853 video you are trying to encode. | 3853 video you are trying to encode. |
3854 The <option>deblockalpha</option> and <option>deblockbeta</option> | 3854 The <option>deblock</option> allow you to specify offsets to the preset deblocking |
3855 parameters allow you to specify offsets to the preset deblocking | |
3856 thresholds. | 3855 thresholds. |
3857 </para> | 3856 </para> |
3858 <para> | 3857 <para> |
3859 Many people seem to think it is a good idea to lower the deblocking | 3858 Many people seem to think it is a good idea to lower the deblocking |
3860 filter strength by large amounts (say, -3). | 3859 filter strength by large amounts (say, -3). |
3934 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row> | 3933 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row> |
3935 </thead> | 3934 </thead> |
3936 <tbody> | 3935 <tbody> |
3937 <row> | 3936 <row> |
3938 <entry>Very high quality</entry> | 3937 <entry>Very high quality</entry> |
3939 <entry><option>subq=6:4x4mv:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b</option></entry> | 3938 <entry><option>subq=6:partitions=p4x4:8x8dct:me=3:frameref=5:bframes=3:b_pyramid:weight_b</option></entry> |
3940 <entry>6fps</entry> | 3939 <entry>6fps</entry> |
3941 <entry>0dB</entry> | 3940 <entry>0dB</entry> |
3942 </row> | 3941 </row> |
3943 <row> | 3942 <row> |
3944 <entry>High quality</entry> | 3943 <entry>High quality</entry> |
3945 <entry><option>subq=5:4x4mv:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b</option></entry> | 3944 <entry><option>subq=5:partitions=p4x4:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b</option></entry> |
3946 <entry>13fps</entry> | 3945 <entry>13fps</entry> |
3947 <entry>-0.89dB</entry> | 3946 <entry>-0.89dB</entry> |
3948 </row> | 3947 </row> |
3949 <row> | 3948 <row> |
3950 <entry>Fast</entry> | 3949 <entry>Fast</entry> |