Mercurial > mplayer.hg
comparison DOCS/xml/ru/encoding-guide.xml @ 21747:e6b16ad464e8
Translation of menc-feat-x264 sect1 in encoding-guide.xml
author | voroshil |
---|---|
date | Sun, 24 Dec 2006 11:21:08 +0000 |
parents | 68248f4e3027 |
children | 5a9cea1eb591 |
comparison
equal
deleted
inserted
replaced
21746:7b88cb528d2b | 21747:e6b16ad464e8 |
---|---|
3669 | 3669 |
3670 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | 3670 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
3671 | 3671 |
3672 | 3672 |
3673 <sect1 id="menc-feat-x264"> | 3673 <sect1 id="menc-feat-x264"> |
3674 <title>Encoding with the <systemitem class="library">x264</systemitem> codec</title> | 3674 <title>Кодирование кодеком <systemitem class="library">x264</systemitem></title> |
3675 <para> | 3675 <para> |
3676 <systemitem class="library">x264</systemitem> is a free library for | 3676 <systemitem class="library">x264</systemitem> это свободная библиотека для |
3677 encoding H.264/AVC video streams. | 3677 кодирование H.264/AVC видео потоков. |
3678 Before starting to encode, you need to <link linkend="codec-x264-encode"> | 3678 Перед началом кодирование вы должны <link linkend="codec-x264-encode"> |
3679 set up <application>MEncoder</application> to support it</link>. | 3679 настроить <application>MEncoder</application> для его поддержки</link>. |
3680 </para> | 3680 </para> |
3681 | 3681 |
3682 <!-- ********** --> | 3682 <!-- ********** --> |
3683 | 3683 |
3684 <sect2 id="menc-feat-x264-encoding-options"> | 3684 <sect2 id="menc-feat-x264-encoding-options"> |
3685 <title>Encoding options of x264</title> | 3685 <title>Опции кодирования x264</title> |
3686 | 3686 |
3687 <para> | 3687 <para> |
3688 Please begin by reviewing the | 3688 Начните, пожалуйста с просмотра раздела |
3689 <systemitem class="library">x264</systemitem> section of | 3689 <systemitem class="library">x264</systemitem> |
3690 <application>MPlayer</application>'s man page. | 3690 man страницы <application>MPlayer</application>'а. |
3691 This section is intended to be a supplement to the man page. | 3691 Этот раздел предполагается быть дополнением к странице man. |
3692 Here you will find quick hints about which options are most | 3692 Здесь вы найдете быстрые подсказки о том, какие опции чаще всего интересуют |
3693 likely to interest most people. The man page is more terse, | 3693 большинство людей. Страница man более лаконична, но также более полна и порой |
3694 but also more exhaustive, and it sometimes offers much better | 3694 намного лучше преподносит технические детали. |
3695 technical detail. | |
3696 </para> | 3695 </para> |
3697 | 3696 |
3698 | 3697 |
3699 <sect3 id="menc-feat-x264-encoding-options-intro"> | 3698 <sect3 id="menc-feat-x264-encoding-options-intro"> |
3700 <title>Introduction</title> | 3699 <title>Введение</title> |
3701 | 3700 |
3702 <para> | 3701 <para> |
3703 This guide considers two major categories of encoding options: | 3702 Это руководство рассматривает две главные категории опций кодирования: |
3704 </para> | 3703 </para> |
3705 | 3704 |
3706 <orderedlist> | 3705 <orderedlist> |
3707 <listitem><para> | 3706 <listitem><para> |
3708 Options which mainly trade off encoding time vs. quality | 3707 Опции, в основном влияющие на соотношение скорость-качество. |
3709 </para></listitem> | 3708 </para></listitem> |
3710 <listitem><para> | 3709 <listitem><para> |
3711 Options which may be useful for fulfilling various personal | 3710 Опции, которые могут быть полезны для удовлетворения различный |
3712 preferences and special requirements | 3711 пользовательский предпочтений и специальных требований. |
3713 </para></listitem> | 3712 </para></listitem> |
3714 </orderedlist> | 3713 </orderedlist> |
3715 | 3714 |
3716 <para> | 3715 <para> |
3717 Ultimately, only you can decide which options are best for your | 3716 В конце концов, только вы можете решать какие опции являются лучшими для ваших |
3718 purposes. The decision for the first class of options is the simplest: | 3717 целей. Решение для первого класса опций очень простое: |
3719 you only have to decide whether you think the quality differences | 3718 надо только определить, считаете ли вы, что разница в качестве оправдывает разницу в |
3720 justify the speed differences. For the second class of options, | 3719 скорости. Для второго класса опций предпочтения могут быть значительно более |
3721 preferences may be far more subjective, and more factors may be | 3720 субъективными и зависеть от большего числа факторов. |
3722 involved. Note that some of the "personal preferences and special | 3721 Имейте в виду, что некоторые из опций категории "пользовательских предпочтений и специальных |
3723 requirements" options can still have large impacts on speed or quality, | 3722 требований" могут все же иметь большое влияние на скорость или качество, |
3724 but that is not what they are primarily useful for. A couple of the | 3723 но это не основное их предназначение. |
3725 "personal preference" options may even cause changes that look better | 3724 Часть опций из "пользовательских предпочтений" могут даже привести к изменениям, |
3726 to some people, but look worse to others. | 3725 которые выглядят лучше для одних людей и хуже - для других. |
3727 </para> | 3726 </para> |
3728 | 3727 |
3729 <para> | 3728 <para> |
3730 Before continuing, you need to understand that this guide uses only one | 3729 Перед тем как продолжить, вам придется понять, что это руководство использует |
3731 quality metric: global PSNR. | 3730 только одну метрику качества: глобальный PSNR. |
3732 For a brief explanation of what PSNR is, see | 3731 Краткое описание того, что такое PSNR, смотрите в |
3733 <ulink url="http://en.wikipedia.org/wiki/PSNR">the Wikipedia article on PSNR</ulink>. | 3732 <ulink url="http://en.wikipedia.org/wiki/PSNR">статье Википедии о PSNR</ulink>. |
3734 Global PSNR is the last PSNR number reported when you include | 3733 Глобальный PSNR - это последнее значение PSNR, выводимое на консоль, когда в |
3735 the <option>psnr</option> option in <option>x264encopts</option>. | 3734 <option>x264encopts</option> включена опция <option>psnr</option>. |
3736 Any time you read a claim about PSNR, one of the assumptions | 3735 Каждый раз, когда вы читаете утверждения о PSNR, за ними скрывается |
3737 behind the claim is that equal bitrates are used. | 3736 предположение, что используются одинаковые значения битпотока. |
3738 </para> | 3737 </para> |
3739 | 3738 |
3740 <para> | 3739 <para> |
3741 Nearly all of this guide's comments assume you are using | 3740 Почти все комментарии этого руководства предполагают, что вы используете два |
3742 two pass. | 3741 прохода. |
3743 When comparing options, there are two major reasons for using | 3742 Есть две основные причины использовать двухпроходное кодирование при сравнении |
3744 two pass encoding. | 3743 опций. |
3745 First, using two pass often gains around 1dB PSNR, which is a | 3744 Во-первых, использование двух проходов увеличивает PSNR примерно на 1дБ, |
3746 very big difference. | 3745 что является очень хорошим значением. |
3747 Secondly, testing options by doing direct quality comparisons | 3746 Во-вторых, тестирование опций прямым сравнением качества при однопроходном |
3748 with one pass encodes introduces a major confounding | 3747 кодировании вводит основной сбивающий фактор: зачастую битпоток значительно |
3749 factor: bitrate often varies significantly with each encode. | 3748 меняется при каждом кодировании. |
3750 It is not always easy to tell whether quality changes are due | 3749 Не всегда можно с легкостью сказать, изменилось ли качество в основном за счет |
3751 mainly to changed options, or if they mostly reflect essentially | 3750 изменения опций, или оно по большей части отражает случайные изменения |
3752 random differences in the achieved bitrate. | 3751 в полученном битпотоке. |
3753 </para> | 3752 </para> |
3754 </sect3> | 3753 </sect3> |
3755 | 3754 |
3756 | 3755 |
3757 <sect3 id="menc-feat-x264-encoding-options-speedvquality"> | 3756 <sect3 id="menc-feat-x264-encoding-options-speedvquality"> |
3758 <title>Options which primarily affect speed and quality</title> | 3757 <title>Опции, затрагивающие, в основном, скорость и качество</title> |
3759 | 3758 |
3760 <itemizedlist> | 3759 <itemizedlist> |
3761 <listitem> | 3760 <listitem> |
3762 <para> | 3761 <para> |
3763 <emphasis role="bold">subq</emphasis>: | 3762 <emphasis role="bold">subq</emphasis>: |
3764 Of the options which allow you to trade off speed for quality, | 3763 Из всех опций, позволяющих выбирать между скоростью и качеством, |
3765 <option>subq</option> and <option>frameref</option> (see below) are usually | 3764 <option>subq</option> и <option>frameref</option> (смотрите ниже), пожалуй, |
3766 by far the most important. | 3765 самые важные. |
3767 If you are interested in tweaking either speed or quality, these | 3766 Если вы заинтересованы в тонкой настройке либо скорости, лио качества, |
3768 are the first options you should consider. | 3767 эти две - первое, с чего вам стоит начать. |
3769 On the speed dimension, the <option>frameref</option> and | 3768 С точки зрения скорости, опции <option>frameref</option> и |
3770 <option>subq</option> options interact with each other fairly | 3769 <option>subq</option> очень жестко взаимодействуют друг с другом. |
3771 strongly. | 3770 Опыт показывает, что с одним ссылающимся кадром |
3772 Experience shows that, with one reference frame, | 3771 <option>subq=5</option> (настройка по-умолчанию) расходует на 35% больше |
3773 <option>subq=5</option> (the default setting) takes about 35% more time than | 3772 времени, чем <option>ubq=1</option>. |
3774 <option>subq=1</option>. | 3773 С 6 ссылающимися кадрами эта величина достигает 60%. |
3775 With 6 reference frames, the penalty grows to over 60%. | 3774 Эффект <option>subq</option> на PSNR выглядит довольно постоянным, в отличие |
3776 <option>subq</option>'s effect on PSNR seems fairly constant | 3775 от количества ссылающийся кадров. |
3777 regardless of the number of reference frames. | 3776 Как правило, <option>subq=5</option> достигает значения глобального PSNR |
3778 Typically, <option>subq=5</option> achieves 0.2-0.5 dB higher global | 3777 на 0.2-0.5 дБ большего, чем при <option>subq=1</option>. |
3779 PSNR in comparison <option>subq=1</option>. | 3778 Обычно этого достаточно, чтобы заметить. |
3780 This is usually enough to be visible. | |
3781 </para> | 3779 </para> |
3782 | 3780 |
3783 <para> | 3781 <para> |
3784 <option>subq=6</option> is the slowest, highest quality mode. | 3782 <option>subq=6</option> - это самый медленный режим с лучшим качеством. |
3785 In comparison to <option>subq=5</option>, it usually gains 0.1-0.4 dB | 3783 Если сравнивать с <option>subq=5</option>, он обычно дает на 0.1-0.4 дБ |
3786 global PSNR with speed costs varying from 25%-100%. | 3784 больший глобальный PSNR ценой потери 25%-100% скорости. |
3787 Unlike other levels of <option>subq</option>, the behavior of | 3785 В отличие от остальных уровней <option>subq</option>, поведение |
3788 <option>subq=6</option> does not depend much on <option>frameref</option> | 3786 <option>subq=6</option> не так сильно зависит от <option>frameref</option> |
3789 and <option>me</option>. Instead, the effectiveness of <option>subq=6 | 3787 и <option>me</option>. Вместо этого, эффективность <option>subq=6 |
3790 </option> depends mostly upon the number of B-frames used. In normal | 3788 </option> по большей части зависит от количества используемых B-кадров. При |
3791 usage, this means <option>subq=6</option> has a large impact on both speed | 3789 обычном использовании это означает, что <option>subq=6</option> в сложных, |
3792 and quality in complex, high motion scenes, but it may not have much effect | 3790 высокодинамичных сценах имеет большое влияние как на скорость, так и на |
3793 in low-motion scenes. Note that it is still recommended to always set | 3791 качество, но в сценах с малым количествах движения она не имеет такого |
3794 <option>bframes</option> to something other than zero (see below). | 3792 эффекта. Имейте в виду, что по-прежнему рекомендуется всегда устанавливать |
3793 <option>bframes</option> в значение, отличное от нуля (смотрите далее). | |
3795 </para> | 3794 </para> |
3796 </listitem> | 3795 </listitem> |
3797 <listitem> | 3796 <listitem> |
3798 <para> | 3797 <para> |
3799 <emphasis role="bold">frameref</emphasis>: | 3798 <emphasis role="bold">frameref</emphasis>: |
3800 <option>frameref</option> is set to 1 by default, but this | 3799 <option>frameref</option> по-умолчанию установлена в 1, но это не значит, что |
3801 should not be taken to imply that it is reasonable to set it to 1. | 3800 ее стоит устанавливать в 1. |
3802 Merely raising <option>frameref</option> to 2 gains around | 3801 Только увеличение <option>frameref</option> до 2 дает прирост PSNR примерно |
3803 0.15dB PSNR with a 5-10% speed penalty; this seems like a good tradeoff. | 3802 на 0.15дБ за счет уменьшения скорости на 5-10%; похоже, что это неплохая цена. |
3804 <option>frameref=3</option> gains around 0.25dB PSNR over | 3803 <option>frameref=3</option> дает примерно 0.25dB PSNR сверх |
3805 <option>frameref=1</option>, which should be a visible difference. | 3804 <option>frameref=1</option>, что должно быть видимой разницей. |
3806 <option>frameref=3</option> is around 15% slower than | 3805 <option>frameref=3</option> медленнее примерно на 15%, чем |
3807 <option>frameref=1</option>. | 3806 <option>frameref=1</option>. |
3808 Unfortunately, diminishing returns set in rapidly. | 3807 К сожалению, улучшение очень быстро сходит на нет. |
3809 <option>frameref=6</option> can be expected to gain only | 3808 От <option>frameref=6</option> можно ожидать прироста PSNR лишь на |
3810 0.05-0.1 dB over <option>frameref=3</option> at an additional | 3809 0.05-0.1 дБ по сравнению с <option>frameref=3</option> с дополнительной |
3811 15% speed penalty. | 3810 потерей 15% скорости. |
3812 Above <option>frameref=6</option>, the quality gains are | 3811 Выше <option>frameref=6</option> качество обычно увеличивается очень незначительно |
3813 usually very small (although you should keep in mind throughout | 3812 (хотя на всем протяжении этой дискуссии вам следует иметь в виду, оно может |
3814 this whole discussion that it can vary quite a lot depending on your source). | 3813 значительно изменяться в зависимости от исходного материала). |
3815 In a fairly typical case, <option>frameref=12</option> | 3814 В довольно типичном случае <option>frameref=12</option> улучшит глобальный |
3816 will improve global PSNR by a tiny 0.02dB over | 3815 PSNR всего на 0.02дБ по сравнению с <option>frameref=6</option>, |
3817 <option>frameref=6</option>, at a speed cost of 15%-20%. | 3816 ценой 15%-20% скорости. |
3818 At such high <option>frameref</option> values, the only really | 3817 При таких высоких значениях <option>frameref</option>, единственная |
3819 good thing that can be said is that increasing it even further will | 3818 действительно хорошая вешь, о которой может быть сказано, состоит в том, что |
3820 almost certainly never <emphasis role="bold">harm</emphasis> | 3819 дальнейшее ее увеличение почти никогда не будет <emphasis |
3821 PSNR, but the additional quality benefits are barely even | 3820 role="bold">вредить</emphasis> PSNR, но увеличение качества будет трудно даже |
3822 measurable, let alone perceptible. | 3821 измерить, не говоря уже о его заметности. |
3823 </para> | 3822 </para> |
3824 <note><title>Note:</title> | 3823 <note><title>Замечание:</title> |
3825 <para> | 3824 <para> |
3826 Raising <option>frameref</option> to unnecessarily high values | 3825 Увеличение <option>frameref</option> до чрезмерно высоких значений |
3827 <emphasis role="bold">can</emphasis> and | 3826 <emphasis role="bold">может</emphasis> и |
3828 <emphasis role="bold">usually does</emphasis> | 3827 <emphasis role="bold">обычно наносит</emphasis> |
3829 hurt coding efficiency if you turn CABAC off. | 3828 вред эффективности кодирования, если CABAC отключен. |
3830 With CABAC on (the default behavior), the possibility of setting | 3829 С задействованным CABAC (настройка по-умолчанию), возможность установки |
3831 <option>frameref</option> "too high" currently seems too remote | 3830 <option>frameref</option> "слишком высоким" на данный момент выглядит слишком |
3832 to even worry about, and in the future, optimizations may remove | 3831 далекой, чтобы об этом беспокоиться, а в будущем оптимизации могут вообще |
3833 the possibility altogether. | 3832 убрать такую возможность. |
3834 </para></note> | 3833 </para></note> |
3835 <para> | 3834 <para> |
3836 If you care about speed, a reasonable compromise is to use low | 3835 Если вас заботит скорость, разумным компромиссом будет использовать низкие |
3837 <option>subq</option> and <option>frameref</option> values on | 3836 значения <option>subq</option> и <option>frameref</option> в первом проходе, а |
3838 the first pass, and then raise them on the second pass. | 3837 <!-- FIXME is translation correct ? --> |
3839 Typically, this has a negligible negative effect on the final | 3838 затем увеличить из во втором: Вы, возможно, потеряете вплоть до 0.1дБ PSNR, |
3840 quality: You will probably lose well under 0.1dB PSNR, which | 3839 что может быть достаточно малым значением, чтобы его заметить. |
3841 should be much too small of a difference to see. | 3840 Однако, различные значения <option>frameref</option> могут |
3842 However, different values of <option>frameref</option> can | 3841 иногда повлиять на решение о выборе типа кадра. |
3843 occasionally affect frametype decision. | 3842 Скорее всего, это довольно редкие крайние случаи, но если вы хотите точно |
3844 Most likely, these are rare outlying cases, but if you want to | 3843 уверены, подумайте, содержит ли ваше видео полноэкранные |
3845 be pretty sure, consider whether your video has either | 3844 <!-- FIXME is translation correct? --> |
3846 fullscreen repetitive flashing patterns or very large temporary | 3845 периодически вспыхивающие изображения или очень большие паузы, которые могут стать |
3847 occlusions which might force an I-frame. | 3846 причиной принудительной вставки I-кадра. |
3848 Adjust the first-pass <option>frameref</option> so it is large | 3847 Настройте <option>frameref</option> в первом проходе так, чтобы |
3849 enough to contain the duration of the flashing cycle (or occlusion). | 3848 она была достаточно большой, чтобы содержать длительность цикла вспыхивания |
3850 For example, if the scene flashes back and forth between two images | 3849 (или паузы). |
3851 over a duration of three frames, set the first pass | 3850 Например, если сцены вспыхивает и гаснет в течении двух кадров из трех, |
3852 <option>frameref</option> to 3 or higher. | 3851 установите <option>frameref</option> равным 3 или выше. |
3853 This issue is probably extremely rare in live action video material, | 3852 Эта проблема, возможно, очень редко появляется для живой съемки, но она иногда |
3854 but it does sometimes come up in video game captures. | 3853 появляется при записи видео игр. |
3855 </para> | 3854 </para> |
3856 </listitem> | 3855 </listitem> |
3857 <listitem> | 3856 <listitem> |
3858 <para> | 3857 <para> |
3859 <emphasis role="bold">me</emphasis>: | 3858 <emphasis role="bold">me</emphasis>: |
3860 This option is for choosing the motion estimation search method. | 3859 Эта опция используется для выбора метода оценки движения. |
3861 Altering this option provides a straightforward quality-vs-speed | 3860 Изменение этой опции оказывает прямое влияние на соотношение |
3862 tradeoff. <option>me=dia</option> is only a few percent faster than | 3861 скорость-качество. <option>me=dia</option> лишь на несколько процентов |
3863 the default search, at a cost of under 0.1dB global PSNR. The | 3862 быстрее, чем поиск по-умолчанию ценой не больше 0.1дБ глобального PSNR. |
3864 default setting (<option>me=hex</option>) is a reasonable tradeoff | 3863 Значение по-умолчанию (<option>me=hex</option>) разумный выбор между скоростью |
3865 between speed and quality. <option>me=umh</option> gains a little under | 3864 и качеством. <option>me=umh</option> немного, вплоть до 0.1дБ, улучшает |
3866 0.1dB global PSNR, with a speed penalty that varies depending on | 3865 глобальный PSNR, соответствующее падение скорости зависит меняется и |
3867 <option>frameref</option>. At high values of | 3866 зависит от <option>frameref</option>. С высокими значениями |
3868 <option>frameref</option> (e.g. 12 or so), <option>me=umh</option> | 3867 <option>frameref</option> (например, 12 или около того), <option>me=umh</option> |
3869 is about 40% slower than the default <option> me=hex</option>. With | 3868 примерно на 40% медленнее, чем настройка по-умолчанию <option> me=hex</option>. |
3870 <option>frameref=3</option>, the speed penalty incurred drops to | 3869 С <option>frameref=3</option>, падение скорости уменьшается до 25%-30%. |
3871 25%-30%. | |
3872 </para> | 3870 </para> |
3873 <para> | 3871 <para> |
3874 <option>me=esa</option> uses an exhaustive search that is too slow for | 3872 <option>me=esa</option> использует исчерпывающий поиск, который работает |
3875 practical use. | 3873 слишком медленно для практического применения. |
3876 </para> | 3874 </para> |
3877 </listitem> | 3875 </listitem> |
3878 <listitem><para> | 3876 <listitem><para> |
3879 <emphasis role="bold">partitions=all</emphasis>: | 3877 <emphasis role="bold">partitions=all</emphasis>: |
3880 This option enables the use of 8x4, 4x8 and 4x4 subpartitions in | 3878 Эта опция задействует использование сегментов 8x4, 4x8 и 4x4 в предсказанных |
3881 predicted macroblocks (in addition to the default partitions). | 3879 макроблоках (в дополнение к стандартным). |
3882 Enabling it results in a fairly consistent | 3880 Ее включение приведет к довольно постоянной 10%-15% потере в скорости. |
3883 10%-15% loss of speed. This option is rather useless in source | 3881 Эта опция практически бесполезна для исходного материала, содержащего только |
3884 containing only low motion, however in some high-motion source, | 3882 небольшое движение, тем не менее, для некоторого высокодинамичного, |
3885 particularly source with lots of small moving objects, gains of | 3883 особенно с большим количеством мелких движущихся объектов, следует ожидать |
3886 about 0.1dB can be expected. | 3884 прироста в 0.1дБ. |
3887 </para></listitem> | 3885 </para></listitem> |
3888 <listitem> | 3886 <listitem> |
3889 <para> | 3887 <para> |
3890 <emphasis role="bold">bframes</emphasis>: | 3888 <emphasis role="bold">bframes</emphasis>: |
3891 If you are used to encoding with other codecs, you may have found | 3889 Если вы занимались кодированием с другими кодеками, то могли заметить, что |
3892 that B-frames are not always useful. | 3890 B-кадры не всегда полезны. |
3893 In H.264, this has changed: there are new techniques and block | 3891 В H.264 это изменилось: есть новые техники и типы блоков, возможные в B-кадрах. |
3894 types that are possible in B-frames. | 3892 Обычно, даже примитивный алгоритм выбора B-кадров может дать значимую |
3895 Usually, even a naive B-frame choice algorithm can have a | 3893 выгоду для PSNR. |
3896 significant PSNR benefit. | 3894 Интересно заметить, что использование B-кадров обычно отчасти ускоряет второй |
3897 It is interesting to note that using B-frames usually speeds up | 3895 проход, а также может ускорить однопроходное кодирование, если отключено |
3898 the second pass somewhat, and may also speed up a single | 3896 адаптивное принятие решения о B-кадрах. |
3899 pass encode if adaptive B-frame decision is turned off. | |
3900 </para> | 3897 </para> |
3901 <para> | 3898 <para> |
3902 With adaptive B-frame decision turned off | 3899 С отключенным адаптивным принятием решения о B-кадрах |
3903 (<option>x264encopts</option>'s <option>nob_adapt</option>), | 3900 (<option>x264encopts</option>'ой <option>nob_adapt</option>), |
3904 the optimal value for this setting is usually no more than | 3901 оптимальное значение этой опции обычно не превышает |
3905 <option>bframes=1</option>, or else high-motion scenes can suffer. | 3902 <option>bframes=1</option>, иначе пострадают высокодинамичные сцены. |
3906 With adaptive B-frame decision on (the default behavior), it is | 3903 С включенным адаптивным принятием решения о B-кадрах (поведение по-умолчанию), |
3907 safe to use higher values; the encoder will reduce the use of | 3904 можно безопасно использовать более высокие значения; кодировщик уменьшит |
3908 B-frames in scenes where they would hurt compression. | 3905 количество B-кадров в сценах, где они повредят сжатию. |
3909 The encoder rarely chooses to use more than 3 or 4 B-frames; | 3906 Кодировщик редко решает использовать больше, чем 3 или 4 B-кадра; |
3910 setting this option any higher will have little effect. | 3907 установка этой опции в любое более высокое значение не будет иметь большого |
3908 эффекта. | |
3911 </para> | 3909 </para> |
3912 </listitem> | 3910 </listitem> |
3913 <listitem> | 3911 <listitem> |
3914 <para> | 3912 <para> |
3915 <emphasis role="bold">b_adapt</emphasis>: | 3913 <emphasis role="bold">b_adapt</emphasis>: |
3916 Note: This is on by default. | 3914 Заметьте: она включена по-умолчанию. |
3917 </para> | 3915 </para> |
3918 <para> | 3916 <para> |
3919 With this option enabled, the encoder will use a reasonably fast | 3917 Когда эта опция включена, кодировщик будет использовать разумно |
3920 decision process to reduce the number of B-frames used in scenes that | 3918 быстрый процесс принятия решения для уменьшения количества B-кадров, |
3921 might not benefit from them as much. | 3919 используемых в сценах, которые от этого не сильно выиграют. |
3922 You can use <option>b_bias</option> to tweak how B-frame-happy | 3920 Вы можете использовать <option>b_bias</option> для тонкой настройки того, |
3923 the encoder is. | 3921 насколько "счастлив" будет кодировщик использованию B-кадров. |
3924 The speed penalty of adaptive B-frames is currently rather modest, | 3922 Потеря в скорости при использовании адаптивных B-кадров на данный момент, |
3925 but so is the potential quality gain. | 3923 пожалуй, умереннее, но таково же и потенциальное улучшение качества. |
3926 It usually does not hurt, however. | 3924 Тем не менее, хуже от этого обычно не становится. |
3927 Note that this only affects speed and frametype decision on the | 3925 Заметьте, что эта опция влияет на скорость и решение о типе кадра только в первом |
3928 first pass. | 3926 проходе. |
3929 <option>b_adapt</option> and <option>b_bias</option> have no | 3927 <option>b_adapt</option> и <option>b_bias</option> не имеют эффекта в |
3930 effect on subsequent passes. | 3928 последующих проходах. |
3931 </para> | 3929 </para> |
3932 </listitem> | 3930 </listitem> |
3933 <listitem><para> | 3931 <listitem><para> |
3934 <emphasis role="bold">b_pyramid</emphasis>: | 3932 <emphasis role="bold">b_pyramid</emphasis>: |
3935 You might as well enable this option if you are using >=2 B-frames; | 3933 С тем же успехом вы можете включить эту опцию, если используете >=2 B-кадров; |
3936 as the man page says, you get a little quality improvement at no | 3934 вы получите небольшое улучшение качества без потери в скорости, как и говорит |
3937 speed cost. | 3935 man руководство. |
3938 Note that these videos cannot be read by libavcodec-based decoders | 3936 Имейте в виду, что такое видео не может быть прочитано основанными на |
3939 older than about March 5, 2005. | 3937 libavcodec декодерами, созданными ранее, чем примерно 5 Марта 2005. |
3940 </para></listitem> | 3938 </para></listitem> |
3941 <listitem> | 3939 <listitem> |
3942 <para> | 3940 <para> |
3943 <emphasis role="bold">weight_b</emphasis>: | 3941 <emphasis role="bold">weight_b</emphasis>: |
3944 In typical cases, there is not much gain with this option. | 3942 В обычных случаях эта опция не дает большого улучшения. |
3945 However, in crossfades or fade-to-black scenes, weighted | 3943 Однако, в проявляющихся или затухающих сценах взвешенное предсказание дает |
3946 prediction gives rather large bitrate savings. | 3944 довольно большую экономию битпотока. |
3947 In MPEG-4 ASP, a fade-to-black is usually best coded as a series | 3945 В MPEG-4 ASP затухание обычно лучше кодируется последовательностью дорогих |
3948 of expensive I-frames; using weighted prediction in B-frames | 3946 I-кадров; используя взвешенное предсказание в B-кадрах делает возможным |
3949 makes it possible to turn at least some of these into much smaller | 3947 преобразовать хотя бы часть из них в значительно более маленькие B-Кадры. |
3950 B-frames. | 3948 Потери в скорости кодирования минимальны, поскольку не требуется делать |
3951 Encoding time cost is minimal, as no extra decisions need to be made. | 3949 дополнительные принятия решений. |
3952 Also, contrary to what some people seem to guess, the decoder | 3950 <!-- FIXME is translation correct --> |
3953 CPU requirements are not much affected by weighted prediction, | 3951 Вдобавок, вопреки возможным предположениям, взвешенное предсказание не так |
3954 all else being equal. | 3952 сильно влияет на требования декодера к CPU, все остальное же полностью совпадает. |
3955 </para> | 3953 </para> |
3956 <para> | 3954 <para> |
3957 Unfortunately, the current adaptive B-frame decision algorithm | 3955 К сожалению, текущий алгоритм адаптивного принятия решений о B-Кадрах имеет |
3958 has a strong tendency to avoid B-frames during fades. | 3956 твердую склонность к избеганию использования B-кадров при затуханиях. |
3959 Until this changes, it may be a good idea to add | 3957 До тех пор, пока это не изменится, хорошей идеей, возможно, будет добавить |
3960 <option>nob_adapt</option> to your x264encopts, if you expect | 3958 <option>nob_adapt</option> к x264encopts, если предполагаете, что затухания |
3961 fades to have a large effect in your particular video | 3959 будут иметь сильный эффект на ваш конкретный видеоклип. |
3962 clip. | |
3963 </para> | 3960 </para> |
3964 </listitem> | 3961 </listitem> |
3965 </itemizedlist> | 3962 </itemizedlist> |
3966 </sect3> | 3963 </sect3> |
3967 | 3964 |
3968 | 3965 |
3969 <sect3 id="menc-feat-x264-encoding-options-misc-preferences"> | 3966 <sect3 id="menc-feat-x264-encoding-options-misc-preferences"> |
3970 <title>Options pertaining to miscellaneous preferences</title> | 3967 <title>Опции, относящиеся к различным предпочтениям</title> |
3971 <itemizedlist> | 3968 <itemizedlist> |
3972 <listitem> | 3969 <listitem> |
3973 <para> | 3970 <para> |
3974 <emphasis role="bold">Two pass encoding</emphasis>: | 3971 <emphasis role="bold">Двухпроходное кодирование</emphasis>: |
3975 Above, it was suggested to always use two pass encoding, but there | 3972 Выше советовалось всегда использовать кдирование в два прохода, но все же |
3976 are still reasons for not using it. For instance, if you are capturing | 3973 существуют причины этого не делать. Например, если вы захватываете TV |
3977 live TV and encoding in realtime, you are forced to use single-pass. | 3974 трансляцию и кодируете в реальном времени, придется использовать однопроходный |
3978 Also, one pass is obviously faster than two passes; if you use the | 3975 режим. К тому же один проход очевидно быстрее, чем два; если вы используете |
3979 exact same set of options on both passes, two pass encoding is almost | 3976 точно такой же набор опций в обоих случаях, двухпроходной режим медленнее |
3980 twice as slow. | 3977 вдвое. |
3981 </para> | 3978 </para> |
3982 <para> | 3979 <para> |
3983 Still, there are very good reasons for using two pass encoding. For | 3980 Все же существует очень хорошие причины использовать кодирование в два |
3984 one thing, single pass ratecontrol is not psychic, and it often makes | 3981 прохода. Во-первых, управление битпотоком при однопроходного режима не |
3985 unreasonable choices because it cannot see the big picture. For example, | 3982 является телепатом и часто делает необоснованный выбор, потому что не может |
3986 suppose you have a two minute long video consisting of two distinct | 3983 видеть общую картину. Например, предположим, что вы имеете двухминутное видео, |
3987 halves. The first half is a very high-motion scene lasting 60 seconds | 3984 состоящее из двух независимых частей. Первая половина - очень динамичная |
3988 which, in isolation, requires about 2500kbps in order to look decent. | 3985 сцена, продолжающаяся 60 секунд и требующая сама по себе битпоток примерно |
3989 Immediately following it is a much less demanding 60-second scene | 3986 2500 кбит/сек, чтобы прилично выглядеть. Сразу за ней следует менее |
3990 that looks good at 300kbps. Suppose you ask for 1400kbps on the theory | 3987 требовательная 60-секундная сцена, которая хорошо выглядит при 300 кбит/сек. |
3991 that this is enough to accomodate both scenes. Single pass ratecontrol | 3988 Предположим, вы запросили битпоток 14000 кбит/сек; в теории этого достаточно |
3992 will make a couple of "mistakes" in such a case. First of all, it | 3989 для удовлетворения потребностей обеих сцен. |
3993 will target 1400kbps in both segments. The first segment may end up | 3990 В этом случае управление битпотоком в однопроходном режиме сделает пару "ошибок". |
3994 heavily overquantized, causing it to look unacceptably and unreasonably | 3991 Во-первых, оно установит битпоток в 1400 кбит/сек для обеих частей. Первая |
3995 blocky. The second segment will be heavily underquantized; it may look | 3992 часть может оказаться чрезмерно квантованной, что приведет к |
3996 perfect, but the bitrate cost of that perfection will be completely | 3993 недопустимому и неоправданно блочному изображению. Вторая часть будет |
3997 unreasonable. What is even harder to avoid is the problem at the | 3994 недостаточно квантованной; она может выглядеть отлично, но цена битпотока для |
3998 transition between the two scenes. The first seconds of the low motion | 3995 этого качества будет полностью неоправданной. |
3999 half will be hugely over-quantized, because the ratecontrol is still | 3996 Чего намного труднее избежать, так это проблемы перехода между двумя |
4000 expecting the kind of bitrate requirements it met in the first half | 3997 сценами. В первых секундах малодинамичной части квантователь будет чрезвычайно |
4001 of the video. This "error period" of heavily over-quantized low motion | 3998 превышен, потому что управление битпотоком все еще ожидает встретить такие же |
4002 will look jarringly bad, and will actually use less than the 300kbps | 3999 требования к битпотоку как и в первой части. Этот "ошибочный период" с |
4003 it would have taken to make it look decent. There are ways to | 4000 чрезвычайно превышенным квантованием будет выглядеть раздражающе неприятно и |
4004 mitigate the pitfalls of single-pass encoding, but they may tend to | 4001 использовать на самом деле меньше, чем 300 кбит/сек, требуемых ему для того, |
4005 increase bitrate misprediction. | 4002 чтобы прилично выглядеть. Существуют способы смягчить эффект от подобных |
4003 подводных камней однопроходного режима, но они могут иметь склонность к | |
4004 усилению неверного предсказания битпотока. | |
4006 </para> | 4005 </para> |
4007 <para> | 4006 <para> |
4008 Multipass ratecontrol can offer huge advantages over a single pass. | 4007 Многопроходное кодирование может предложить огромные преимущества по сравнению |
4009 Using the statistics gathered from the first pass encode, the encoder | 4008 с однопроходным. Используя статистику, собранную при первом проходе, |
4010 can estimate, with reasonable accuracy, the "cost" (in bits) of | 4009 кодировщик может оценить, с разумной точностью, "стоимость" (в битах) |
4011 encoding any given frame, at any given quantizer. This allows for | 4010 кодирования любого заданного кадра при любом заданном квантователе. |
4012 a much more rational, better planned allocation of bits between the | 4011 Это делает возможным намного более рациональное, лучше спланированное |
4013 expensive (high-motion) and cheap (low-motion) scenes. See | 4012 распределение битов между дорогими (высокодинамичными) и дешевыми |
4014 <option>qcomp</option> below for some ideas on how to tweak this | 4013 (малодинамичными) сценами. Смотрите <option>qcomp</option> ниже, чтобы узнать |
4015 allocation to your liking. | 4014 некоторые идеи о том, как можно это распределение настроить по вашему вкусу. |
4016 </para> | 4015 </para> |
4017 <para> | 4016 <para> |
4018 Moreover, two passes need not take twice as long as one pass. You can | 4017 Более того, два прохода занимают не двойное время по сравнению с одним. |
4019 tweak the options in the first pass for higher speed and lower quality. | 4018 Вы можете настроить опции первого прохода на более быструю скорость и низкое |
4020 If you choose your options well, you can get a very fast first pass. | 4019 качество. Если хорошо выберете опции, вы получите очень быстрый первый проход. |
4021 The resulting quality in the second pass will be slightly lower because size | 4020 Полученное качество во втором проходе будет несколько ниже, потому что |
4022 prediction is less accurate, but the quality difference is normally much | 4021 предсказание размера менее точно, но разница в качестве обычно слишком мала, |
4023 too small to be visible. Try, for example, adding | 4022 чтобы быть заметной. Попробуйте, например, добавить |
4024 <option>subq=1:frameref=1</option> to the first pass | 4023 <option>subq=1:frameref=1</option> в <option>x264encopts</option> первого |
4025 <option>x264encopts</option>. Then, on the second pass, use slower, | 4024 прохода. Затем, при втором проходе, используйте более медленные, с лучшим |
4026 higher-quality options: | 4025 качеством опции: |
4027 <option>subq=6:frameref=15:partitions=all:me=umh</option> | 4026 <option>subq=6:frameref=15:partitions=all:me=umh</option> |
4028 </para> | 4027 </para> |
4029 </listitem> | 4028 </listitem> |
4030 <listitem><para> | 4029 <listitem><para> |
4031 <emphasis role="bold">Three pass encoding</emphasis>? | 4030 <emphasis role="bold">Кодирование в три прохода</emphasis>? |
4032 x264 offers the ability to make an arbitrary number of consecutive | 4031 x264 предоставляет возможность делать желаемое количество последовательных |
4033 passes. If you specify <option>pass=1</option> on the first pass, | 4032 проходов. Если вы указали <option>pass=1</option> при первом проходе, |
4034 then use <option>pass=3</option> on a subsequent pass, the subsequent | 4033 используйте затем <option>pass=3</option> в последующем проходе, этот проход |
4035 pass will both read the statistics from the previous pass, and write | 4034 будет одновременно читать статистику предыдущего прохода и записывать ее |
4036 its own statistics. An additional pass following this one will have | 4035 собственную. Дополнительный проход, следующий за этим, будет иметь очень |
4037 a very good base from which to make highly accurate predictions of | 4036 хорошую основу для осуществления очень точных предсказаний размеров кадров при |
4038 framesizes at a chosen quantizer. In practice, the overall quality | 4037 выбранном квантователе. На практике, общее улучшение качества от использования |
4039 gain from this is usually close to zero, and quite possibly a third | 4038 этого режима близко к нулю и, вполне возможно, третий проход приведет к |
4040 pass will result in slightly worse global PSNR than the pass before | 4039 немного худшему глобальному PSNR, чем у предыдущего прохода. |
4041 it. In typical usage, three passes help if you get either bad bitrate | 4040 При обычном использовании три прохода помогают, если вы при двух проходах |
4042 prediction or bad looking scene transitions when using only two passes. | 4041 получаете либо плохое предсказание битпотока, либо плохо выглядящие переходы |
4043 This is somewhat likely to happen on extremely short clips. There are | 4042 между сценами. Это в точности то, что наверняка будет происходить на очень |
4044 also a few special cases in which three (or more) passes are handy | 4043 коротких клипах. Существуют также особые случаи, когда три (или более) |
4045 for advanced users, but for brevity, this guide omits discussing those | 4044 проходом удобны для продвинутых пользователей, но, для краткости, это |
4046 special cases. | 4045 руководство не включает в себя описание этих особых случаев. |
4047 </para></listitem> | 4046 </para></listitem> |
4048 <listitem><para> | 4047 <listitem><para> |
4049 <emphasis role="bold">qcomp</emphasis>: | 4048 <emphasis role="bold">qcomp</emphasis>: |
4050 <option>qcomp</option> trades off the number of bits allocated | 4049 <option>qcomp</option> управляет соотношением количества бит, отданных |
4051 to "expensive" high-motion versus "cheap" low-motion frames. At | 4050 "дорогим" высокодинамичным и "дешевым" малодинамичным кадрам. Один крайний |
4052 one extreme, <option>qcomp=0</option> aims for true constant | 4051 случай, <option>qcomp=0</option>, предназначен для истинно постоянного |
4053 bitrate. Typically this would make high-motion scenes look completely | 4052 битпотока. Обычно это сделает высокодинамичные сцены выглядящими просто |
4054 awful, while low-motion scenes would probably look absolutely | 4053 ужасно, в то время как малодинамичные сцены будут, возможно, выглядеть |
4055 perfect, but would also use many times more bitrate than they | 4054 отлично, но при этом будут использовать во много раз больший битпоток, чем им |
4056 would need in order to look merely excellent. At the other extreme, | 4055 необходимо, чтобы выглядеть просто великолепно. |
4057 <option>qcomp=1</option> achieves nearly constant quantization parameter | 4056 Другая крайность, <option>qcomp=1</option>, добивается примерно одинакового |
4058 (QP). Constant QP does not look bad, but most people think it is more | 4057 параметра квантования (QP). Постоянный QP не выглядит ужасно, но большинство |
4059 reasonable to shave some bitrate off of the extremely expensive scenes | 4058 людей думают, что более разумно частично снизить битпоток в сильно |
4060 (where the loss of quality is not as noticeable) and reallocate it to | 4059 дорогих сценах (где потеря качества не очень заметна) и перераспределить их в |
4061 the scenes that are easier to encode at excellent quality. | 4060 сцены, которые легче закодировать с отличным качеством. |
4062 <option>qcomp</option> is set to 0.6 by default, which may be slightly | 4061 <option>qcomp</option> по-умолчанию установлена в 0.6, что по мнению многих |
4063 low for many peoples' taste (0.7-0.8 are also commonly used). | 4062 людей может быть несколько мало (также часто используется 0.7-0.8). |
4064 </para></listitem> | 4063 </para></listitem> |
4065 <listitem><para> | 4064 <listitem><para> |
4066 <emphasis role="bold">keyint</emphasis>: | 4065 <emphasis role="bold">keyint</emphasis>: |
4067 <option>keyint</option> is solely for trading off file seekability against | 4066 <option>keyint</option> - единственная возможность выбора между удобством |
4068 coding efficiency. By default, <option>keyint</option> is set to 250. In | 4067 перемещения по файлу и эффективностью кодирования. По-умолчанию |
4069 25fps material, this guarantees the ability to seek to within 10 seconds | 4068 <option>keyint</option> установлена в 250. В материале с 25fps это гарантирует |
4070 precision. If you think it would be important and useful to be able to | 4069 возможность перемещения с точностью до 10 секунд. Если вы считаете, что более |
4071 seek within 5 seconds of precision, set <option>keyint=125</option>; | 4070 важным и полезным будет перемещение с точностью до 5 секунд, установите |
4072 this will hurt quality/bitrate slightly. If you care only about quality | 4071 <option>keyint=125</option>; это немного ухудшит качество/битпоток. Если вы |
4073 and not about seekability, you can set it to much higher values | 4072 заботитесь только о качестве, но не о перемещаемости, вы можете установить |
4074 (understanding that there are diminishing returns which may become | 4073 значение этой опции в более высокое значение (понимая, что улучшение будет |
4075 vanishingly low, or even zero). The video stream will still have seekable | 4074 убывающим, вплоть до исчезающе малого или даже нулевого). Видео поток |
4076 points as long as there are some scene changes. | 4075 по-прежнему будет иметь точки перемещения, пока в нем есть какие-то изменения |
4076 сцен. | |
4077 </para></listitem> | 4077 </para></listitem> |
4078 <listitem> | 4078 <listitem> |
4079 <para> | 4079 <para> |
4080 <emphasis role="bold">deblock</emphasis>: | 4080 <emphasis role="bold">deblock</emphasis>: |
4081 This topic is going to be a bit controversial. | 4081 Этот раздел может быть несколько спорным. |
4082 </para> | 4082 </para> |
4083 <para> | 4083 <para> |
4084 H.264 defines a simple deblocking procedure on I-blocks that uses | 4084 H.264 определяет простую процедуру удаления блочности в I-блоках, которая |
4085 pre-set strengths and thresholds depending on the QP of the block | 4085 использует предустановленные степени обработки и пороговые значения в |
4086 in question. | 4086 зависимости от QP интересующего блока. |
4087 By default, high QP blocks are filtered heavily, and low QP blocks | 4087 По-умолчанию, блоки с высоким QP обрабатываются сильнее, а в блоках с низким |
4088 are not deblocked at all. | 4088 QP удаление блочности вообще не производится. |
4089 The pre-set strengths defined by the standard are well-chosen and | 4089 Предустановленые степени обработки, определенные стандартом, тщательно подобраны |
4090 the odds are very good that they are PSNR-optimal for whatever | 4090 и имеют хорошие шансы быть PSNR-оптимальными для любого видео, которое вы |
4091 video you are trying to encode. | 4091 пытаетесь кодировать. |
4092 The <option>deblock</option> allow you to specify offsets to the preset deblocking | 4092 Опция <option>deblock</option> позволяет указать смещения предустановленных |
4093 thresholds. | 4093 пороговых значений деблокинга. |
4094 </para> | 4094 </para> |
4095 <para> | 4095 <para> |
4096 Many people seem to think it is a good idea to lower the deblocking | 4096 Похоже, многие думают, что хорошей идеей является значительное уменьшение силы |
4097 filter strength by large amounts (say, -3). | 4097 воздействия фильтра деблокинга (читай, -3). |
4098 This is however almost never a good idea, and in most cases, | 4098 Это, однако, почти никогда не является хорошей идеей, и, люди, это делающие, в большинстве |
4099 people who are doing this do not understand very well how | 4099 случаев не совсем хорошо понимают, как работает удаление |
4100 deblocking works by default. | 4100 блочности по-умолчанию. |
4101 </para> | 4101 </para> |
4102 <para> | 4102 <para> |
4103 The first and most important thing to know about the in-loop | 4103 Первая и самая важная вещь, которую нужно знать о in-loop фильтре удаления |
4104 deblocking filter is that the default thresholds are almost always | 4104 блочности состоит в том, что пороговые значения по-умолчанию практически |
4105 PSNR-optimal. | 4105 всегда PSNR-оптимальны. |
4106 In the rare cases that they are not optimal, the ideal offset is | 4106 В редких случаях, где они неоптимальны, идеальное смещение будет плюс минус 1. |
4107 plus or minus 1. | 4107 Изменение параметров деблокинга на большие значения фактически гарантирует |
4108 Adjusting deblocking parameters by a larger amount is almost | 4108 ухудшение PSNR. |
4109 guaranteed to hurt PSNR. | 4109 Усиление фильтра размажет больше деталей; ослабление - оставит больше квадратиков. |
4110 Strengthening the filter will smear more details; weakening the | |
4111 filter will increase the appearance of blockiness. | |
4112 </para> | 4110 </para> |
4113 <para> | 4111 <para> |
4114 It is definitely a bad idea to lower the deblocking thresholds if | 4112 По определению плохая идея уменьшать пороги деблокинга, если ваш исходный |
4115 your source is mainly low in spacial complexity (i.e., not a lot | 4113 материал в основном имеет небольшую пространственную сложность (т.е. не имеет |
4116 of detail or noise). | 4114 множества деталей или шума). |
4117 The in-loop filter does a rather excellent job of concealing | 4115 In-loop фильтр делает весьма неплохую работу по сокрытию появляющихся |
4118 the artifacts that occur. | 4116 артефактов. Однако, если исходный материал имеет высокую пространственную |
4119 If the source is high in spacial complexity, however, artifacts | 4117 сложность, артефакты будут практически незаметны. |
4120 are less noticeable. | 4118 Это происходит потому, что ореолы имеют склонность выглядеть как детали или |
4121 This is because the ringing tends to look like detail or noise. | 4119 шум. Зрительное восприятие легко замечает отсутствие деталей, но ему не так |
4122 Human visual perception easily notices when detail is removed, | 4120 легко обратить внимание на неверно изображенный шум. |
4123 but it does not so easily notice when the noise is wrongly | 4121 Когда речь идет о субъективном качестве, шум и детали в некоторой степени |
4124 represented. | 4122 взаимозаменяемы. |
4125 When it comes to subjective quality, noise and detail are somewhat | 4123 Уменьшая силу фильтра удаления блочности, вы скорее всего увеличиваете ошибку, |
4126 interchangeable. | 4124 добавляя ореолы, но глаз этого не замечает, поскольку он путает артефакты с |
4127 By lowering the deblocking filter strength, you are most likely | 4125 деталями. |
4128 increasing error by adding ringing artifacts, but the eye does | |
4129 not notice because it confuses the artifacts with detail. | |
4130 </para> | 4126 </para> |
4131 <para> | 4127 <para> |
4132 This <emphasis role="bold">still</emphasis> does not justify | 4128 Однако, это <emphasis role="bold">по-прежнему</emphasis> не оправдывает |
4133 lowering the deblocking filter strength, however. | 4129 уменьшение силы фильтра. Вы в большинстве случаев можете получить более |
4134 You can generally get better quality noise from postprocessing. | 4130 качественный шум при помощи постобработки. |
4135 If your H.264 encodes look too blurry or smeared, try playing with | 4131 Если результат кодирования при помощи H.264 выглядит слишком смазанным или |
4136 <option>-vf noise</option> when you play your encoded movie. | 4132 размытым, попробуйте поиграть с <option>-vf noise</option>, при |
4137 <option>-vf noise=8a:4a</option> should conceal most mild | 4133 воспроизведении закодированного фильма. |
4138 artifacting. | 4134 <option>-vf noise=8a:4a</option> должна скрыть большинство мелких артефактов. |
4139 It will almost certainly look better than the results you | 4135 Ее результат почти наверняка будет выглядеть лучше, чем полученный при помощи |
4140 would have gotten just by fiddling with the deblocking filter. | 4136 махинаций с фильтром удаления блочности. |
4141 </para> | 4137 </para> |
4142 </listitem> | 4138 </listitem> |
4143 </itemizedlist> | 4139 </itemizedlist> |
4144 </sect3> | 4140 </sect3> |
4145 </sect2> | 4141 </sect2> |
4146 | 4142 |
4147 <!-- ********** --> | 4143 <!-- ********** --> |
4148 | 4144 |
4149 <sect2 id="menc-feat-x264-example-settings"> | 4145 <sect2 id="menc-feat-x264-example-settings"> |
4150 <title>Encoding setting examples</title> | 4146 <title>Примеры настроек кодирования</title> |
4151 | 4147 |
4152 <para> | 4148 <para> |
4153 The following settings are examples of different encoding | 4149 Последующие настройки - это примеры различных комбинаций опций кодирования, |
4154 option combinations that affect the speed vs quality tradeoff | 4150 которые влияют на соотношения скорость-качество при той же величине целевого |
4155 at the same target bitrate. | 4151 битпотока. |
4156 </para> | 4152 </para> |
4157 | 4153 |
4158 <para> | 4154 <para> |
4159 All the encoding settings were tested on a 720x448 @30000/1001 fps | 4155 Все настройки кодирования проверялись на тестовом видео 720x448 @30000/1001 fps |
4160 video sample, the target bitrate was 900kbps, and the machine was an | 4156 с целевым битпотоком 900кбит/сек, на машине AMD-64 3400+ с 2400 МГц и 64-х битном режиме. |
4161 AMD-64 3400+ at 2400 MHz in 64 bits mode. | 4157 Для каждой настройки кодирования указаны измеренная скорость кодирования (в |
4162 Each encoding setting features the measured encoding speed (in | 4158 кадрах в секунду) и потеря PSNR (в дБ) по сравнению с настройкой "очень высокое |
4163 frames per second) and the PSNR loss (in dB) compared to the "very | 4159 качество". Поймите, пожалуйста, что в зависимости от вашего материала, типа |
4164 high quality" setting. | 4160 машины, прогресса разработки вы можете получить сильно отличающиеся результаты. |
4165 Please understand that depending on your source, your machine type | |
4166 and development advancements, you may get very different results. | |
4167 </para> | 4161 </para> |
4168 | 4162 |
4169 <informaltable frame="all"> | 4163 <informaltable frame="all"> |
4170 <tgroup cols="4"> | 4164 <tgroup cols="4"> |
4171 <thead> | 4165 <thead> |
4172 <row> | 4166 <row> |
4173 <entry>Description</entry> | 4167 <entry>Описание</entry> |
4174 <entry>Encoding options</entry> | 4168 <entry>Опции кодирования</entry> |
4175 <entry>speed (in fps)</entry> | 4169 <entry>скорость (в fps)</entry> |
4176 <entry>Relative PSNR loss (in dB)</entry> | 4170 <entry>Относительная потеря PSNR (в дБ)</entry> |
4177 </row> | 4171 </row> |
4178 </thead> | 4172 </thead> |
4179 <tbody> | 4173 <tbody> |
4180 <row> | 4174 <row> |
4181 <entry>Very high quality</entry> | 4175 <entry>Очень высокое качество</entry> |
4182 <entry><option>subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b</option></entry> | 4176 <entry><option>subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b</option></entry> |
4183 <entry>6fps</entry> | 4177 <entry>6fps</entry> |
4184 <entry>0dB</entry> | 4178 <entry>0dB</entry> |
4185 </row> | 4179 </row> |
4186 <row> | 4180 <row> |
4187 <entry>High quality</entry> | 4181 <entry>Высокое качество</entry> |
4188 <entry><option>subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b</option></entry> | 4182 <entry><option>subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b</option></entry> |
4189 <entry>13fps</entry> | 4183 <entry>13fps</entry> |
4190 <entry>-0.89dB</entry> | 4184 <entry>-0.89dB</entry> |
4191 </row> | 4185 </row> |
4192 <row> | 4186 <row> |
4193 <entry>Fast</entry> | 4187 <entry>Быстро</entry> |
4194 <entry><option>subq=4:bframes=2:b_pyramid:weight_b</option></entry> | 4188 <entry><option>subq=4:bframes=2:b_pyramid:weight_b</option></entry> |
4195 <entry>17fps</entry> | 4189 <entry>17fps</entry> |
4196 <entry>-1.48dB</entry> | 4190 <entry>-1.48dB</entry> |
4197 </row> | 4191 </row> |
4198 </tbody> | 4192 </tbody> |