annotate DOCS/xml/ru/encoding-guide.xml @ 21495:679ca24b6f48

r21508: emphasis the fact that leaving black borders really hurts quality
author voroshil
date Tue, 05 Dec 2006 19:49:19 +0000
parents 70b9b7400bc3
children 329b03d67891
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
21495
679ca24b6f48 r21508: emphasis the fact that leaving black borders really hurts quality
voroshil
parents: 21385
diff changeset
2 <!-- synced with r21508 -->
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3 <!-- **Partially** translated -->
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4 <chapter id="encoding-guide">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
5 <title>Кодирование с <application>MEncoder</application></title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
6
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
7 <sect1 id="menc-feat-dvd-mpeg4">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
8 <title>Создание высококачественного MPEG-4 (&quot;DivX&quot;) рипа из DVD фильма</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
9
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
10 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
11 Одним часто задаваемым вопросом является "Как мне сделать рип самого высокого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
12 качества для заданного размера?". Другой вопрос "Как мне создать DVD рип с самым
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
13 высоким возможным качеством? Я не беспокоюсь о размере файла, мне нужно лишь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
14 наилучшее качество.".
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
15 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
16
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
17 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
18 Последний вопрос, похоже, отчасти неверно сформулирован. В конце концов, если
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
19 Вы не беспокоитесь о размере файла, почему бы просто не скопировать весь MPEG-2
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
20 видео поток с DVD? Конечно, ваш AVI файл будет занимать около 5GB,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
21 но если Вы желате наилучшее качество и не волнуетесь о размере, то это,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
22 несомненно, лучшее решение.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
23 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
24
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
25 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
26 В действительности, причиной, по которой Вы хотите перекодировать DVD в MPEG-4,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
27 является именно Ваше <emphasis role="bold">беспокойство</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
28 о размере файла.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
29 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
30
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
31 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
32 Сложно дать универсальный рецепт о создании DVD рипа очень высокого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
33 качества. Необходимо рассмотреть несколько факторов, и Вы должны
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
34 понимать эти детали, иначе Вы, скорее всего, разочаруетесь своими
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
35 результатами. Ниже мы исследуем некоторые из этих вопросов, а затем
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
36 рассмотрим пример. Мы предполагаем, что Вы используете
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
37 <systemitem class="library">libavcodec</systemitem> для кодирования видео,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
38 хотя теория также применима и к другим кодекам.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
39 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
40
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
41 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
42 Если это кажется для Вас слишком сложным, то Вам, пожалуй, следует использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
43 один из многочисленных неплохих фронтендов, указанных в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
44 <ulink url="http://www.mplayerhq.hu/design7/projects.html#mencoder_frontends">разделе MEncoder</ulink>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
45 нашей страницы родственных проектов.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
46 Так Вы должны получить высококачественные рипы без особых размышлений,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
47 поскольку большинство этих утилит разработаны для принятия умных решений за Вас.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
48 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
49
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
50 <sect2 id="menc-feat-dvd-mpeg4-preparing-encode">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
51 <title>Подготовка к кодированию: Идентификация исходного материала и кадровой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
52 частоты</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
53 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
54 Прежде, чем даже задумываться о кодировании фильма, Вам необходимо выполнить
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
55 некоторые предварительные действия.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
56 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
57
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
58 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
59 Первым и наиболее важным шагом перед кодированием должно быть опеределение
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
60 типа содержимого, с которым Вы работате.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
61 Если источником Ваших исходных материалов является DVD или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
62 широковещательное/кабельное/спутниковое TV, оно будет содержаться в одном из
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
63 двух форматов: NTSC для Северной Америки и Японии, PAL для Европы и т.д..
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
64 Однако, важно понимать, что это только форматирование для показа на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
65 телевидении, и оно часто
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
66 <emphasis role="bold">не</emphasis> соответствует
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
67 исходному формату фильма.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
68 Опыт показывает, что NTSC материал существенно более сложен для кодирования,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
69 т.к. в нём содержится больше элементов, которые нужно идентифицировать.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
70 Для проведения удачного кодирования, Вам необходимо знать исходный формат.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
71 Отказ от принятия этого во внимание приведёт к различным дефектам в Вашем
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
72 кодировании, включая безобразные гребешки (артефакты череcстрочной развёртки)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
73 и повторяющиеся или даже потерянные кадры.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
74 Кроме ухудщения картинки, артефакты так же уменьшают эффективность кодирования:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
75 Вы получите худшее качество на единицу битпотока.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
76 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
77
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
78 <sect3 id="menc-feat-dvd-mpeg4-preparing-encode-fps">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
79 <title>Определение кадровой чатоты источника</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
80 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
81 Вот список, содержащий общие типы исходных материалов, где,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
82 преимущественно, можно найти и их свойства:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
83 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
84 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
85 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
86 <emphasis role="bold">Стандартный фильм</emphasis>: Производятся
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
87 для театральных показов на 24 fps [кадр/сек].
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
88 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
89 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
90 <emphasis role="bold">PAL видео</emphasis>: Записывается с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
91 PAL видеокамеры при 50 полях в секунду.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
92 Поле состоит только из чётных или нечётных линий кадра.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
93 Телевидение было разработано для обновления этих полей попеременно,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
94 что используется как вид дешёвого аналогового сжатия.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
95 Человеческий глаз, предположительно, компенсирует это, но однажды
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
96 поняв чересстрочную развёртку, Вы научитесь видеть её и на TV и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
97 Вам больше никогда не понравится телевидение.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
98 Два поля <emphasis role="bold">не</emphasis> составляют
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
99 целый кадр, поскольку они снимаются с задержкой в 1/50 секунды
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
100 и, следовательно, не формируют одно изображение, за исключением случая
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
101 полного отсутсвия движения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
102 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
103 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
104 <emphasis role="bold">NTSC видео</emphasis>: Записывается с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
105 NTSC видеокамеры при 60000/1001 полях в секунду, или 60 полях в секунду
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
106 в эпоху чёрно-белого TV.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
107 В других отношениях аналогично PAL.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
108 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
109 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
110 <emphasis role="bold">Анимация</emphasis>: Обычно рисуется на 24 fps,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
111 но также существуют разновидности со смешанной кадровой частотой.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
112 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
113 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
114 <emphasis role="bold">Компьютерныя графика (CG)</emphasis>: Может
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
115 быть с любой частотой кадров, но некоторые встречаются чаще остальных;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
116 24 и 30 кадров в секунду типичны для NTSC, и 25 fps типично для PAL.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
117 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
118 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
119 <emphasis role="bold">Старый фильм</emphasis>: Различные низкие
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
120 кадровые частоты.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
121 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
122 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
123 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
124
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
125 <sect3 id="menc-feat-dvd-mpeg4-preparing-encode-material">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
126 <title>Идентификация исходного материала</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
127 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
128 Фильмы, состоящие из кадров, называются фильмами с построчной (или прогрессивной)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
129 развёрткой, а состоящие из независимых полей &mdash; фильмами с чересстрочной
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
130 развёрткой или просто видео; однако, последний термин двусмысленный.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
131 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
132 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
133 Из-за дальнейших усложнений, некоторые фильмы будут смесью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
134 нескольких, указанных выше.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
135 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
136 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
137 Наиболее важным различием между всеми этими форматами является
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
138 то, что одни из них основаны на кадрах, а другие &mdash; на полях.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
139 <emphasis role="bold">Любой</emphasis> фильм, подготовленный для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
140 просмотра на телевидении (включая DVD), преобразуется в формат,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
141 основанный на полях.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
142
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
143 <!-- FIXME: Существует ли лучший *краткий* (1-2 слова) перевод для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
144 терминов pulldown и telecine? В литературе, которую я нашёл,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
145 используют или указанные мной, по сути дела, транслитерации,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
146 или так и оставляют английские названия.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
147 А точный перевод можно выполнить только целым предложением
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
148 (т.е. определением), что совершенно неуместно в контексте
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
149 данного документа, где эти термины часто встречаются. -->
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
150
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
151 Различные методы, с помощью которых это может быть сделано, совокупно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
152 называются "телесин" (англ. telecine), одним из вариантов которого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
153 является отвратительный NTSC "3:2 пулдаун" (англ. pulldown).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
154 За исключением случаев, когда формат исходного материала был
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
155 также основан на полях (и с такой же частотой полей), Вы получите
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
156 фильм в формате отличном от исходного.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
157 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
158
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
159 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
160 <title>Существует несколько общих типов пулдауна:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
161 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
162 <emphasis role="bold">PAL 2:2 пулдаун</emphasis>: Наилучший из всех.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
163 Каждый кадр показывается за время длительности двух полей путем
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
164 извлечения чётных и нечётных строк и их попременного показа.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
165 Если в исходном материале 24 fps, то это ускоряет воспроизведение фильма
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
166 на 4%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
167 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
168 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
169 <emphasis role="bold">PAL 2:2:2:2:2:2:2:2:2:2:2:3 пулдаун</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
170 Каждый 12-й кадр показывается за время длительности трёх полей,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
171 вместо двух.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
172 Это помогает избежать проблемы 4%-го ускорения, но делает обращение
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
173 процесса существенно более сложным.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
174 Такие вещи обычно наблюдаются в музыкальных произведениях, где
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
175 изменение скорости на 4% существенно повредит музыкальную партитуру.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
176 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
177 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
178 <emphasis role="bold">NTSC 3:2 телесин</emphasis>: Кадры показываются
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
179 попеременно за время длительности 3-х полей или 2-х полей.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
180 Это даёт частоту полей в 2.5 раза больше исходной частоты кадров.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
181 Результат также очень незначительно замедляется от 60 до 60000/1001
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
182 полей в секунду для поддержания частоты полей NTSC.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
183 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
184 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
185 <emphasis role="bold">NTSC 2:2 пулдаун</emphasis>: Используется
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
186 для отображения материала с 30 fps на NTSC.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
187 Так же мил, как и 2:2 PAL пулдаун.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
188 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
189 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
190
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
191 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
192 Так же существуют методы для преобразования между NTSC и PAL видео,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
193 но подобные темы выходят за рамки данного руководства.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
194 Если Вам попался такой фильм, и Вы хотите кодировать его,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
195 лучшим решением будет найти копию в исходном формате.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
196 Преобразование между этими двумя форматами вносит большие потери
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
197 и не может быть точно обращено, так что Ваше кодирование
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
198 существенно пострадает, если оно делается из преобразованного
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
199 источника.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
200 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
201 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
202 Когда видео находится на DVD, последовательные пары полей
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
203 группируются как кадр, даже если они не предназначены для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
204 одновременного отображения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
205 Стандарт MPEG-2, используемый на DVD и цифровом TV предоставляет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
206 возможность одновременно кодировать исходные кадры с построчной
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
207 развёрткой и сохранять число полей, в течении которых кадр
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
208 должен быть показан, в его заголовке.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
209 Если был использован такой метод, фильм часто будет называться
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
210 как "мягкий телесин", т.к. процесс только указывает DVD-плееру
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
211 о необходимости применения пулдауна к фильму, не изменяя при этом
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
212 сам фильм.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
213 Этот случай существенно предпочтителен, т.к. он может быть легко обращён
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
214 (в действительности, проигнорирован) кодером и т.к. он сохраняет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
215 максимальное качество.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
216 Однако, многие широковещательные и DVD студии не используют
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
217 надлежащую технологию кодирования и вместо этого производят
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
218 фильмы с "жёстким телесином", где поля в действительности
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
219 повторяются в кодированном MPEG-2.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
220 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
221 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
222 Порядок действия в таких случаях будет описан
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
223 <link linkend="menc-feat-telecine">позже в данном руководстве</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
224 Сейчас мы дадим Вам несколько советов по идентификации типа
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
225 материала, с которым Вы работаете:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
226 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
227
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
228 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
229 <title>Области NTSC:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
230 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
231 Если при просмотре Вашего фильма <application>MPlayer</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
232 выводит, что частота кадров была изменена до 24000/1001 и она
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
233 никогда не меняется обратно, то это почти наверняка содержимое
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
234 с построчной развёрткой, которое было подвергнуто
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
235 "мягкому телесину".
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
236 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
237 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
238 Если <application>MPlayer</application> отображает попеременные
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
239 переключения частоты кадров между 24000/1001 и 30000/1001, и Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
240 иногда видите "гребешки", есть несколько возможностей.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
241 Сегменты с 24000/1001 fps почти наверняка являются "мягко
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
242 телесиненным" содержимым с построчной развёрткой, но части с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
243 30000/1001 fps могут быть как "жёстко телесиненым" содержимым
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
244 с 24000/1001 fps, так и NTSC видео с 60000/1001 полями в секунду.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
245 Испольуйте два нижеследующих руководства для определения того,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
246 с каким случаем вы имеете дело.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
247 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
248 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
249 Если <application>MPlayer</application> никогда не показывает
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
250 изменения кадровой частоты и каждый отдельный кадр, где есть
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
251 движение, оказывается гребёнкой, Ваш фильм есть NTSC видео с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
252 60000/1001 полями в секунду.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
253 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
254 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
255 Если <application>MPlayer</application> никогда не показывает
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
256 изменения кадровой частоты и два кадра из каждых пяти оказываются
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
257 гребёнкой, Ваш фильм представляет собой "жёстко телесиненное"
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
258 содержимое с 24000/1001 fps.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
259 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
260 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
261
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
262 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
263 <title>Области PAL:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
264 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
265 Если Вы не видите никакой гребёнки, Ваш фильм есть 2:2 пулдаун.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
266 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
267 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
268 Если Вы видите попеременную гребёнку каждые полсекунды,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
269 Ваш фильм представляет собой 2:2:2:2:2:2:2:2:2:2:2:3 пулдаун.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
270 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
271 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
272 Если Вы всегда видите гребёшки во время движения, значит Ваш
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
273 фильм является PAL видео с 50 полями в секунду.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
274 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
275 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
276
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
277 <note><title>Подсказка:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
278 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
279 <application>MPlayer</application> может замедлить воспроизведение
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
280 фильма с опцией -speed или воспроизводить его покадрово.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
281 Попробуйте использовать опцию <option>-speed 0.2</option> для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
282 очень медленного просмотра фильма или несколько раз нажмите
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
283 клавишу "<keycap>.</keycap>" для воспроизведения одного кадра
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
284 за раз и идетнифицируйте образец, если не можете его увидеть на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
285 полной скорости.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
286 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
287 </note>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
288 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
289 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
290
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
291 <sect2 id="menc-feat-dvd-mpeg4-2pass">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
292 <title>Постоянный квантователь против многопроходности</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
293
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
294 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
295 Возможно кодировать Ваш фильм, широко варьируя качество.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
296 С современными видеокодерами и небольшим сжатием перед кодированием
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
297 (уменьшением размера и шумов) возможно достичь очень хорошего
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
298 качества при размере 700 МБ для 90-110-минутного широкоэкранного фильма.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
299 Более того, всё, кроме самых длинных фильмов, может быть кодировано
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
300 с почти безупречным качеством на 1400 МБ.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
301 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
302
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
303 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
304 Есть три подхода при кодировании видео: постоянный битпоток (CBR),
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
305 постоянный квантователь и многопроходность (ABR или усреднённый битпоток).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
306 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
307
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
308 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
309 Сложность кадров фильма и, таким образом, число битов, нужных для их
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
310 сжатия может существенно отличаться от одной сцены к другой.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
311 Современные видеокодеры могут подстраиваться под это в процессе
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
312 работы и варьировать битпоток.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
313 Однако, в таких простых режимах как CBR кодеры не знают загруженность
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
314 битпотока в последующих сценах и т.о. не могут превысить затребованный
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
315 битпоток для больших промежутков времени.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
316 Более продвинутые режимы, такие как многопроходный режим, могут
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
317 учитывать статистику предыдущих проходов; это решает проблему,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
318 упомянутую выше.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
319 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
320
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
321 <note><title>Замечание:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
322 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
323 Большинство кодеков, поддерживающих ABR кодирование, поддерживают
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
324 только двупроходный режим, в то время как некоторые другие, такие
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
325 как <systemitem class="library">x264</systemitem>,
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
326 <systemitem class="library">Xvid</systemitem>
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
327 и <systemitem class="library">libavcodec</systemitem> поддерживают
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
328 многопроходность, несколько улучшающую качество на каждом проходе,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
329 однако, это улучшение не измеримо и не заметно после 4-го прохода
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
330 или около того.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
331 Поэтому, в данном разделе дву- и многопроходность будут
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
332 использоваться взаимозаменяемо.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
333 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
334 </note>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
335
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
336 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
337 В каждом из этих режимов видеокодек (такой как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
338 <systemitem class="library">libavcodec</systemitem>)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
339 разбивает видеокадр на макроблоки размером 16х16 пикселей и потом
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
340 применяет квантователь к каждому макроблоку. Чем меньше квантоваль,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
341 тем лучше качество и выше битпоток.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
342 Метод, используемый видео кодером для определения того, какой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
343 квантователь использовать для данного макроблока, варьируется и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
344 подлежит тонкой настройке. (Это крайнее упрощение реального
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
345 процесса, но основная концепция полезна для понимания.)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
346 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
347
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
348 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
349 Когда Вы указываете постоянный битпоток, видеокодек будет кодировать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
350 видео, отбрасывая детали столько, сколько необходимо и настолько мало,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
351 насколько это возможно с целью оставаться ниже заданного битпотока.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
352 Если Вас действительно не волнует размер файла, Вы можете также
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
353 использовать CBR и указать бесконечный битпоток. (На практике это
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
354 означает значение, достаточно большое для обозначения отсутствия
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
355 предела, например, 10000 Кбит.) В результате, без реального ограничения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
356 битпотока, кодек использует наименьший возможный квантователь для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
357 каждого макроблока (как указано опцией
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
358 <option>vqmin</option> для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
359 <systemitem class="library">libavcodec</systemitem>, равной 2 по умолчанию).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
360 Как только Вы укажите настолько низкий битпоток, что кодек будет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
361 вынужден использовать более высокий квантователь, Вы почти наверняка
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
362 испортите качество Вашего видео.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
363 Чтобы избежать этого, Вам, вероятно, придётся уменьшить размеры
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
364 Вашего видео, согласно методу, описанному далее в этом руководстве.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
365 В общих чертах, Вам следует избегать CBR совсем, если Вы заботитесь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
366 о качестве.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
367 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
368
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
369 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
370 С постоянным квантователем кодек использует для всех макроблоков
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
371 один и тот же квантователь, указанный в опции
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
372 <option>vqscale</option> (для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
373 <systemitem class="library">libavcodec</systemitem>).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
374 Если Вы хотите рип наивысшего возможного качества, снова не взирая
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
375 на битпоток, Вы можете использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
376 <option>vqscale=2</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
377 Это приведёт к тому же битпотоку и PSNR (пику отношения сигнала к шуму),
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
378 что и CBR с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
379 <option>vbitrate</option>=бесконечности и значением по умолчанию
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
380 <option>vqmin</option>, равным 2.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
381 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
382
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
383 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
384 Проблема с постоянным квантованием заключается в том, что кодек использует
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
385 заданный квантователь вне зависимости от того, требуется это для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
386 макроблока или нет. То есть возможно использование большего квантователя
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
387 для макроблока без ухудшения видимого качества. Зачем тратить биты на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
388 излишне низкий квантователь? У Вашего процессора есть столько тактов,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
389 сколько есть времени, но имеется лишь ограниченное число битов на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
390 жёстком диске.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
391 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
392
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
393 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
394 При двупроходном кодировании первый проход создаст рип фильма так,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
395 как будто это был CBR, но сохранит лог свойств для каждого кадра.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
396 Эта информация затем будет использована во время второго прохода
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
397 для принятия интеллектуальных решений о том, какой квантователь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
398 следует использовать. Во время быстрого движения или сцен с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
399 высокой детализацией с большой веротностью будут использованы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
400 бОльшие квантователи, а во время медленного движения или сцен
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
401 с низкой детализацией &mdash; меньшие.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
402 Обычно количество движения играет существенно более важную роль,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
403 чем количество деталей.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
404 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
405
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
406 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
407 Если Вы используете <option>vqscale=2</option>, то Вы теряете биты.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
408 Если Вы используете <option>vqscale=3</option>, то Вы не получаете
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
409 рип наивысшего качества. Предположим, вы делаете рип DVD, используя
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
410 <option>vqscale=3</option>, результат получается 1800 Кбит.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
411 Если Вы сделаете двупроходное кодирование с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
412 <option>vbitrate=1800</option>, получившееся видео быдет обладать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
413 <emphasis role="bold">лучшим качеством</emphasis> для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
414 <emphasis role="bold">того же битпотока</emphasis>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
415 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
416
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
417 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
418 После того, как Вы сейчас убедились, что два прохода &mdash; это путь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
419 к действию, возникает вопрос о том, какой битпоток использовать?
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
420 Ответ таков, что нет единого ответа. В идеале, Вы хотите выбрать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
421 битпоток, при котором достигается наилучший баланс между качеством
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
422 и размером файла. Здесь возможны вариации в зависимости от
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
423 исходного видеоматериала.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
424 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
425
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
426 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
427 Если размер не важен, хорошей отправной точкой для рипа очень высокого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
428 качества будет 2000 Кбит +/- 200 Кбит.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
429 Для видеоматериала с быстрым движением или высокой детализацией
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
430 или просто если у Вас очень разборчивый глаз, Вы можете использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
431 2400 или 2600.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
432 Для некоторых DVD Вы не заметите разницы на 1400 Кбит. Хорошей идеей
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
433 является экспериментирование со сценами на разных битпотоках, чтобы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
434 почувствовать разницу.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
435 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
436
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
437 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
438 Если Вашей целью является определённый размер, Вам нужно как-нибудь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
439 вычислить битпоток. Но перед этим, Вам нужно знать, сколько места
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
440 нужно зарезервировать по аудио дорожку(и), так что Вам необходимо
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
441 <link linkend="menc-feat-dvd-mpeg4-audio">извлечь их</link> сперва.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
442 Вы можете расчитать битпоток с помощью следующей формулы:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
443 <systemitem>битпоток = (конечный_размер_в_МБайт - размер_звука_в_МБайт) *
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
444 1024 * 1024 / длительность_в_секундах * 8 / 1000</systemitem>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
445 Например, для сжатия двухчасового фильма в 702 МБ CD, с 60 МБ
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
446 аудио дорожкой, битпоток видео должен составлять:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
447 <systemitem>(702 - 60) * 1024 * 1024 / (120*60) * 8 / 1000
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
448 = 740 кбит/сек</systemitem>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
449 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
450
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
451 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
452
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
453
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
454 <sect2 id="menc-feat-dvd-mpeg4-constraints">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
455 <title>Ограничения для эффективного кодирования</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
456
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
457 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
458 Из-за особенностей MPEG-подобного сжатия, существуют различные
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
459 ограничения, которым Вы должны следовать для достижения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
460 максимального качества.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
461 MPEG разбивает видео на квадраты 16х16, называемые макроблоками.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
462 Каждый макроблок состоит из 4 блоков 8х8 с информацией о люме
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
463 (интенсивности) и двух блоков 8х8 с информацией о хроме (цвете)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
464 половинного разрешения (один для красно-бирюзовой оси и другой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
465 для жёлто-голубой оси).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
466 Даже если ширина и высота Вашего фильма не кратны 16, кодер
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
467 всё равно использует нужное количество макроблоков 16х16 для покрытия
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
468 всей области картинки, дополнительная область будет впустую потрачена.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
469 Так что в интересах максимизации качества при фиксированном размере
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
470 файла, не стоит использовать размеры, не кратные 16.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
471 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
472
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
473 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
474 У большинства DVD также есть определённое подобие чёрных полос на
21495
679ca24b6f48 r21508: emphasis the fact that leaving black borders really hurts quality
voroshil
parents: 21385
diff changeset
475 краях. Если Вы их оставите, это может <emphasis>сильно</emphasis>
679ca24b6f48 r21508: emphasis the fact that leaving black borders really hurts quality
voroshil
parents: 21385
diff changeset
476 повредить качество несколькими путями.
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
477 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
478
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
479 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
480 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
481 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
482 MPEG-подобное сжатие также очень чувствительно к преобразованиям
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
483 частотных интервалов, в частности, к дискретному косинусному
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
484 преобразованию (DCT), которое аналогично преобразованию Фурье.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
485 Этот вид сжатия эффективен для представления образов и сглаженных
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
486 переходов, но у него возникают проблемы с острыми краями.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
487 <!-- FIXME: для слова ringing я тоже не нашёл краткого однозначного
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
488 перевода; лучшее, что приходит на ум - это "размывание краёв",
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
489 ясное дело, что причиной является отбрасывание малых гармоник,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
490 в результате чего вместо точки возникает затухающая окружность,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
491 но вот как это кратко выразить... -->
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
492 Для кодирования последних Вам нужно гораздо больше битов, а иначе
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
493 у вас появится артефакт, известный как размывание краёв
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
494 (англ. ringing).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
495 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
496
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
497 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
498 Частотные преобразования (DCT) выполняются независимо для каждого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
499 макроблока (на самом деле, для каждого блока), так что эта проблема
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
500 возникает только в случае попадания острого края внутрь блока.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
501 Если Ваши чёрные поля возникают точно на границах, кратных 16
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
502 пикселям, это не проблема.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
503 Однако, чёрные полосы на DVD редко хорошо расположены, так что
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
504 на практике Вам всегда придётся усекать стороны для избежания
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
505 этих проблем.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
506 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
507 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
508 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
509
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
510 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
511 В дополнение к преобразованиям частотных интервалов, MPEG-подобное
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
512 сжатие использует векторы движения для отображения изменений от
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
513 одного кадра к другому. Векторы движения, естественно, работают
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
514 существенно менее эффективно для новых объектов, идущих от
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
515 краёв картинки, поскольку они отсутсвуют в предыдущих кадрах.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
516 Пока картинка простирается вплоть до края кодируемой области,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
517 у векторов движения не возникает проблем с движением объектов
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
518 за пределы картинки. Однако, при наличии черных полей
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
519 могут возникнуть проблемы:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
520 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
521
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
522 <orderedlist continuation="continues">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
523 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
524 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
525 Для каждого макроблока MPEG-подобное сжатие сохраняет вектор,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
526 определяющий какая часть предыдущего кадра должна быть скопирована
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
527 в этот макроблок как основа для предсказания следующего кадра.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
528 Кодированию подлежит только оставшаяся разность. Если макроблок
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
529 простирается до края картинки и содержит часть чёрной полосы,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
530 то векторы движения других частей каритки перепишут чёрную полосу.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
531 Это означает, что много битов нужно потратить либо на повторное
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
532 чернение переписанной полосы, либо (что более вероятно) вектор
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
533 движения не будет использован вовсе и все изменения для этого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
534 макроблока будут явно кодированы. Другими словами, эффективность
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
535 кодирования существенно уменьшается.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
536 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
537
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
538 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
539 Ещё раз, эта проблема возникает только в случае, если чёрные полосы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
540 не укладываются в границы, кратные 16.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
541 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
542 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
543
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
544 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
545 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
546 Наконец, предположим, что у нас есть находящийся внутри картинки
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
547 макроблок и объект движется в этот блок от края изображения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
548 MPEG-подобное кодирование не может сказать "скопируй ту часть,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
549 что внутри картинки, но не чёрную полосу". Так что чёрная полоса
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
550 также быдет скопирована внутрь, в результате чего масса битов
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
551 будет потрачена на кодирование части изображения, которое должно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
552 быть на месте полосы.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
553 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
554
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
555 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
556 Для случаев, когда всё изображение движется к краю кодируемой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
557 области, у MPEG есть специальные оптимизации для многократного
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
558 копирования пикселей на край картинки, когда вектор движения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
559 идёт извне области кодирования. Эта возможность становится
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
560 бесполезной, если у фильма есть чёрные полосы. В отличии от
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
561 случаев 1 и 2, выравнивание границ до кратности 16 здесь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
562 не поможет.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
563 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
564 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
565
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
566 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
567 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
568 Несмотря на то, что границы полностью чёрные и никогда не изменяются,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
569 существуют, как минимум, определённые накладные расходы, связанные
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
570 с наличием большего числа макроблоков.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
571 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
572 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
573 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
574
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
575 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
576 Благодаря всем этим причинам, рекомендуется полностью урезать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
577 чёрные полосы. Более того, если есть области шумов/искажений
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
578 на краях картинки, то их урезание также поспособствует улучшению
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
579 качества кодирования. Видеофилы, желающие сохранить оригинал как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
580 можно более точно, могут возражать против такого усечения; но
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
581 если Вы не планируете кодировать при постоянном квантователе,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
582 качество, полученное при усечении, существенно превысит потери
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
583 информации на краях.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
584 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
585 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
586
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
587
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
588 <sect2 id="menc-feat-dvd-mpeg4-crop">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
589 <title>Усечение и масштабирование</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
590
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
591 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
592 Вспомните из предыдущего раздела, что конечный размер картинки,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
593 подлежащей кодированию, должен быть кратен 16 (как высота,так
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
594 и ширина). Это может быть достигнуто усечением, масштабированием
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
595 или комбинацией того и другого.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
596 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
597
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
598 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
599 Есть несколько рекомендаций для усечения, которым необходимо следовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
600 для избежания повреждения фильма.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
601 Обычный формат YUV, 4:2:0, сохраняет хрому (информацию о цвете)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
602 половинной дискретизации, т.е. хрома сохраняется в два раза реже
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
603 в каждом направлении, чем люма (информация об интенсивности).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
604 Рассмотрите следующую диаграмму, где L обозначает точки дискретизации
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
605 люмы и C &mdash; хромы.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
606 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
607
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
608 <informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
609 <?dbhtml table-width="40%" ?>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
610 <?dbfo table-width="40%" ?>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
611 <tgroup cols="8" align="center">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
612 <colspec colnum="1" colname="col1"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
613 <colspec colnum="2" colname="col2"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
614 <colspec colnum="3" colname="col3"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
615 <colspec colnum="4" colname="col4"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
616 <colspec colnum="5" colname="col5"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
617 <colspec colnum="6" colname="col6"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
618 <colspec colnum="7" colname="col7"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
619 <colspec colnum="8" colname="col8"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
620 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
621 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
622 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
623 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
624 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
625 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
626 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
627 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
628 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
629 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
630 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
631 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
632 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
633 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
634 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
635 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
636 <entry spanname="spa1-2">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
637 <entry spanname="spa3-4">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
638 <entry spanname="spa5-6">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
639 <entry spanname="spa7-8">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
640 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
641 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
642 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
643 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
644 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
645 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
646 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
647 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
648 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
649 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
650 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
651 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
652 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
653 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
654 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
655 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
656 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
657 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
658 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
659 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
660 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
661 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
662 <entry spanname="spa1-2">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
663 <entry spanname="spa3-4">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
664 <entry spanname="spa5-6">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
665 <entry spanname="spa7-8">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
666 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
667 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
668 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
669 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
670 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
671 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
672 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
673 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
674 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
675 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
676 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
677 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
678 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
679 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
680
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
681 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
682 Как Вы видите, строки и столбцы изображения естественным образом
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
683 идут в парах. Поэтому смещения и размеры усечения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
684 <emphasis>должны</emphasis> быть чётными числами.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
685 Иначе хрома перестанет правильно соответствовать люме.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
686 Теоретически возможно усечение с нечётными смещениями, но оно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
687 потребует преобразования хромы, что потенциально является
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
688 операцией с потерей качества и не поддерживается фильтром
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
689 усечения сторон crop.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
690 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
691
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
692 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
693 Далее, видео с чересстрочной развёрткой дискретизируется следующим
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
694 образом:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
695 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
696
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
697 <informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
698 <?dbhtml table-width="80%" ?>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
699 <?dbfo table-width="80%" ?>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
700 <tgroup cols="16" align="center">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
701 <colspec colnum="1" colname="col1"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
702 <colspec colnum="2" colname="col2"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
703 <colspec colnum="3" colname="col3"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
704 <colspec colnum="4" colname="col4"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
705 <colspec colnum="5" colname="col5"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
706 <colspec colnum="6" colname="col6"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
707 <colspec colnum="7" colname="col7"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
708 <colspec colnum="8" colname="col8"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
709 <colspec colnum="9" colname="col9"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
710 <colspec colnum="10" colname="col10"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
711 <colspec colnum="11" colname="col11"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
712 <colspec colnum="12" colname="col12"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
713 <colspec colnum="13" colname="col13"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
714 <colspec colnum="14" colname="col14"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
715 <colspec colnum="15" colname="col15"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
716 <colspec colnum="16" colname="col16"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
717 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
718 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
719 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
720 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
721 <spanspec spanname="spa9-10" namest="col9" nameend="col10"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
722 <spanspec spanname="spa11-12" namest="col11" nameend="col12"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
723 <spanspec spanname="spa13-14" namest="col13" nameend="col14"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
724 <spanspec spanname="spa15-16" namest="col15" nameend="col16"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
725 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
726 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
727 <entry namest="col1" nameend="col8">Верхнее поле</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
728 <entry namest="col9" nameend="col16">Нижнее поле</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
729 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
730 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
731 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
732 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
733 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
734 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
735 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
736 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
737 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
738 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
739 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
740 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
741 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
742 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
743 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
744 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
745 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
746 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
747 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
748 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
749 <entry spanname="spa1-2">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
750 <entry spanname="spa3-4">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
751 <entry spanname="spa5-6">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
752 <entry spanname="spa7-8">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
753 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
754 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
755 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
756 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
757 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
758 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
759 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
760 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
761 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
762 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
763 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
764 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
765 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
766 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
767 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
768 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
769 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
770 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
771 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
772 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
773 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
774 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
775 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
776 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
777 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
778 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
779 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
780 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
781 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
782 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
783 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
784 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
785 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
786 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
787 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
788 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
789 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
790 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
791 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
792 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
793 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
794 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
795 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
796 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
797 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
798 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
799 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
800 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
801 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
802 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
803 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
804 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
805 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
806 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
807 <entry spanname="spa9-10">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
808 <entry spanname="spa11-12">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
809 <entry spanname="spa13-14">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
810 <entry spanname="spa15-16">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
811 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
812 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
813 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
814 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
815 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
816 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
817 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
818 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
819 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
820 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
821 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
822 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
823 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
824 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
825 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
826 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
827 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
828 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
829 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
830 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
831 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
832 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
833 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
834 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
835 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
836 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
837 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
838 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
839 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
840 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
841 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
842 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
843 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
844 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
845 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
846 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
847 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
848 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
849 <entry spanname="spa1-2">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
850 <entry spanname="spa3-4">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
851 <entry spanname="spa5-6">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
852 <entry spanname="spa7-8">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
853 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
854 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
855 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
856 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
857 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
858 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
859 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
860 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
861 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
862 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
863 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
864 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
865 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
866 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
867 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
868 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
869 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
870 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
871 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
872 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
873 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
874 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
875 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
876 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
877 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
878 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
879 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
880 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
881 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
882 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
883 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
884 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
885 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
886 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
887 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
888 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
889 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
890 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
891 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
892 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
893 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
894 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
895 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
896 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
897 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
898 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
899 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
900 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
901 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
902 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
903 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
904 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
905 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
906 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
907 <entry spanname="spa9-10">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
908 <entry spanname="spa11-12">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
909 <entry spanname="spa13-14">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
910 <entry spanname="spa15-16">C</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
911 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
912 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
913 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
914 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
915 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
916 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
917 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
918 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
919 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
920 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
921 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
922 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
923 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
924 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
925 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
926 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
927 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
928 <entry>L</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
929 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
930 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
931 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
932 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
933
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
934 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
935 Как Вы видите, структура повторяется только после 4 строк.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
936 Так что для чересстрочного видео Ваше y-смещение и высота
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
937 усечения должны быть кратны 4.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
938 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
939
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
940 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
941 Естественные разрешения DVD составляют 720x480 для NTSC и 720x576
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
942 для PAL, но существует флаг соотношения сторон, который указывает
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
943 является ли видео полноэкранным (4:3) или широкоэкранным (16:9).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
944 Многие (если не большинство) широкоэкранных DVD не точно соответсвуют
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
945 <!-- FIXME: Есть ли перевод названия формата cinescope (он же CinemaScope) ?? -->
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
946 формату 16:9 и он может быть как 1.85:1, так и 2.35:1 (формат cinescope).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
947 Это означает, что в видео будут чёрные полосы, которые нужно усечь.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
948 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
949
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
950 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
951 <application>MPlayer</application> предоставляет фильтр обнаружения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
952 усечения, который определяет прямоугольник, до которго нужно усечь
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
953 (<option>-vf cropdetect</option>).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
954 Запустите <application>MPlayer</application> с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
955 <option>-vf cropdetect</option> и он выдаст настройки
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
956 усечения для удаления полей.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
957 С целью получения точных параметров усечения, Вы должны проигрывать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
958 фильм достаточно долго для того, чтоб была использована вся область
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
959 изображения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
960 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
961
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
962 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
963 Затем проверьте значения, полученные с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
964 <application>MPlayer</application>, используя командную строку,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
965 выведенную <option>cropdetect</option>, и подстройте прямоугольник
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
966 при необходимости.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
967 Фильтр <option>rectangle</option> может быть полезен, позволив
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
968 Вам интерактивно менять прямоугольник усечения для Вашего фильма.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
969 Не забывайте следовать указанным выше руководствам по делимости,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
970 чтобы не испортить выравнивание хромы.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
971 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
972
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
973 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
974 В ряде случаев масштабирование может быть нежелательным.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
975 Масштабирование по вертикальному направлению затруднено для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
976 чересстрочного видео, и если Вы хотите сохранить чересстрочность,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
977 Вам в большинстве случаев будет необходимо воздерживаться от
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
978 масштабирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
979 Если Вы не будете масштабировать, но всё ещё желаете размеры,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
980 кратные 16, то Вам придётся проводить излишнее усечение.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
981 Не проводите неполное усечение, поскольку чёрные полосы очень
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
982 плохи для кодирования!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
983 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
984
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
985 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
986 Посокльку MPEG-4 использует макроблоки 16х16, Вы должны убедиться,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
987 что каждое измерение кодируемого видео кратно 16; иначе Вы ухудшите
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
988 качество, особенно на малых битпотоках. Вы можете сделать это,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
989 округлив ширину и высоту прямоугольника усечения до ближайшего
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
990 меньшего целого, кратного 16.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
991 Учитывая установленное ранее, при усечении Вы можете захотеть увеличить
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
992 смещение по Y на половину разности старой и новой высоты, так что
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
993 полученное видео будет браться из центра кадра.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
994
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
995 И из-за способа дискретизации DVD видео, убедитесь, что смещение
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
996 есть чётное число. (Фактически, возьмите за правило никогда не
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
997 использовать нечётные величины для любых параметров усечения или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
998 масштабирования видео.) Если Вы беспокоитесь из-за нескольких
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
999 излишне отброшенных битов, возможно, Вы предпочтёте взамен
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1000 масштабировать видео.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1001 В действительности, Вы можете доверить фильтру
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1002 <option>cropdetect</option> сделать для Вас всё вышеупомянутое,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1003 т.к. у него есть необязательный параметр округления
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1004 <option>round</option>, равный 16 по умолчанию.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1005 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1006
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1007 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1008 Также будьте осторожны с "полутёмными" пикселями на краях. Убедитесь,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1009 что они тоже отрезаются, иначе Вы будете тратить биты, которым есть
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1010 лучшее применение.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1011 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1012
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1013 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1014 После всего выше сказанного и сделанного, Вы, вероятно, получите
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1015 видео не точно формата 1:85.1 или 2.35:1, а с чем-то близким
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1016 к этому. Вы можете вычислить новый коэффициент соотношения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1017 сторон вручную, но <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1018 предоставляет опцию для <systemitem class="library">libavcodec</systemitem>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1019 называемую <option>autoaspect</option>, которая сделает это для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1020 Вас. Ни в коем случае не увеличивайте размер этого видео с целью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1021 квадратизации пикселей, если Вы не желаете впустую потратить
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1022 место на жёстком диске.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1023 Масштабирование должно выполняться при воспроизведении, и плеер
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1024 использует коэффициент соотношения сторон, сохранённый в AVI, для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1025 определения правильного разрешения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1026 К сожалению, не все плееры используют эту информацию автомасштабирования,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1027 поэтому Вам всё ещё может быть необходимо перемасштабирование.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1028 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1029 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1030
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1031
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1032 <sect2 id="menc-feat-dvd-mpeg4-resolution-bitrate">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1033 <title>Выбор разрешения и битпотока</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1034
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1035 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1036 Если Вы не собираетеся кодировать в режиме постоянного квантователя,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1037 Вам нужно выбрать битпоток.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1038 Понятие битпотока очень просто: это среднее число битов, которые
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1039 будут использованы для сохранения Вашего фильма, в секунду.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1040 Обычно битпоток измеряется в килобитах (1000 бит) в секунду.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1041 Размер Вашего фильма на диске есть битпоток, умноженный на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1042 длительность фильма, плюс небольшие накладные расходы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1043 (см. раздел
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1044 <link linkend="menc-feat-dvd-mpeg4-muxing-avi-limitations">контейнер AVI</link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1045 для примера).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1046 Остальные параметры, такие как масштабирование, усечение и т.п.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1047 <emphasis role="bold">не</emphasis> изменят размер файла, пока
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1048 Вы также не измените битпоток!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1049 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1050 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1051 Битпоток изменяется <emphasis role="bold">не</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1052 пропорционально разрешению.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1053 То есть файл разрешением 320х240 с 200 кбит/сек не будет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1054 того же качества, что этот же фильм разрешением 640х480
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1055 и 800 кбит/сек!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1056 Для этого есть две причины:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1057 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1058 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1059 <emphasis role="bold">Восприятие</emphasis>: Вы сильнее
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1060 замечаете MPEG артефакты, если они больше!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1061 Артефакты возникают на масштабе блоков (8х8).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1062 Ваш глаз не увидит ошибки в 4800 маленьких блоков так же
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1063 легко, как и в 1200 больших блоков (предполагая
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1064 масштабирование обоих фильмов на полный экран).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1065 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1066 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1067 <emphasis role="bold">Теоретическая</emphasis>: Когда Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1068 уменьшаете размер изображения, но продолжаете использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1069 блоки того же размера (8х8) для пространственных частотных
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1070 преобразований, Вы перемещаете больше данных в высокочастотные
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1071 полосы. Грубо говоря, каждый пиксель содержит больше деталей,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1072 чем раньше.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1073 Так что несмотря на то, что ваша картинка с уменьшенным
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1074 масштабом содержит 1/4 информации в пространственных направлениях,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1075 она всё ещё может содержать большУю часть информации в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1076 частотных интервалах (предполагая, что высокие частоты были
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1077 не использованы в оригинальном 640х480 изображении).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1078 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1079 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1080 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1081 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1082 Последние руководства рекомендовали выбор битпотока и разрешения,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1083 основываясь на приближении "бит на пиксель", но это обычно не
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1084 верно из-за упомянутых выше причин.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1085 Похоже, лучшей оценкой является рост битпотока пропорционально
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1086 квадратному корню разрешения, так что 320х240 и 400 кбит/сек
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1087 должно быть сравнимо с 640х480 и 800 кбит/сек.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1088 Однако, это не было строго проверено теоретически или эмпирически.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1089 Кроме того, из-за существенного отличия фильмов по уровню шума,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1090 деталей, степеней свободы и т.п., тщетно давать общие рекомендации
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1091 для "битов на длину диагонали" (аналог битов на пиксель, используя
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1092 квадратный корень).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1093 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1094 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1095 Таким образом, мы обсудили сложность выбора битпотока и разрешения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1096 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1097
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1098
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1099 <sect3 id="menc-feat-dvd-mpeg4-resolution-bitrate-compute">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1100 <title>Расчёт разрешения</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1101 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1102 Следующие шаги помогут Вам расчитать разрешение для Вашего
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1103 кодирования без слишком сильного искажения видео, учитывая
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1104 некоторую информацию об исходном видео.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1105 Прежде всего, Вам необходимо расчитать коэффициент соотношения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1106 сторон для кодированного видео:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1107 <systemitem>ARc = (Wc x (ARa / PRdvd )) / Hc</systemitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1108 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1109 <title>где:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1110 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1111 Wc и Hc &mdash; ширина и высота усечённого видео,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1112 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1113 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1114 ARa &mdash; коэффициент соотношения сторон изображения, обычно 4/3 или 16/9,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1115 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1116 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1117 PRdvd &mdash; отношение пикселей DVD, что равно 1.25=(720/576) для PAL
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1118 DVD и 1.5=(720/480) для NTSC DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1119 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1120 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1121 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1122
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1123 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1124 Затем Вы можете расчитать разрешение по X и Y, согласно определённому
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1125 фактору качества сжатия (CQ):
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1126 <systemitem>ResY = INT(SQRT( 1000*Битпоток/25/ARc/CQ )/16) * 16</systemitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1127 и <systemitem>ResX = INT( ResY * ARc / 16) * 16</systemitem>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1128 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1129
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1130 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1131 Хорошо, но что такое CQ?
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1132 CQ соответсвует числу битов на пиксель и на кадр для кодирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1133 Грубо говоря, чем больше CQ, тем меньше вероятность увидеть
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1134 артефакты кодирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1135 Однако, если у Вас есть заданный размер для Вашего фильма
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1136 (например, 1 или 2 CD), есть ограниченное общее число битов,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1137 которые Вы можете потратить; поэтому важно найти хороший
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1138 компромисс между сжимаемостью и качеством.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1139 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1140
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1141 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1142 CQ зависит от битпотока, эффективности видеокодека и разрешения фильма.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1143 Обычно, в целях увеличеиня CQ, Вам нужно будет уменьшить размер
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1144 фильма при постоянном битпотоке, заданном размере и длине фильма.
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1145 С MPEG-4 ASP кодеками, такими как <systemitem class="library">Xvid</systemitem>
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1146 и <systemitem class="library">libavcodec</systemitem>, CQ
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1147 меньше 0.18 обычно приводит к изображению с большим числом
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1148 сегментов "квадратиками", из-за недостаточного числа битов для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1149 кодирования информации в каждом макроблоке.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1150 (MPEG4, как и многие другие кодеки, группирует пиксели в блоки по
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1151 несколько пикселей для сжатия изображения; если битов не хватает,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1152 границы этих блоков становятся заметными.)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1153 Следовательно, благоразумно выбрать CQ в диапазоне от 0.20 до 0.22
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1154 для рипа на 1 CD и 0.26-0.28 для рипа на 2 CD при использовании
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1155 стандартных опций кодирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1156 Более продвинутые опции кодирования, такие как указанные для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1157 <link linkend="menc-feat-mpeg4-lavc-example-settings"><systemitem class="library">libavcodec</systemitem></link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1158 и
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1159 <link linkend="menc-feat-xvid-example-settings"><systemitem class="library">Xvid</systemitem></link>
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1160 должны сделать возможным получение того же качества с CQ в диапазоне
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1161 от 0.18 до 0.20 для рипа на 1 CD и 0.24-0.26 для рипа на 2 CD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1162 Используя MPEG-4 ASP кодеки, такие как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1163 <systemitem class="library">x264</systemitem>, Вы можете использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1164 CQ в диапазоне от 0.14 до 0.16 со стандартными опциями кодирования
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1165 и должны суметь достичь таких низких значений, как 0.10-0.12
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1166 с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1167 <link linkend="menc-feat-x264-example-settings">продвинутых опций кодирования <systemitem class="library">x264</systemitem></link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1168 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1169
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1170 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1171 Пожалуйста, обратите внимание, что CQ &mdash; лишь показательная величина,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1172 т.к. она зависит от кодируемого содержимого; CQ 0.18 может хорошо
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1173 смотреться для Бергмана (Bergman), в отличии от такого фильма как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1174 Матрица (The Matrix), содержащего много сцен с быстрым движением.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1175 С другой стороны, бесполезно увеличивать CQ выше 0.30, т.к. Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1176 будете тратить биты без заметного увеличения качества.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1177 Так же обратите внимание, что, как было указано выше в данном
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1178 руководстве, фильмам с низким разрешением (например, по сравнению с DVD)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1179 необходим более высокий CQ для того, чтоб они выглядели хорошо.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1180 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1181 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1182
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1183 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1184
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1185 <sect2 id="menc-feat-dvd-mpeg4-filtering">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1186 <title>Фильтрация</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1187
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1188 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1189 Изучение использования видео фильтров <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1190 важно для получения хороших результатов кодирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1191 Вся обработка видео выполняется посредством фильтров: усечение,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1192 масштабирование, подстройка цвета, удаление шума, увеличение
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1193 чёткости, деинтерлейс (преобразование видео из чересстрочной
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1194 развёртки в построчную), телесин, обратный телесин и удаление
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1195 блочной сегментации &mdash; и это лишь некоторые из них.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1196 Вместе с огромным количеством поддерживаемых входных форматов,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1197 разнообразие фильтров, доступных в <application>MEncoder</application>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1198 является одним из его основных достоинств над другими аналогичными
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1199 программами.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1200 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1201
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1202 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1203 Фильтры загружаются в цепочки с помощью опции -vf:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1204
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1205 <screen>-vf фильтр1=опции,фильтр2=опции,...</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1206
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1207 Большинство фильтров используют численные значения опций,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1208 разделённые двоеточиями, но синтаксис этих параметров различается
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1209 у разных фильтров, так что читайте мануал для детальной
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1210 информации о фильтрах, которые Вы желаете использовать.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1211 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1212
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1213 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1214 Фильтры действуют на видео в порядке их загрузки.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1215 Например, следующая цепочка:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1216
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1217 <screen>-vf crop=688:464:12:4,scale=640:464</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1218
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1219 сперва усечёт область изображения до 688х464 с верхним левым
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1220 углом (12,4), а затем масштабирует результат до 640х464.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1221 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1222
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1223 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1224 Некоторые фильтры нужно загружать в начале цепочки фильтров (или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1225 рядом с ним) с целью получения преимущества от использования
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1226 информации после видеодекодера, которая будет потеряна или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1227 искажена другими фильтрами.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1228 Важнейшими примерами являются: <option>pp</option> (постобработка,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1229 только при выполнении операций удаления блочной сегментации
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1230 (deblocking) или увеличения чёткости краёв (deringing)),
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1231 <option>spp</option> (другой фильтр постобработки, служащий для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1232 удаления артефактов MPEG), <option>pullup</option> (обратный
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1233 телесин), и <option>softpulldown</option> (для преобразования
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1234 мягкого телесина в жёсткий).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1235 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1236
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1237 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1238 В общем случае, Вам следует делать настолько мало фильтрации,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1239 насколько это возможно, для того чтоб остаться близко к оригинальному
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1240 DVD источнику. Усечение часто необходимо (как описано выше), но
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1241 избегайте масштабирования видео. Несмотря на то, что уменьшение
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1242 размера иногда предпочтительно при использовании больших
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1243 квантователей, нужно избегать и того, и другого: помните,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1244 что мы с самого начала решили обменять биты на качество.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1245 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1246
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1247 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1248 Также не корректируйте гамму, контрастность, яркость и т.п.. То,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1249 что хорошо выглядит на Вашем мониторе, может плохо выглядеть
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1250 на других. Коррекция должна выполняться только при воспроизведении.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1251 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1252
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1253 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1254 Однако, есть одна вещь, которую Вы, быть может, захотите сделать &mdash;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1255 это пропустить видео через очень слабый фильтр удаления шумов,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1256 такой как <option>-vf hqdn3d=2:1:2</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1257 Ещё раз, причиной этому является то, что этим битам можно найти
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1258 лучшее применение: зачем тратить их, кодируя шум, если Вы просто
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1259 можете вернуть этот шум в процессе воспроизведения?
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1260 Увеличение параметров для <option>hqdn3d</option> дополнительно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1261 улучшит сжимаемость, но увеличив значения слишком сильно, Вы рискуете
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1262 ухудшить различимость изображения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1263 Рекомендованные выше значения (<option>2:1:2</option>) слегка
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1264 консервативны; не бойтесь экспериментировать с более высокими
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1265 значениями и самостоятельно оценивать результаты.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1266 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1267
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1268 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1269
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1270
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1271 <sect2 id="menc-feat-dvd-mpeg4-interlacing">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1272 <title>Чересстрочная развёртка и телесин</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1273
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1274 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1275 Почти все фильмы снимаются при 24 fps [кадр/сек]. Поскольку
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1276 в NTSC ниспользуется 30000/1001 fps, нужно выполнить некоторую
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1277 обработку для такого 24 fps видео, чтобы оно корректно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1278 воспроизводилось при кадровой частоте NTSC. Этот процесс называется
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1279 3:2 пулдаун, обычно называемый телесин (поскольку пулдаун часто
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1280 применяется в процессе показа телевизионного фильма, англ. telecine);
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1281 и в упрощенном описании это работает путём замедления фильма до
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1282 24000/1001 fps и повтора каждого четвёртого кадра.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1283 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1284
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1285 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1286 Однако, никакой специальной обработки не выполняется для видео
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1287 на PAL DVD, которое воспроизводится при 25 fps. (Технически PAL
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1288 может быть подверженым телесину, называемому 2:2 пулдаун, но на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1289 практике это не применяется).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1290 24 fps фильм просто проигрывается на 25 fps. В результате фильм
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1291 воспроизводится слегка быстрее, но если Вы не пришелец, то,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1292 вероятно, не заметите разницы.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1293 У большинства PAL DVD аудио корректируемо по высоте звука, так
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1294 что, воспроизводясь при 25 fps, оно звучит нормально, даже если
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1295 аудиодорожка (и, следовательно, весь фильм) проигрываются на
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1296 4% быстрее, чем NTSC DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1297 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1298
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1299 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1300 Поскольку видео на PAL DVD не переделывается, Вам не стоит
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1301 беспокоится о частоте кадров. У источника 25 fps и у Вашего
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1302 рипа будет 25 fps. Однако, если Вы делаете рип NTSC DVD фильма,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1303 Вам, быть может, придётся выполнить обратный телесин.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1304 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1305
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1306 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1307 Для фильмов, снятых на 24 fps, видео на NTSC DVD идёт либо с телесином
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1308 30000/1001, либо с построчной развёрткой 24000/1001 fps и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1309 предназначается для телесина на лету с помощью DVD плеера.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1310 С другой стороны, TV сериалы идут обычно только с чересстрочной развёрткой,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1311 но без телесина. Это не строгое правило: есть сериалы с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1312 чересстрочной развёрткой (например, Баффи, Убийца Вампиров
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1313 [Buffy the Vampire Slayer]), в то время как другие представляют
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1314 собой смесь построчной и чересстрочной развёртки (такие как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1315 Ангел [Angel] или 24).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1316 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1317
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1318 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1319 Настоятельно рекомендуется прочитать раздел о
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1320 <link linkend="menc-feat-telecine">работе с телесином и чересстрочной развёрткой в NTSC DVD</link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1321 для изучения способов обработки в разных ситуациях.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1322 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1323
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1324 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1325 Однако, если Вы преимущественно делаете рипы фильмов, Вы, скорее
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1326 всего, имеете дело с 24 fps видео либо с построчной развёрткой,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1327 либо с подвергнутым телесину; в последнем случае Вы можете использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1328 <option>pullup</option> фильтр: <option>-vf
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1329 pullup,softskip</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1330 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1331
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1332 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1333
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1334 <sect2 id="menc-feat-dvd-mpeg4-encoding-interlaced">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1335 <title>Кодирование чересстрочного видео</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1336
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1337 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1338 Если Вы желаете кодировать фильм с чересстрочной развёрткой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1339 (NTSC или PAL видео), Вам нужно решить, будете ли Вы его
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1340 преобразовывать в построчную развёртку или нет.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1341 Хотя такое преобразование (деинтерлейс) сделает Ваш фильм
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1342 пригодным для дисплеев с построчной развёрткой, таких как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1343 компьютерные мониторы и проекторы, это будет иметь свою цену:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1344 частота полей уменьшится вдвое от 50 или 60000/1001 до 25 или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1345 30000/1001 поля в секунду, и примерно половина информации в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1346 Вашем фильме будет потеряна в сценах со значительным движением.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1347 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1348
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1349 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1350 Поэтому, если Вы кодируете для высококачественных архивных целей,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1351 не рекомендуется делать деинтерлейс. Вы всегда можете преобразовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1352 развёртку фильма в процессе воспроизведения (при воспроизведении
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1353 на устройствах с построчной развёрткой).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1354 Мощность современных компьютеров вынуждает плееры использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1355 фильтр деинтерлейса, что слегка ухудшает качество изображения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1356 Но плееры будущего будут способны имитировать дисплей TV с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1357 чересстрочной развёрткой, выполняя деинтерлейс на полной частоте
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1358 полей и интерполируя 50 или 60000/1001 кадров в секунду для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1359 чересстрочного видео.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1360 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1361
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1362 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1363 С чересстрочным видео нужно работать особым образом:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1364 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1365
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1366 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1367 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1368 Высота усечения и смещение по оси y должны быть кратны 4.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1369 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1370 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1371 Любое вертикальное масштабирование должно выполняться в режиме
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1372 чересстрочной развёртки.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1373 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1374 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1375 Фильтры постобработки и удаления шума могут не работать как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1376 ожидается, только если Вы особо не позаботитесь об их
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1377 одновременном применении на частоте полей, иначе они могут
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1378 повредить видео при неверном использовании.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1379 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1380 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1381
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1382 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1383 Учитывая вышесказанное, вот наш первый пример:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1384 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1385 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1386 mencoder <replaceable>захват.avi</replaceable> -mc 0 -oac lavc -ovc lavc -lavcopts \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1387 vcodec=mpeg2video:vbitrate=6000:ilme:ildct:acodec=mp2:abitrate=224
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1388 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1389 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1390 Обратите внимание на опции <option>ilme</option> и <option>ildct</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1391 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1392 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1393
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1394
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1395 <sect2 id="menc-feat-dvd-mpeg4-av-sync">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1396 <title>Замечания об аудио/видео синхронизации</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1397
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1398 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1399 Алгоритмы аудио/видео (A/V) синхронизации <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1400 были разработаны с целью восстановления файлов с повреждённой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1401 синхронизацией.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1402 Однако, в ряде случаев они могут привести к ненужному пропуску
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1403 или повторению кадров и, возможно, к лёгкой A/V десинхронизации
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1404 корректных входных данных (конечно, проблемы A/V синхронизации
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1405 возникают только при обработке или копировании аудиотрека при
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1406 кодировании видео, что настоятельно рекомендуется).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1407 Поэтому Вы можете переключиться на базовую A/V синхронизацию
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1408 с помощью опции <option>-mc 0</option> или разместить это в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1409 конфигурационном файле <systemitem>~/.mplayer/mencoder</systemitem>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1410 если Вы работаете только с хорошими источниками (DVD, TV-захват,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1411 высококачественные MPEG-4 рипы и т.п.), а не с повреждёнными
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1412 файлами ASF/RM/MOV.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1413 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1414 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1415 Если Вы хотите дополнительно защититься от странных пропусков
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1416 и повторений кадров, вы можете одновременно использовать опции
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1417 <option>-mc 0</option> и <option>-noskip</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1418 Это предотвратит <emphasis>любую</emphasis> A/V коррекцию, и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1419 будет копировать кадры один в один, так что Вы не сможете это
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1420 использовать, если будете применять какие-либо фильтры, которые
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1421 непредсказуемо добавляют или отбрасывают кадры, либо если у
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1422 Вашего входного файла переменный битопоток!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1423 Поэтому использование <option>-noskip</option> в общем случае не
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1424 рекомендуется.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1425 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1426 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1427 Сообщалось о том, что так называемое трёхпроходное аудиокодирование,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1428 поддерживаемое <application>MEncoder</application>, вызывало
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1429 A/V десинхронизацию.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1430 Это наверняка произойдёт при использовании совместно с некоторыми
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1431 фильтрами, поэтому сейчас <emphasis>не</emphasis> рекомендуется
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1432 использовать трёхпроходный аудио режим.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1433 Эта возможность оставлена только для совместимости и для опытных
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1434 пользователей, понимающих когда это безопасно, а когда нет.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1435 Если Вы ранее никогда не слышали о трёхпроходном режиме, забудьте
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1436 даже о том, что мы его упоминали!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1437 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1438 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1439 Также были сообщения об A/V десинхронизации при кодировании
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1440 со стандартного ввода (stdin) с помощью <application>MEncoder</application>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1441 Не делайте этого! Всегда взамен используйте файл или CD/DVD и т.п.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1442 устройство.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1443 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1444 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1445
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1446 <sect2 id="menc-feat-dvd-mpeg4-codec">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1447 <title>Выбор видеокодека</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1448
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1449 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1450 То, какой видеокодек лучше выбрать, зависит от нескольких
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1451 факторов, таких как размер, качество, устойчивость к ошибкам,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1452 практичность и распостранённость, многие из которых сильно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1453 зависят от личных предпочтений и технических ограничений.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1454 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1455 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1456 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1457 <emphasis role="bold">Эффективность сжатия</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1458 Достаточно очевидно, что большинство кодеков нового поколения
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1459 разработаны для увеличения качества и степени сжатия.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1460 Поэтому, авторы данного руководства и многие другие люди полагают,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1461 что Вы не можете ошибиться
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1462 <footnote id='fn-menc-feat-dvd-mpeg4-codec-cpu'>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1463 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1464 Несмотря на это, будьте осторожны: для декодирования MPEG-4 AVC
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1465 видео с DVD разрешением необходима быстрая машина (например,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1466 Pentium 4 свыше 1.5 ГГц или Pentium M свыше 1 ГГц).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1467 </para></footnote>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1468 выбирая MPEG-4 AVC кодеки (например,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1469 <systemitem class="library">x264</systemitem>)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1470 вместо таких MPEG-4 ASP кодеков, как
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1471 <systemitem class="library">libavcodec</systemitem> MPEG-4 или
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1472 <systemitem class="library">Xvid</systemitem>.
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1473 (Опытные разработчики кодеков могут быть заинтересованы в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1474 ознакомлении с точкой зрения Михаэля Найдермауэра (Michael
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1475 Niedermayer)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1476 "<ulink url="http://guru.multimedia.cx/?p=10">почему MPEG4-ASP отстой</ulink>".)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1477 Аналогично, Вы должны получить лучшее качество с MPEG-4 ASP, по
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1478 сравнению с MPEG-2 кодеками.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1479 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1480 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1481 Однако, новые кодеки, находящиеся в интенсивной разработке,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1482 могут страдать от ещё не замеченных ошибок, которые могут
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1483 испортить кодирование. Просто это плата за использование
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1484 передовых технологий.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1485 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1486 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1487 Более существенно то, что для начала использования нового кодека
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1488 необходимо потратить время на изучение его опций так, чтобы Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1489 знали, что нужно подстраивать для достижения заданного качества
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1490 изображения.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1491 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1492
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1493 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1494 <emphasis role="bold">Аппаратная совместимость</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1495 Обычно необходимо длительное время для включения поддержки
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1496 последних видеокодеков в автономные видеоплееры.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1497 В итоге, большинство поддерживает только MPEG-1 (наподобие
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1498 VCD, XVCD и KVCD), MPEG-2 (например, DVD, SVCD и KVCD) и MPEG-4
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1499 ASP (например, DivX,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1500 <systemitem class="library">libavcodec</systemitem> LMP4 и
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1501 <systemitem class="library">Xvid</systemitem>)
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1502 (Осторожно: обычно поддерживаются не все возможности MPEG-4 ASP).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1503 Пожалуйста, обратитесь к технической спецификации Вашего плеера
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1504 (если она доступна) или к гугл (google) для детальной информации.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1505 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1506
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1507 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1508 <emphasis role="bold">Лучшее соотношение качества и времени кодирования</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1509 Кодеки, уже использующиеся определённое время (например,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1510 <systemitem class="library">libavcodec</systemitem> MPEG-4 и
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1511 <systemitem class="library">Xvid</systemitem>) обычно сильно
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1512 оптимизированы всевозможными остроумными алгоритмами и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1513 ассемблерным SIMD кодом. Поэтому они обладают тенденцией
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1514 достижения лучшего соотношения качества к времени кодирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1515 Однако, у них могут быть некоторые очень продвинутые опции,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1516 которые, будучи включенными, сделают кодирование очень медленным
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1517 ради несущественного выигрыша.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1518 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1519 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1520 Если Вам нужна высокая скорость, примерно придерживайтесь настроек
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1521 видеокодека по умолчанию (хотя Вам стоит попробовать другие опции,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1522 упоминаемые в иных разделах данного руководства).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1523 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1524 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1525 Вы так же можете рассмотреть вариант использования многопоточного
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1526 кодека, хотя это полезно только для пользователей машин с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1527 несколькими процессорами.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1528 <systemitem class="library">libavcodec</systemitem> MPEG-4 позволяет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1529 это, но выигрыш в скорости ограничен и есть небольшой отрицательный
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1530 эффект для качества картинки.
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1531 Многопоточное кодирование <systemitem class="library">Xvid</systemitem>,
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1532 включаемое опцией <option>threads</option>, может использоваться для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1533 ускорения кодирования (на примерно 40-60% в типичных случаях)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1534 с небольшим ухудшением картинки или вообще без него.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1535 <systemitem class="library">x264</systemitem> также позволяет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1536 многопоточное кодирование, что обычно ускоряет процесс на 15-30%
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1537 (в зависимости от настроек кодирования) с уменьшением PSNR примерно
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1538 на 0.05 дБ.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1539 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1540
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1541 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1542 <emphasis role="bold">Личные предпочтения</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1543 Здесь всё становится почти неразумным: из-за тех же причин, по
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1544 которым одни придерживаются DivX&nbsp;3 в течении лет, в то время
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1545 как новые кодеки уже творят чудеса, другие люди предпочитают
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
1546 <systemitem class="library">Xvid</systemitem> или
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1547 <systemitem class="library">libavcodec</systemitem> MPEG-4
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1548 использованиию <systemitem class="library">x264</systemitem>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1549 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1550 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1551 Вам нужно принимать решение самостоятельно; не слушайте советов
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1552 людей, признающих только один кодек.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1553 Сделайте несколько образцов клипов из искомых источников и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1554 сравните разные опции кодирования и кодеки, с целью выбора
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1555 того, что Вам наиболее подходит.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1556 Лучший кодек &mdash; это тот, которым Вы сами овладели, и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1557 который выглядит лучше всего для Ваших глаз на Вашем дисплее
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1558 <footnote id='fn-menc-feat-dvd-mpeg4-codec-playback'>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1559 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1560 Один и тот же результат кодирования может не выглядеть таким же
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1561 на чьём-либо другом мониторе или при воспроизведении с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1562 другого декодера, так что проверяйте Ваши результаты кодирования
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1563 на жизнеспособность, воспроизводя их в разных начальных условиях.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1564 </para></footnote>!
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1565 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1566 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1567 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1568 Пожалуйста, обратитесь к разделу
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1569 <link linkend="menc-feat-selecting-codec">выбор кодеков и форматов контейнера</link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1570 для получения списка поддерживаемых кодеков.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1571 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1572 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1573
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1574 <sect2 id="menc-feat-dvd-mpeg4-audio">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1575 <title>Аудио</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1576
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1577 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1578 Аудио &mdash; это гораздо более простая проблема: если Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1579 беспокоитесь о качестве, просто оставьте всё как есть.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1580 Даже потоки AC3 5.1 не более чем 448 Кбит/с и они стоят каждого
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1581 бита. Вы можете соблазниться перекодированием аудио в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1582 высококачественный Vorbis (он же ogg формат), но лишь то, что
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1583 у Вас сегодня нет A/V приёмника для пропускания AC3, не означает,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1584 что у Вас не будет его завтра. Для жизнеспособности Ваших DVD
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1585 рипов в будущем, сохраняйте поток AC3.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1586 Вы можете сохранить поток AC3, копируя его непосредственно в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1587 видеопоток <link linkend="menc-feat-mpeg4">в процессе кодирования</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1588 Вы также можете извлечь AC3 поток с целью мультиплексирования его
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1589 в контейнеры наподобие NUT или Matroska (Матрёшка).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1590 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1591 mplayer <replaceable>файл_источника.vob</replaceable> -aid 129 -dumpaudio -dumpfile <replaceable>звук.ac3</replaceable></screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1592 сохранит в файл <replaceable>звук.ac3</replaceable> аудиодорожку
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1593 с номером 129 из файла
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1594 <replaceable>файл_источника.vob</replaceable> (Обратите внимание:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1595 DVD VOB файлы обычно импользуют нумерацию аудио, отличную от
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1596 стандартной, что означает, что аудиодорожка VOB 129 &mdash; это вторая
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1597 аудиодорожка файла).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1598 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1599
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1600 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1601 Но иногда у Вас действительно нет иного выбора, чем далее сжимать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1602 звук для того, чтоб больше битов могло быть потрачено на видео.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1603 Большинство людей предпочитают сжимать звук с помощью MP3 или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1604 Vorbis аудиокодеков.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1605 Последний является очень эффективным, но MP3 лучше поддерживается
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1606 аппаратными плеерами, хотя эта тенденция меняется.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1607 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1608
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1609 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1610 <emphasis>Не</emphasis> используйте <option>-nosound</option> при
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1611 кодировании файла с аудио, даже если Вы будете позже кодировать и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1612 мультеплексировать аудио отдельно.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1613 Хотя это может работать в идеальных случаях, использование
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1614 <option>-nosound</option> обычно скрывает ряд проблем в Ваших
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1615 настройках кодирования в командной строке.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1616 Другими словами, наличие звуковой дорожки в процессе кодирования
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1617 гарантирует Вам, что в случае отсутствия сообщений, подобных
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1618 <quote>Слишком много аудиопакетов в буфере</quote>, у Вас будет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1619 получена правильная синхронизация.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1620 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1621
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1622 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1623 Вам необходим <application>MEncoder</application> для обработки
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1624 звука.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1625 Например, Вы можете копировать исходную звуковую дорожку в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1626 процессе кодирования с помощью <option>-oac copy</option> или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1627 преобразовать её в "лёгкий" 4 кГц моно WAV PCM с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1628 <option>-oac pcm -channels 1 -srate 4000</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1629 Иначе, в ряде случаев, будет создаваться видео файл,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1630 десинхронизированный с аудио.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1631 Такие случаи происходят, когда число кадров видео исходного файла
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1632 не совпадает с полной длиной кадров аудио, или когда были
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1633 разрывы/сшивания потока, где появились пропущенные или излишние
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1634 аудиокадры.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1635 Правильным решением подобных проблем является вставка тишины или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1636 усечение аудио в таких точках.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1637 Однако, <application>MPlayer</application> не может это сделать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1638 и если Вы демультиплексируете AC3 аудио и кодируете его отдельным
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1639 приложением (или создаёте дамп в PCM с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1640 <application>MPlayer</application>), сшивания останутся
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1641 нескорректированными и единственный испособ их исправить &mdash;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1642 пропускать/дублировать видеокадры в местах сшивки.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1643 Пока <application>MEncoder</application> видит аудио при
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1644 кодировании видео, он может выполнять этот пропуск/дублирование
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1645 (что обычно не вызывыет проблем, т.к. происходит при полностью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1646 чёрных кадрах или при смене сцен), но если
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1647 <application>MEncoder</application> не доступно аудио, он просто
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1648 будет обрабатывать все кадры "как есть" и они не будут совпадать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1649 с окончательным аудиопотоком, когда Вы, например, объедините
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1650 аудио и видео дорожки в Matroska файл.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1651 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1652
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1653 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1654 Прежде всего, Вам необходимо преобразовать DVD звук в WAV файл,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1655 который может использоваться аудиокодеком в качестве входных
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1656 данных. Например:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1657 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1658 mplayer <replaceable>исходный_файл.vob</replaceable> \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1659 -ao pcm:file=<replaceable>звук.wav</replaceable> -vc dummy -aid 1 -vo null</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1660 сохранит вторую аудиодорожку из файла
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1661 <replaceable>исходный_файл.vob</replaceable> в файл
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1662 <replaceable>звук.wav</replaceable>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1663 Возможно, Вы захотите нормализировать звук перед кодированием,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1664 поскольку аудиодорожки DVD обычно записываются с маленькой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1665 громкостью.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1666 Вы можете использовать, например, утилиту <application>normalize</application>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1667 доступную в большинстве дистрибутивов.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1668 Если вы пользуетесь Window$, утилита <application>BeSweet</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1669 делает то же самое.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1670 Вы можете сжать в Vorbis или MP3. Например:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1671 <screen>oggenc -q1 <replaceable>звук.wav</replaceable></screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1672 кодирует <replaceable>звук.wav</replaceable> с качеством 1,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1673 что примерно эквивалентно 80 Кб/с и является минимальным качеством,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1674 при котором Вам нужно кодировать, если Вы заботитесь о качестве.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1675 Пожалуйста, обратите внимание, что <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1676 на данный момент не поддерживает мультиплексирование аудиопотоков
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1677 Vorbis в выходной файл, поскольку он поддерживает только AVI и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1678 MPEG контейнеры для выходных файлов, использование каждого из
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1679 которых может привести к проблемам A/V синхронизации с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1680 некоторыми плеерами, в случае когда AVI файл содержит VBR
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1681 аудиопотоки наподобие Vorbis.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1682 Не беспокойтесь, в данном документе будет рассказано как Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1683 можете это сделать с помощью сторонних программ.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1684 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1685
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1686 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1687
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1688
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1689 <sect2 id="menc-feat-dvd-mpeg4-muxing">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1690 <title>Мультиплексирование</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1691 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1692 Теперь, после того как Вы кодировали видео, скорее всего, Вы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1693 захотите мультиплексировать его с одним или несколькими
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1694 аудиопотоками в такие видео контейнеры как AVI, MPEG,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1695 Matroska или NUT.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1696 На данный момент встроенная поддержка вывода аудио и видео в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1697 <application>MEncoder</application> есть только для форматов
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1698 контейнеров MPEG и AVI.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1699 Например:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1700 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1701 mencoder -oac copy -ovc copy -o <replaceable>выходной_фильм.avi</replaceable> \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1702 -audiofile <replaceable>исходный_звук.mp2</replaceable> <replaceable>исходное_видео.avi</replaceable></screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1703 Это объединит видеофайл <replaceable>исходное_видео.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1704 и аудиофайл <replaceable>исходный_звук.mp2</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1705 в AVI файл <replaceable>выходной_фильм.avi</replaceable>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1706 Эта команда работает с MPEG-1 слой I, II и III (более
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1707 известный как MP3) аудио, WAV, а также с некоторыми иными
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1708 форматами аудио.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1709 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1710
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1711 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1712 <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1713 обладает экспериментальной поддержкой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1714 <systemitem class="library">libavformat</systemitem> &mdash;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1715 библиотеки из проекта FFmpeg, поддерживающей мультиплексирование
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1716 и демультиплексирование множества контейнеров.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1717 Например:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1718 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1719 mencoder -oac copy -ovc copy -o <replaceable>выходной_фильм.asf</replaceable> \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1720 -audiofile <replaceable>исходный_звук.mp2</replaceable> <replaceable>исходное_видео.avi</replaceable> \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1721 -of lavf -lavfopts format=asf</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1722 Это сделает то же самое, что и предыдущий пример, но выходным
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1723 контейнером будет ASF.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1724 Пожалуйста, обратите внимание, что эта поддержка весьма
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1725 экспериментальна (но становится лучше c каждым днём), и будет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1726 работать только в случае компиляции <application>MPlayer</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1727 с включенной поддержкой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1728 <systemitem class="library">libavformat</systemitem> (что означает,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1729 что в большинстве случаев бинарная версия из пакетов не будет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1730 работать).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1731 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1732
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1733
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1734 <sect3 id="menc-feat-dvd-mpeg4-muxing-filter-issues">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1735 <title>Улучшение мультиплексирования и надёжности A/V синхронизации</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1736 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1737 Вы можете столкнуться с некоторыми серьёзными проблемами A/V
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1738 синхронизации при попытке мультиплексирования вашего видео
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1739 с некоторыми аудиодорожками, где, как бы Вы не подбирали задержку
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1740 аудио, никогда не получается правильная синхронизация.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1741 Это может происходить при использовании некоторых видеофильтров,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1742 пропускающих или дублирующих некоторые кадры, например фильтров
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1743 обратного телесина.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1744 Настоятельно рекомендуется добавлять видеофильтр
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1745 <option>harddup</option> в конце цепочки фильтров для избежания
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1746 подобных проблем.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1747 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1748
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1749 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1750 Без опции <option>harddup</option>, в случае когда
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1751 <application>MEncoder</application> хочет дублировать кадр, он
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1752 полагается на то, что мультиплексор расположит отметку в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1753 контейнере таким образом, что последний кадр будет повторен для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1754 достижения синхронизации без реальной записи кадра.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1755 С опцией <option>harddup</option>, <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1756 вместо этого просто ещё раз поместит последний кадр в цепочку
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1757 фильтров.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1758 Это означает, что кодер получит <emphasis>точно</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1759 такой же кадр дважды и сожмёт его.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1760 Это приведёт у несколько большему файлу, но избавит от проблем
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1761 при демультиплексировании или ремультиплексировании с другими
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1762 форматами контейнеров.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1763 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1764
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1765 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1766 Также у Вас может не быть иного выбора, как использовать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1767 <option>harddup</option> с форматами контейнеров, которые
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1768 не слишком плотно связаны с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1769 <application>MEncoder</application>, например, с форматами,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1770 поддерживаемыми с помощью
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1771 <systemitem class="library">libavformat</systemitem>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1772 которые могут не поддерживать дублирование кадров на уровне
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1773 контейнера.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1774 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1775 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1776
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1777
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1778 <sect3 id="menc-feat-dvd-mpeg4-muxing-avi-limitations">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1779 <title>Ограничения контейнера AVI</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1780 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1781 Хотя это самый широко распостранённый формат контейнера после
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1782 MPEG-1, он также обладает некоторыми существенными недостатками.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1783 Пожалуй, они наиболее очевидны в его избыточности.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1784 Для каждой цепочки AVI файла теряется 24 байта на заголовки и
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1785 индекс.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1786 Это приводит к чуть более 5 МБ/час или 1.0-2.5% избыточности
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1787 для 700 МБ фильма. Это не кажется большим, но может означать
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1788 разницу между возможностью использования 700 кбит/сек или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1789 714 кбит/сек в случаях, когда каждый бит на счету.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1790 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1791
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1792 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1793 В дополнение к малой эффективности, AVI также обладает следующими
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1794 серьёзными ограничениями:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1795 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1796
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1797 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1798 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1799 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1800 Может быть сохранено только содержимое с фиксированной частотой
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1801 кадров. В частности, это особенно ограничивает, когда Ваш
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1802 исходный материал смешанного содержимого: например, является
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1803 смесью NTSC видео и киноматериала.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1804 В действительности, есть хаки, позволяющие сохранять содержимое
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1805 с переменным fps в AVI, но они увеличивают (и без того большую)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1806 избыточность впятеро или более того и поэтому непрактичны.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1807 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1808 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1809 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1810 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1811 Аудио в AVI файлах должно быть или с постоянным битпотоком (CBR)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1812 или с постоянным размером кадра (т.е. все кадры декодируются
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1813 в одно и то же число выборок).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1814 К сожалению, самый эффективный кодек, Vorbis, не удовлетворяет
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1815 ни одному из данных требований.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1816 Поэтому, если Вы планируете сохранять Ваш фильм в AVI, Вы должны
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1817 использовать менее эффективный кодек, такой как MP3 или AC3.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1818 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1819 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1820 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1821
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1822 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1823 Сказав всё это, отметим, что <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1824 на данный момент не поддерживает вывод с переменным fps или
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1825 Vorbis кодирование.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1826 Поэтому Вы можете не рассматривать всё это как ограничения, если
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1827 <application>MEncoder</application> &mdash; это единственный
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1828 инструмент, который Вы используете для кодирования.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1829 Однако, возможно использовать <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1830 только для кодирования видео и затем использовать внешние
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1831 утилиты для кодирования аудио и мультиплексирования его в
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1832 контейнер другого формата.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1833 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1834 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1835
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1836 <sect3 id="menc-feat-dvd-mpeg4-muxing-matroska">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1837 <title>Мультиплексирование в контейнер Matroska (Матрёшка)</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1838 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1839 Matroska &mdash; это свободный, открытый стандарт формата
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1840 контейнера, нацеленный на предоставление большого количества
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1841 продвинутых возможностей, которые старые контейнеры (наподобие
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1842 AVI) не поддерживают.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1843 Например, Matroska поддерживает аудиосодержимое с переменным
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1844 битпотоком (VBR), переменные частоты кадров (VFR), разделы,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1845 файловые вложения, код обнаружения ошибок (EDC) и современные
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1846 A/V кодеки, такие как "Продвинутое Аудио Кодирование" ("Advanced
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1847 Audio Coding", AAC), "Vorbis" или "MPEG-4 AVC" (H.264), также
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1848 не поддерживаемые AVI.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1849 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1850
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1851 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1852 Утилиты, необходимые для создания Matroska файлов, сообща
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1853 называются <application>mkvtoolnix</application>, и доступны
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1854 для большиства Unix платформ, так же как и для Window$.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1855 Поскольку Matroska &mdash; открытый формат, Вы можете найти
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1856 иные утилиты, которые лучше Вам подходят, но поскольку
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1857 <application>mkvtoolnix</application> &mdash; наиболее общие
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1858 и поддерживаются самой командой разработчиков Matroska, мы
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1859 будем обсуждать только их использование.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1860 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1861
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1862 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1863 Возможно, самым простым способом начать использовать Matroska
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1864 является использование <application>MMG</application>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1865 графической оболочки, поставляемой с
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1866 <application>mkvtoolnix</application>. Следуйте
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1867 <ulink url="http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge-gui.html">руководству к mkvmerge GUI (mmg)</ulink>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1868 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1869
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1870 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1871 Также Вы можете мультиплексировать аудио и видео файлы используя
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1872 командную строку:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1873 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1874 mkvmerge -o <replaceable>выходной_файл.mkv</replaceable> <replaceable>входное_видео.avi</replaceable> \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1875 <replaceable>входное_аудио1.mp3</replaceable> <replaceable>входное_аудио2.ac3</replaceable></screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1876 Это объединит видеофайл <replaceable>входное_видео.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1877 и два аудиофайла <replaceable>входное_аудио1.mp3</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1878 и <replaceable>входное_аудио2.ac3</replaceable> в Matroska
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1879 файл <replaceable>выходной_файл.mkv</replaceable>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1880 Как было отмечено ранее, Matroska способна реализовать гораздо
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1881 большее, например, множественные аудиодорожки (включая тонкую
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1882 настройку аудио/видео синхронизации), разделы, субтитры,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1883 разбиение и т.д..
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1884 Пожалуйста, обратитесь к документации на эти приложения для
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1885 деталей.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1886 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1887
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1888 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1889
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1890 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1891
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1892 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1893
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1894 <sect1 id="menc-feat-telecine">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1895 <title>How to deal with telecine and interlacing within NTSC DVDs</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1896
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1897 <sect2 id="menc-feat-telecine-intro">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1898 <title>Introduction</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1899 <formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1900 <title>What is telecine?</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1901 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1902 If you do not understand much of what is written in this document,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1903 read the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1904 <ulink url="http://en.wikipedia.org/wiki/Telecine">Wikipedia entry on telecine</ulink>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1905 It is an understandable and reasonably comprehensive
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1906 description of what telecine is.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1907 </para></formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1908
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1909 <formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1910 <title>A note about the numbers.</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1911 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1912 Many documents, including the guide linked above, refer to the fields
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1913 per second value of NTSC video as 59.94 and the corresponding frames
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1914 per second values as 29.97 (for telecined and interlaced) and 23.976
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1915 (for progressive). For simplicity, some documents even round these
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1916 numbers to 60, 30, and 24.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1917 </para></formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1918
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1919 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1920 Strictly speaking, all those numbers are approximations. Black and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1921 white NTSC video was exactly 60 fields per second, but 60000/1001
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1922 was later chosen to accomodate color data while remaining compatible
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1923 with contemporary black and white televisions. Digital NTSC video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1924 (such as on a DVD) is also 60000/1001 fields per second. From this,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1925 interlaced and telecined video are derived to be 30000/1001 frames
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1926 per second; progressive video is 24000/1001 frames per second.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1927 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1928
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1929 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1930 Older versions of the <application>MEncoder</application> documentation
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1931 and many archived mailing list posts refer to 59.94, 29.97, and 23.976.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1932 All <application>MEncoder</application> documentation has been updated
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1933 to use the fractional values, and you should use them too.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1934 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1935
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1936 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1937 <option>-ofps 23.976</option> is incorrect.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1938 <option>-ofps 24000/1001</option> should be used instead.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1939 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1940
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1941 <formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1942 <title>How telecine is used.</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1943 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1944 All video intended to be displayed on an NTSC
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1945 television set must be 60000/1001 fields per second. Made-for-TV movies
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1946 4 and shows are often filmed directly at 60000/1001 fields per second, but
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1947 the majority of cinema is filmed at 24 or 24000/1001 frames per
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1948 second. When cinematic movie DVDs are mastered, the video is then
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1949 converted for television using a process called telecine.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1950 </para></formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1951
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1952 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1953 On a DVD, the video is never actually stored as 60000/1001 fields per
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1954 second. For video that was originally 60000/1001, each pair of fields is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1955 combined to form a frame, resulting in 30000/1001 frames per
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1956 second. Hardware DVD players then read a flag embedded in the video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1957 stream to determine whether the odd- or even-numbered lines should
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1958 form the first field.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1959 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1960
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1961 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1962 Usually, 24000/1001 frames per second content stays as it is when
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1963 encoded for a DVD, and the DVD player must perform telecining
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1964 on-the-fly. Sometimes, however, the video is telecined
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1965 <emphasis>before</emphasis> being stored on the DVD; even though it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1966 was originally 24000/1001 frames per second, it becomes 60000/1001 fields per
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1967 second. When it is stored on the DVD, pairs of fields are combined to form
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1968 30000/1001 frames per second.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1969 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1970
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1971 <para>
21018
51575db8d5c0 fix wrong 60000/10001 fraction
kraymer
parents: 20880
diff changeset
1972 When looking at individual frames formed from 60000/1001 fields per
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1973 second video, telecined or otherwise, interlacing is clearly visible
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1974 wherever there is any motion, because one field (say, the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1975 even-numbered lines) represents a moment in time 1/(60000/1001)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1976 seconds later than the other. Playing interlaced video on a computer
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1977 looks ugly both because the monitor is higher resolution and because
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1978 the video is shown frame-after-frame instead of field-after-field.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1979 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1980
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1981 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1982 <title>Notes:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1983 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1984 This section only applies to NTSC DVDs, and not PAL.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1985 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1986 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1987 The example <application>MEncoder</application> lines throughout the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1988 document are <emphasis role="bold">not</emphasis> intended for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1989 actual use. They are simply the bare minimum required to encode the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1990 pertaining video category. How to make good DVD rips or fine-tune
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1991 <systemitem class="library">libavcodec</systemitem> for maximal
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1992 quality is not within the scope of this document.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1993 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1994 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1995 There are a couple footnotes specific to this guide, linked like this:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1996 <link linkend="menc-feat-telecine-footnotes">[1]</link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1997 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1998 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
1999 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2000
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2001 <sect2 id="menc-feat-telecine-ident">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2002 <title>How to tell what type of video you have</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2003
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2004 <sect3 id="menc-feat-telecine-ident-progressive">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2005 <title>Progressive</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2006 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2007 Progressive video was originally filmed at 24000/1001 fps, and stored
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2008 on the DVD without alteration.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2009 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2010
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2011 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2012 When you play a progressive DVD in <application>MPlayer</application>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2013 <application>MPlayer</application> will print the following line as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2014 soon as the movie begins to play:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2015
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2016 <screen> demux_mpg: 24000/1001 fps progressive NTSC content detected, switching framerate.</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2017
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2018 From this point forward, demux_mpg should never say it finds
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2019 &quot;30000/1001 fps NTSC content.&quot;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2020 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2021
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2022 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2023 When you watch progressive video, you should never see any
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2024 interlacing. Beware, however, because sometimes there is a tiny bit
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2025 of telecine mixed in where you would not expect. I have encountered TV
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2026 show DVDs that have one second of telecine at every scene change, or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2027 at seemingly random places. I once watched a DVD that had a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2028 progressive first half, and the second half was telecined. If you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2029 want to be <emphasis>really</emphasis> thorough, you can scan the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2030 entire movie:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2031
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2032 <screen>mplayer dvd://1 -nosound -vo null -benchmark</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2033
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2034 Using <option>-benchmark</option> makes
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2035 <application>MPlayer</application> play the movie as quickly as it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2036 possibly can; still, depending on your hardware, it can take a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2037 while. Every time demux_mpg reports a framerate change, the line
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2038 immediately above will show you the time at which the change
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2039 occurred.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2040 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2041
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2042 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2043 Sometimes progressive video on DVDs is referred to as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2044 &quot;soft-telecine&quot; because it is intended to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2045 be telecined by the DVD player.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2046 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2047 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2048
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2049 <sect3 id="menc-feat-telecine-ident-telecined">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2050 <title>Telecined</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2051 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2052 Telecined video was originally filmed at 24000/1001, but was telecined
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2053 <emphasis>before</emphasis> it was written to the DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2054 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2055
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2056 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2057 <application>MPlayer</application> does not (ever) report any
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2058 framerate changes when it plays telecined video.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2059 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2060
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2061 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2062 Watching a telecined video, you will see interlacing artifacts that
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2063 seem to &quot;blink&quot;: they repeatedly appear and disappear.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2064 You can look closely at this by
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2065 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2066 <listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2067 <screen>mplayer dvd://1</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2068 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2069 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2070 Seek to a part with motion.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2071 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2072 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2073 Use the <keycap>.</keycap> key to step forward one frame at a time.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2074 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2075 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2076 Look at the pattern of interlaced-looking and progressive-looking
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2077 frames. If the pattern you see is PPPII,PPPII,PPPII,... then the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2078 video is telecined. If you see some other pattern, then the video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2079 may have been telecined using some non-standard method;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2080 <application>MEncoder</application> cannot losslessly convert
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2081 non-standard telecine to progressive. If you do not see any
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2082 pattern at all, then it is most likely interlaced.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2083 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2084 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2085 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2086
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2087 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2088 Sometimes telecined video on DVDs is referred to as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2089 &quot;hard-telecine&quot;. Since hard-telecine is already 60000/1001 fields
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2090 per second, the DVD player plays the video without any manipulation.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2091 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2092
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2093 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2094 Another way to tell if your source is telecined or not is to play
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2095 the source with the <option>-vf pullup</option> and <option>-v</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2096 command line options to see how <option>pullup</option> matches frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2097 If the source is telecined, you should see on the console a 3:2 pattern
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2098 with <systemitem>0+.1.+2</systemitem> and <systemitem>0++1</systemitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2099 alternating.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2100 This technique has the advantage that you do not need to watch the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2101 source to identify it, which could be useful if you wish to automate
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2102 the encoding procedure, or to carry out said procedure remotely via
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2103 a slow connection.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2104 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2105
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2106 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2107
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2108 <sect3 id="menc-feat-telecine-ident-interlaced">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2109 <title>Interlaced</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2110 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2111 Interlaced video was originally filmed at 60000/1001 fields per second,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2112 and stored on the DVD as 30000/1001 frames per second. The interlacing effect
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2113 (often called &quot;combing&quot;) is a result of combining pairs of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2114 fields into frames. Each field is supposed to be 1/(60000/1001) seconds apart,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2115 and when they are displayed simultaneously the difference is apparent.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2116 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2117
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2118 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2119 As with telecined video, <application>MPlayer</application> should
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2120 not ever report any framerate changes when playing interlaced content.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2121 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2122
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2123 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2124 When you view an interlaced video closely by frame-stepping with the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2125 <keycap>.</keycap> key, you will see that every single frame is interlaced.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2126 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2127 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2128
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2129 <sect3 id="menc-feat-telecine-ident-mixedpt">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2130 <title>Mixed progressive and telecine</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2131 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2132 All of a &quot;mixed progressive and telecine&quot; video was originally
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2133 24000/1001 frames per second, but some parts of it ended up being telecined.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2134 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2135
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2136 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2137 When <application>MPlayer</application> plays this category, it will
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2138 (often repeatedly) switch back and forth between &quot;30000/1001 fps NTSC&quot;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2139 and &quot;24000/1001 fps progressive NTSC&quot;. Watch the bottom of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2140 <application>MPlayer</application>'s output to see these messages.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2141 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2142
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2143 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2144 You should check the &quot;30000/1001 fps NTSC&quot; sections to make sure
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2145 they are actually telecine, and not just interlaced.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2146 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2147 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2148
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2149 <sect3 id="menc-feat-telecine-ident-mixedpi">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2150 <title>Mixed progressive and interlaced</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2151 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2152 In &quot;mixed progressive and interlaced&quot; content, progressive
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2153 and interlaced video have been spliced together.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2154 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2155
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2156 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2157 This category looks just like &quot;mixed progressive and telecine&quot;,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2158 until you examine the 30000/1001 fps sections and see that they do not have the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2159 telecine pattern.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2160 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2161 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2162
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2163 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2164
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2165 <sect2 id="menc-feat-telecine-encode">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2166 <title>How to encode each category</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2167 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2168 As I mentioned in the beginning, example <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2169 lines below are <emphasis role="bold">not</emphasis> meant to actually be used;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2170 they only demonstrate the minimum parameters to properly encode each category.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2171 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2172
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2173 <sect3 id="menc-feat-telecine-encode-progressive">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2174 <title>Progressive</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2175 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2176 Progressive video requires no special filtering to encode. The only
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2177 parameter you need to be sure to use is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2178 <option>-ofps 24000/1001</option>. Otherwise, <application>MEncoder</application>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2179 will try to encode at 30000/1001 fps and will duplicate frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2180 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2181
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2182 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2183 <screen>mencoder dvd://1 -oac copy -ovc lavc -ofps 24000/1001</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2184 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2185
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2186 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2187 It is often the case, however, that a video that looks progressive
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2188 actually has very short parts of telecine mixed in. Unless you are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2189 sure, it is safest to treat the video as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2190 <link linkend="menc-feat-telecine-encode-mixedpt">mixed progressive and telecine</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2191 The performance loss is small
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2192 <link linkend="menc-feat-telecine-footnotes">[3]</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2193 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2194 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2195
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2196 <sect3 id="menc-feat-telecine-encode-telecined">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2197 <title>Telecined</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2198 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2199 Telecine can be reversed to retrieve the original 24000/1001 content,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2200 using a process called inverse-telecine.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2201 <application>MPlayer</application> contains several filters to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2202 accomplish this; the best filter, <option>pullup</option>, is described
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2203 in the <link linkend="menc-feat-telecine-encode-mixedpt">mixed
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2204 progressive and telecine</link> section.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2205 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2206 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2207
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2208 <sect3 id="menc-feat-telecine-encode-interlaced">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2209 <title>Interlaced</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2210 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2211 For most practical cases it is not possible to retrieve a complete
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2212 progressive video from interlaced content. The only way to do so
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2213 without losing half of the vertical resolution is to double the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2214 framerate and try to &quot;guess&quot; what ought to make up the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2215 corresponding lines for each field (this has drawbacks - see method
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2216 3).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2217 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2218
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2219 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2220 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2221
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2222 Encode the video in interlaced form. Normally, interlacing wreaks
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2223 havoc with the encoder's ability to compress well, but
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2224 <systemitem class="library">libavcodec</systemitem> has two
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2225 parameters specifically for dealing with storing interlaced video a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2226 bit better: <option> ildct</option> and <option>ilme</option>. Also,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2227 using <option>mbd=2</option> is strongly recommended
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2228 <link linkend="menc-feat-telecine-footnotes">[2] </link> because it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2229 will encode macroblocks as non-interlaced in places where there is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2230 no motion. Note that <option>-ofps</option> is NOT needed here.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2231
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2232 <screen>mencoder dvd://1 -oac copy -ovc lavc -lavcopts ildct:ilme:mbd=2</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2233 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2234 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2235 Use a deinterlacing filter before encoding. There are several of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2236 these filters available to choose from, each with its own advantages
21134
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2237 and disadvantages. Consult <option>mplayer -pphelp</option> and
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2238 <option>mplayer -vf help</option> to see what is available
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2239 (grep for &quot;deint&quot;), read Michael's Niedermayer
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2240 <ulink url="http://guru.multimedia.cx/deinterlacing-filters/">Deinterlacing filters comparison</ulink>,
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2241 and search the
21385
70b9b7400bc3 r21372: Some punctuation cosmetics and better wording
voroshil
parents: 21134
diff changeset
2242 <ulink url="http://www.mplayerhq.hu/design7/mailing_lists.html">
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2243 MPlayer mailing lists</ulink> to find many discussions about the
21134
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2244 various filters.
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2245 Again, the framerate is not changing, so no
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2246 <option>-ofps</option>. Also, deinterlacing should be done after
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2247 cropping <link linkend="menc-feat-telecine-footnotes">[1]</link> and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2248 before scaling.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2249
21134
d3ef4ae45375 r21078: add a link to Michael's de-interlacing filters...
voroshil
parents: 21051
diff changeset
2250 <screen>mencoder dvd://1 -oac copy -vf yadif -ovc lavc</screen>
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2251 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2252 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2253 Unfortunately, this option is buggy with
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2254 <application>MEncoder</application>; it ought to work well with
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2255 <application>MEncoder G2</application>, but that is not here yet. You
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2256 might experience crahes. Anyway, the purpose of <option> -vf
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2257 tfields</option> is to create a full frame out of each field, which
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2258 makes the framerate 60000/1001. The advantage of this approach is that no
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2259 data is ever lost; however, since each frame comes from only one
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2260 field, the missing lines have to be interpolated somehow. There are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2261 no very good methods of generating the missing data, and so the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2262 result will look a bit similar to when using some deinterlacing
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2263 filters. Generating the missing lines creates other issues, as well,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2264 simply because the amount of data doubles. So, higher encoding
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2265 bitrates are required to maintain quality, and more CPU power is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2266 used for both encoding and decoding. tfields has several different
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2267 options for how to create the missing lines of each frame. If you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2268 use this method, then Reference the manual, and chose whichever
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2269 option looks best for your material. Note that when using
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2270 <option>tfields</option> you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2271 <emphasis role="bold">have to</emphasis> specify both
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2272 <option>-fps</option> and <option>-ofps</option> to be twice the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2273 framerate of your original source.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2274
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2275 <screen>mencoder dvd://1 -oac copy -vf tfields=2 -ovc lavc -fps 60000/1001 -ofps 60000/1001</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2276 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2277 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2278 If you plan on downscaling dramatically, you can extract and encode
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2279 only one of the two fields. Of course, you will lose half the vertical
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2280 resolution, but if you plan on downscaling to at most 1/2 of the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2281 original, the loss will not matter much. The result will be a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2282 progressive 30000/1001 frames per second file. The procedure is to use
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2283 <option>-vf field</option>, then crop
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2284 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2285 appropriately. Remember that you will have to adjust the scale to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2286 compensate for the vertical resolution being halved.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2287 <screen>mencoder dvd://1 -oac copy -vf field=0 -ovc lavc</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2288 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2289 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2290 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2291
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2292 <sect3 id="menc-feat-telecine-encode-mixedpt">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2293 <title>Mixed progressive and telecine</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2294 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2295 In order to turn mixed progressive and telecine video into entirely
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2296 progressive video, the telecined parts have to be
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2297 inverse-telecined. There are three ways to accomplish this,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2298 described below. Note that you should
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2299 <emphasis role="bold">always</emphasis> inverse-telecine before any
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2300 rescaling; unless you really know what you are doing,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2301 inverse-telecine before cropping, too
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2302 <link linkend="menc-feat-telecine-footnotes">[1]</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2303 <option>-ofps 24000/1001</option> is needed here because the output video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2304 will be 24000/1001 frames per second.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2305 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2306
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2307 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2308 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2309 <option>-vf pullup</option> is designed to inverse-telecine
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2310 telecined material while leaving progressive data alone. In order to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2311 work properly, <option>pullup</option> <emphasis role="bold">must</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2312 be followed by the <option>softskip</option> filter or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2313 else <application>MEncoder</application> will crash.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2314 <option>pullup</option> is, however, the cleanest and most
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2315 accurate method available for encoding both telecine and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2316 &quot;mixed progressive and telecine&quot;.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2317
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2318 <screen>mencoder dvd://1 -oac copy -vf pullup,softskip -ovc lavc -ofps 24000/1001</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2319 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2320
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2321
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2322 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2323 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2324 An older method
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2325 is to, rather than inverse-telecine the telecined parts, telecine
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2326 the non-telecined parts and then inverse-telecine the whole
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2327 video. Sound confusing? softpulldown is a filter that goes through
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2328 a video and makes the entire file telecined. If we follow
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2329 softpulldown with either <option>detc</option> or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2330 <option>ivtc</option>, the final result will be entirely
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2331 progressive. <option>-ofps 24000/1001</option> is needed.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2332
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2333 <screen>mencoder dvd://1 -oac copy -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2334 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2335 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2336
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2337 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2338 I have not used <option>-vf filmdint</option> myself, but here is what
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2339 D Richard Felker III has to say:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2340
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2341 <blockquote><para>It is OK, but IMO it tries to deinterlace rather
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2342 than doing inverse telecine too often (much like settop DVD
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2343 players &amp; progressive TVs) which gives ugly flickering and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2344 other artifacts. If you are going to use it, you at least need to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2345 spend some time tuning the options and watching the output first
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2346 to make sure it is not messing up.</para></blockquote>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2347 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2348 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2349 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2350
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2351 <sect3 id="menc-feat-telecine-encode-mixedpi">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2352 <title>Mixed progressive and interlaced</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2353 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2354 There are two options for dealing with this category, each of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2355 which is a compromise. You should decide based on the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2356 duration/location of each type.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2357 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2358
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2359 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2360 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2361 Treat it as progressive. The interlaced parts will look interlaced,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2362 and some of the interlaced fields will have to be dropped, resulting
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2363 in a bit of uneven jumpiness. You can use a postprocessing filter if
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2364 you want to, but it may slightly degrade the progressive parts.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2365 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2366
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2367 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2368 This option should definitely not be used if you want to eventually
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2369 display the video on an interlaced device (with a TV card, for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2370 example). If you have interlaced frames in a 24000/1001 frames per
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2371 second video, they will be telecined along with the progressive
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2372 frames. Half of the interlaced "frames" will be displayed for three
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2373 fields' duration (3/(60000/1001) seconds), resulting in a flicking
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2374 &quot;jump back in time&quot; effect that looks quite bad. If you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2375 even attempt this, you <emphasis role="bold">must</emphasis> use a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2376 deinterlacing filter like <option>lb</option> or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2377 <option>l5</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2378 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2379
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2380 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2381 It may also be a bad idea for progressive display, too. It will drop
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2382 pairs of consecutive interlaced fields, resulting in a discontinuity
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2383 that can be more visible than with the second method, which shows
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2384 some progressive frames twice. 30000/1001 frames per second interlaced
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2385 video is already a bit choppy because it really should be shown at
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2386 60000/1001 fields per second, so the duplicate frames do not stand out as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2387 much.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2388 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2389
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2390 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2391 Either way, it is best to consider your content and how you intend to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2392 display it. If your video is 90% progressive and you never intend to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2393 show it on a TV, you should favor a progressive approach. If it is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2394 only half progressive, you probably want to encode it as if it is all
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2395 interlaced.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2396 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2397 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2398
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2399 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2400 Treat it as interlaced. Some frames of the progressive parts will
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2401 need to be duplicated, resulting in uneven jumpiness. Again,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2402 deinterlacing filters may slightly degrade the progressive parts.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2403 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2404
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2405 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2406 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2407
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2408 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2409
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2410 <sect2 id="menc-feat-telecine-footnotes">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2411 <title>Footnotes</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2412 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2413 <listitem><formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2414 <title>About cropping:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2415 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2416 Video data on DVDs are stored in a format called YUV 4:2:0. In YUV
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2417 video, luma (&quot;brightness&quot;) and chroma (&quot;color&quot;)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2418 are stored separately. Because the human eye is somewhat less
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2419 sensitive to color than it is to brightness, in a YUV 4:2:0 picture
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2420 there is only one chroma pixel for every four luma pixels. In a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2421 progressive picture, each square of four luma pixels (two on each
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2422 side) has one common chroma pixel. You must crop progressive YUV
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2423 4:2:0 to even resolutions, and use even offsets. For example,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2424 <option>crop=716:380:2:26</option> is OK but
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2425 <option>crop=716:380:3:26 </option> is not.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2426 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2427 </formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2428
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2429 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2430 When you are dealing with interlaced YUV 4:2:0, the situation is a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2431 bit more complicated. Instead of every four luma pixels in the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2432 <emphasis>frame</emphasis> sharing a chroma pixel, every four luma
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2433 pixels in each <emphasis> field</emphasis> share a chroma
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2434 pixel. When fields are interlaced to form a frame, each scanline is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2435 one pixel high. Now, instead of all four luma pixels being in a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2436 square, there are two pixels side-by-side, and the other two pixels
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2437 are side-by-side two scanlines down. The two luma pixels in the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2438 intermediate scanline are from the other field, and so share a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2439 different chroma pixel with two luma pixels two scanlines away. All
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2440 this confusion makes it necessary to have vertical crop dimensions
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2441 and offsets be multiples of four. Horizontal can stay even.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2442 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2443
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2444 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2445 For telecined video, I recommend that cropping take place after
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2446 inverse telecining. Once the video is progressive you only need to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2447 crop by even numbers. If you really want to gain the slight speedup
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2448 that cropping first may offer, you must crop vertically by multiples
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2449 of four or else the inverse-telecine filter will not have proper data.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2450 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2451
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2452 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2453 For interlaced (not telecined) video, you must always crop
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2454 vertically by multiples of four unless you use <option>-vf
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2455 field</option> before cropping.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2456 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2457 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2458
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2459 <listitem><formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2460 <title>About encoding parameters and quality:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2461 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2462 Just because I recommend <option>mbd=2</option> here does not mean it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2463 should not be used elsewhere. Along with <option>trell</option>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2464 <option>mbd=2</option> is one of the two
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2465 <systemitem class="library">libavcodec</systemitem> options that
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2466 increases quality the most, and you should always use at least those
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2467 two unless the drop in encoding speed is prohibitive (e.g. realtime
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2468 encoding). There are many other options to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2469 <systemitem class="library">libavcodec</systemitem> that increase
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2470 encoding quality (and decrease encoding speed) but that is beyond
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2471 the scope of this document.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2472 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2473 </formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2474 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2475
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2476 <listitem><formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2477 <title>About the performance of pullup:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2478 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2479 It is safe to use <option>pullup</option> (along with <option>softskip
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2480 </option>) on progressive video, and is usually a good idea unless
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2481 the source has been definitively verified to be entirely progressive.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2482 The performace loss is small for most cases. On a bare-minimum encode,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2483 <option>pullup</option> causes <application>MEncoder</application> to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2484 be 50% slower. Adding sound processing and advanced <option>lavcopts
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2485 </option> overshadows that difference, bringing the performance
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2486 decrease of using <option>pullup</option> down to 2%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2487 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2488 </formalpara>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2489 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2490
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2491 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2492
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2493 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2494
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2495 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2496
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2497
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2498 <sect1 id="menc-feat-enc-libavcodec">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2499 <title>Encoding with the <systemitem class="library">libavcodec</systemitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2500 codec family</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2501
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2502 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2503 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2504 provides simple encoding to a lot of interesting video and audio formats.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2505 You can encode to the following codecs (more or less up to date):
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2506 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2507
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2508 <sect2 id="menc-feat-enc-libavcodec-video-codecs">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2509 <title><systemitem class="library">libavcodec</systemitem>'s video codecs</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2510
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2511 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2512 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2513 <tgroup cols="2">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2514 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2515 <row><entry>Video codec name</entry><entry>Description</entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2516 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2517 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2518 <row><entry>mjpeg</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2519 Motion JPEG
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2520 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2521 <row><entry>ljpeg</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2522 lossless JPEG
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2523 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2524 <row><entry>h261</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2525 H.261
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2526 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2527 <row><entry>h263</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2528 H.263
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2529 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2530 <row><entry>h263p</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2531 H.263+
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2532 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2533 <row><entry>mpeg4</entry><entry>
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
2534 ISO standard MPEG-4 (DivX, Xvid compatible)
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2535 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2536 <row><entry>msmpeg4</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2537 pre-standard MPEG-4 variant by MS, v3 (AKA DivX3)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2538 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2539 <row><entry>msmpeg4v2</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2540 pre-standard MPEG-4 by MS, v2 (used in old ASF files)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2541 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2542 <row><entry>wmv1</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2543 Windows Media Video, version 1 (AKA WMV7)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2544 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2545 <row><entry>wmv2</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2546 Windows Media Video, version 2 (AKA WMV8)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2547 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2548 <row><entry>rv10</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2549 RealVideo 1.0
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2550 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2551 <row><entry>rv20</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2552 RealVideo 2.0
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2553 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2554 <row><entry>mpeg1video</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2555 MPEG-1 video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2556 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2557 <row><entry>mpeg2video</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2558 MPEG-2 video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2559 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2560 <row><entry>huffyuv</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2561 lossless compression
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2562 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2563 <row><entry>asv1</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2564 ASUS Video v1
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2565 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2566 <row><entry>asv2</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2567 ASUS Video v2
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2568 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2569 <row><entry>ffv1</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2570 FFmpeg's lossless video codec
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2571 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2572 <row><entry>svq1</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2573 Sorenson video 1
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2574 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2575 <row><entry>flv</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2576 Sorenson H.263 used in Flash Video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2577 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2578 <row><entry>dvvideo</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2579 Sony Digital Video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2580 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2581 <row><entry>snow</entry><entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2582 FFmpeg's experimental wavelet-based codec
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2583 </entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2584 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2585 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2586 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2587
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2588 The first column contains the codec names that should be passed after the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2589 <literal>vcodec</literal> config, like: <option>-lavcopts vcodec=msmpeg4</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2590 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2591 <informalexample>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2592 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2593 An example with MJPEG compression:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2594 <screen>mencoder dvd://2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2595 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2596 </informalexample>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2597 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2598
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2599 <sect2 id="menc-feat-enc-libavcodec-audio-codecs">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2600 <title><systemitem class="library">libavcodec</systemitem>'s audio codecs</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2601 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2602 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2603 <tgroup cols="2">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2604 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2605 <row><entry>Audio codec name</entry><entry>Description</entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2606 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2607 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2608 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2609 <entry>mp2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2610 <entry>MPEG Layer 2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2611 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2612 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2613 <entry>ac3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2614 <entry>AC3, AKA Dolby Digital</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2615 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2616 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2617 <entry>adpcm_ima_wav</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2618 <entry>IMA adaptive PCM (4 bits per sample, 4:1 compression)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2619 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2620 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2621 <entry>sonic</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2622 <entry>experimental lossy/lossless codec</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2623 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2624 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2625 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2626 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2627
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2628 The first column contains the codec names that should be passed after the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2629 <literal>acodec</literal> option, like: <option>-lavcopts acodec=ac3</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2630 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2631
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2632 <informalexample>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2633 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2634 An example with AC3 compression:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2635 <screen>mencoder dvd://2 -o title2.avi -oac lavc -lavcopts acodec=ac3 -ovc copy</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2636 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2637 </informalexample>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2638
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2639 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2640 Contrary to <systemitem class="library">libavcodec</systemitem>'s video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2641 codecs, its audio codecs do not make a wise usage of the bits they are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2642 given as they lack some minimal psychoacoustic model (if at all)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2643 which most other codec implementations feature.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2644 However, note that all these audio codecs are very fast and work
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2645 out-of-the-box everywhere <application>MEncoder</application> has been
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2646 compiled with <systemitem class="library">libavcodec</systemitem> (which
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2647 is the case most of time), and do not depend on external libraries.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2648 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2649 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2650
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2651
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2652 <sect2 id="menc-feat-dvd-mpeg4-lavc-encoding-options">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2653 <title>Encoding options of libavcodec</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2654
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2655 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2656 Ideally, you would probably want to be able to just tell the encoder to switch
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2657 into "high quality" mode and move on.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2658 That would probably be nice, but unfortunately hard to implement as different
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2659 encoding options yield different quality results depending on the source material.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2660 That is because compression depends on the visual properties of the video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2661 in question.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2662 For example, anime and live action have very different properties and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2663 thus require different options to obtain optimum encoding.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2664 The good news is that some options should never be left out, like
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2665 <option>mbd=2</option>, <option>trell</option>, and <option>v4mv</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2666 See below for a detailed description of common encoding options.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2667 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2668
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2669
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2670 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2671 <title>Options to adjust:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2672 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2673 <emphasis role="bold">vmax_b_frames</emphasis>: 1 or 2 is good, depending on
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2674 the movie.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2675 Note that if you need to have your encode be decodable by DivX5, you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2676 need to activate closed GOP support, using
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2677 <systemitem class="library">libavcodec</systemitem>'s <option>cgop</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2678 option, but you need to deactivate scene detection, which
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2679 is not a good idea as it will hurt encode efficiency a bit.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2680 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2681
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2682 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2683 <emphasis role="bold">vb_strategy=1</emphasis>: helps in high-motion scenes.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2684 On some videos, vmax_b_frames may hurt quality, but vmax_b_frames=2 along
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2685 with vb_strategy=1 helps.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2686 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2687
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2688 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2689 <emphasis role="bold">dia</emphasis>: motion search range. Bigger is better
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2690 and slower.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2691 Negative values are a completely different scale.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2692 Good values are -1 for a fast encode, or 2-4 for slower.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2693 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2694
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2695 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2696 <emphasis role="bold">predia</emphasis>: motion search pre-pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2697 Not as important as dia. Good values are 1 (default) to 4. Requires preme=2
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2698 to really be useful.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2699 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2700
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2701 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2702 <emphasis role="bold">cmp, subcmp, precmp</emphasis>: Comparison function for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2703 motion estimation.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2704 Experiment with values of 0 (default), 2 (hadamard), 3 (dct), and 6 (rate
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2705 distortion).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2706 0 is fastest, and sufficient for precmp.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2707 For cmp and subcmp, 2 is good for anime, and 3 is good for live action.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2708 6 may or may not be slightly better, but is slow.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2709 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2710
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2711 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2712 <emphasis role="bold">last_pred</emphasis>: Number of motion predictors to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2713 take from the previous frame.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2714 1-3 or so help at little speed cost.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2715 Higher values are slow for no extra gain.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2716 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2717
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2718 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2719 <emphasis role="bold">cbp, mv0</emphasis>: Controls the selection of macroblocks.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2720 Small speed cost for small quality gain.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2721 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2722
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2723 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2724 <emphasis role="bold">qprd</emphasis>: adaptive quantization based on the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2725 macroblock's complexity.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2726 May help or hurt depending on the video and other options.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2727 This can cause artifacts unless you set vqmax to some reasonably small value
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2728 (6 is good, maybe as low as 4); vqmin=1 should also help.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2729 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2730
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2731 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2732 <emphasis role="bold">qns</emphasis>: very slow, especially when combined
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2733 with qprd.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2734 This option will make the encoder minimize noise due to compression
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2735 artifacts instead of making the encoded video strictly match the source.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2736 Do not use this unless you have already tweaked everything else as far as it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2737 will go and the results still are not good enough.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2738 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2739
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2740 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2741 <emphasis role="bold">vqcomp</emphasis>: Tweak ratecontrol.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2742 What values are good depends on the movie.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2743 You can safely leave this alone if you want.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2744 Reducing vqcomp puts more bits on low-complexity scenes, increasing it puts
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2745 them on high-complexity scenes (default: 0.5, range: 0-1. recommended range:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2746 0.5-0.7).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2747 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2748
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2749 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2750 <emphasis role="bold">vlelim, vcelim</emphasis>: Sets the single coefficient
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2751 elimination threshold for luminance and chroma planes.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2752 These are encoded separately in all MPEG-like algorithms.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2753 The idea behind these options is to use some good heuristics to determine
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2754 when the change in a block is less than the threshold you specify, and in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2755 such a case, to just encode the block as "no change".
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2756 This saves bits and perhaps speeds up encoding. vlelim=-4 and vcelim=9
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2757 seem to be good for live movies, but seem not to help with anime;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2758 when encoding animation, you should probably leave them unchanged.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2759 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2760
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2761 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2762 <emphasis role="bold">qpel</emphasis>: Quarter pixel motion estimation.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2763 MPEG-4 uses half pixel precision for its motion search by default,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2764 therefore this option comes with an overhead as more information will be
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2765 stored in the encoded file.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2766 The compression gain/loss depends on the movie, but it is usually not very
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2767 effective on anime.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2768 qpel always incurs a significant cost in CPU decode time (+25% in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2769 practice).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2770 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2771
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2772 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2773 <emphasis role="bold">psnr</emphasis>: does not affect the actual encoding,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2774 but writes a log file giving the type/size/quality of each frame, and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2775 prints a summary of PSNR (Peak Signal to Noise Ratio) at the end.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2776 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2777
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2778 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2779
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2780 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2781 <title>Options not recommended to play with:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2782 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2783 <emphasis role="bold">vme</emphasis>: The default is best.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2784 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2785
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2786 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2787 <emphasis role="bold">lumi_mask, dark_mask</emphasis>: Psychovisual adaptive
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2788 quantization.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2789 You do not want to play with those options if you care about quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2790 Reasonable values may be effective in your case, but be warned this is very
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2791 subjective.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2792 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2793
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2794 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2795 <emphasis role="bold">scplx_mask</emphasis>: Tries to prevent blocky
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2796 artifacts, but postprocessing is better.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2797 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2798 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2799 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2800
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2801 <sect2 id="menc-feat-mpeg4-lavc-example-settings">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2802 <title>Encoding setting examples</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2803
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2804 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2805 The following settings are examples of different encoding
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2806 option combinations that affect the speed vs quality tradeoff
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2807 at the same target bitrate.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2808 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2809
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2810 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2811 All the encoding settings were tested on a 720x448 @30000/1001 fps
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2812 video sample, the target bitrate was 900kbps, and the machine was an
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2813 AMD-64 3400+ at 2400 MHz in 64 bits mode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2814 Each encoding setting features the measured encoding speed (in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2815 frames per second) and the PSNR loss (in dB) compared to the "very
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2816 high quality" setting.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2817 Please understand that depending on your source, your machine type
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2818 and development advancements, you may get very different results.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2819 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2820
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2821 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2822 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2823 <tgroup cols="4">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2824 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2825 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2826 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2827 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2828 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2829 <entry>Very high quality</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2830 <entry><option>vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2831 <entry>6fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2832 <entry>0dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2833 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2834 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2835 <entry>High quality</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2836 <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2837 <entry>15fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2838 <entry>-0.5dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2839 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2840 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2841 <entry>Fast</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2842 <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:turbo</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2843 <entry>42fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2844 <entry>-0.74dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2845 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2846 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2847 <entry>Realtime</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2848 <entry><option>vcodec=mpeg4:mbd=2:turbo</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2849 <entry>54fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2850 <entry>-1.21dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2851 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2852 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2853 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2854 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2855 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2856 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2857
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2858 <sect2 id="custommatrices"><title>Custom inter/intra matrices</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2859
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2860 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2861 With this feature of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2862 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2863 you are able to set custom inter (I-frames/keyframes) and intra
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2864 (P-frames/predicted frames) matrices. It is supported by many of the codecs:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2865 <systemitem>mpeg1video</systemitem> and <systemitem>mpeg2video</systemitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2866 are reported as working.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2867 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2868
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2869 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2870 A typical usage of this feature is to set the matrices preferred by the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2871 <ulink url="http://www.kvcd.net/">KVCD</ulink> specifications.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2872 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2873
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2874 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2875 The <emphasis role="bold">KVCD &quot;Notch&quot; Quantization Matrix:</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2876 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2877
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2878 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2879 Intra:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2880 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2881 8 9 12 22 26 27 29 34
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2882 9 10 14 26 27 29 34 37
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2883 12 14 18 27 29 34 37 38
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2884 22 26 27 31 36 37 38 40
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2885 26 27 29 36 39 38 40 48
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2886 27 29 34 37 38 40 48 58
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2887 29 34 37 38 40 48 58 69
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2888 34 37 38 40 48 58 69 79
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2889 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2890
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2891 Inter:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2892 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2893 16 18 20 22 24 26 28 30
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2894 18 20 22 24 26 28 30 32
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2895 20 22 24 26 28 30 32 34
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2896 22 24 26 30 32 32 34 36
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2897 24 26 28 32 34 34 36 38
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2898 26 28 30 32 34 36 38 40
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2899 28 30 32 34 36 38 42 42
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2900 30 32 34 36 38 40 42 44
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2901 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2902 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2903
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2904 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2905 Usage:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2906 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2907 $ mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.avi</replaceable> -oac copy -ovc lavc -lavcopts inter_matrix=...:intra_matrix=...
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2908 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2909 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2910
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2911 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2912 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2913 $ mencoder <replaceable>input.avi</replaceable> -ovc lavc -lavcopts
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2914 vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2915 12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2916 29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2917 :inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2918 28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2919 36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44 -oac copy -o svcd.mpg
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2920 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2921 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2922 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2923
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2924
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2925 <sect2 id="menc-feat-dvd-mpeg4-example">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2926 <title>Example</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2927
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2928 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2929 So, you have just bought your shiny new copy of Harry Potter and the Chamber
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2930 of Secrets (widescreen edition, of course), and you want to rip this DVD
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2931 so that you can add it to your Home Theatre PC. This is a region 1 DVD,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2932 so it is NTSC. The example below will still apply to PAL, except you will
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2933 omit <option>-ofps 24000/1001</option> (because the output framerate is the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2934 same as the input framerate), and of course the crop dimensions will be
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2935 different.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2936 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2937
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2938 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2939 After running <option>mplayer dvd://1</option>, we follow the process
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2940 detailed in the section <link linkend="menc-feat-telecine">How to deal
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2941 with telecine and interlacing in NTSC DVDs</link> and discover that it is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2942 24000/1001 fps progressive video, which means that we need not use an inverse
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2943 telecine filter, such as <option>pullup</option> or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2944 <option>filmdint</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2945 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2946
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2947 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2948 Next, we want to determine the appropriate crop rectangle, so we use the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2949 cropdetect filter:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2950
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2951 <screen>mplayer dvd://1 -vf cropdetect</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2952
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2953 Make sure you seek to a fully filled frame (such as a bright scene), and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2954 you will see in <application>MPlayer</application>'s console output:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2955
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2956 <screen>crop area: X: 0..719 Y: 57..419 (-vf crop=720:362:0:58)</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2957
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2958 We then play the movie back with this filter to test its correctness:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2959
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2960 <screen>mplayer dvd://1 -vf crop=720:362:0:58</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2961
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2962 And we see that it looks perfectly fine. Next, we ensure the width and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2963 height are a multiple of 16. The width is fine, however the height is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2964 not. Since we did not fail 7th grade math, we know that the nearest
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2965 multiple of 16 lower than 362 is 352.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2966 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2967
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2968 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2969 We could just use <option>crop=720:352:0:58</option>, but it would be nice
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2970 to take a little off the top and a little off the bottom so that we
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2971 retain the center. We have shrunk the height by 10 pixels, but we do not
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2972 want to increase the y-offset by 5-pixels since that is an odd number and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2973 will adversely affect quality. Instead, we will increase the y-offset by
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2974 4 pixels:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2975
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2976 <screen>mplayer dvd://1 -vf crop=720:352:0:62</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2977
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2978 Another reason to shave pixels from both the top and the bottom is that we
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2979 ensure we have eliminated any half-black pixels if they exist. Note that if
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2980 your video is telecined, make sure the <option>pullup</option> filter (or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2981 whichever inverse telecine filter you decide to use) appears in the filter
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2982 chain before you crop. If it is interlaced, deinterlace before cropping.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2983 (If you choose to preserve the interlaced video, then make sure your
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2984 vertical crop offset is a multiple of 4.)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2985 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2986
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2987 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2988 If you are really concerned about losing those 10 pixels, you might
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2989 prefer instead to scale the dimensions down to the nearest multiple of 16.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2990 The filter chain would look like:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2991
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2992 <screen>-vf crop=720:362:0:58,scale=720:352</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2993
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2994 Scaling the video down like this will mean that some small amount of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2995 detail is lost, though it probably will not be perceptible. Scaling up will
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2996 result in lower quality (unless you increase the bitrate). Cropping
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2997 discards those pixels altogether. It is a tradeoff that you will want to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2998 consider for each circumstance. For example, if the DVD video was made
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
2999 for television, you might want to avoid vertical scaling, since the line
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3000 sampling corresponds to the way the content was originally recorded.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3001 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3002
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3003 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3004 On inspection, we see that our movie has a fair bit of action and high
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3005 amounts of detail, so we pick 2400Kbit for our bitrate.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3006 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3007
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3008 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3009 We are now ready to do the two pass encode. Pass one:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3010
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3011 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3012 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3013 -o Harry_Potter_2.avi</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3014
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3015 And pass two is the same, except that we specify <option>vpass=2</option>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3016
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3017 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3018 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3019 -o Harry_Potter_2.avi</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3020 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3021
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3022 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3023 The options <option>v4mv:mbd=2:trell</option> will greatly increase the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3024 quality at the expense of encoding time. There is little reason to leave
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3025 these options out when the primary goal is quality. The options
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3026 <option>cmp=3:subcmp=3:mbcmp=3</option> select a comparison function that
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3027 yields higher quality than the defaults. You might try experimenting with
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3028 this parameter (refer to the man page for the possible values) as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3029 different functions can have a large impact on quality depending on the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3030 source material. For example, if you find
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3031 <systemitem class="library">libavcodec</systemitem> produces too much
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3032 blocky artifacting, you could try selecting the experimental NSSE as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3033 comparison function via <option>*cmp=10</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3034 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3035
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3036 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3037 For this movie, the resulting AVI will be 138 minutes long and nearly
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3038 3GB. And because you said that file size does not matter, this is a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3039 perfectly acceptable size. However, if you had wanted it smaller, you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3040 could try a lower bitrate. Increasing bitrates have diminishing
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3041 returns, so while we might clearly see an improvement from 1800Kbit to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3042 2000Kbit, it might not be so noticeable above 2000Kbit. Feel
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3043 free to experiment until you are happy.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3044 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3045
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3046 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3047 Because we passed the source video through a denoise filter, you may want
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3048 to add some of it back during playback. This, along with the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3049 <option>spp</option> post-processing filter, drastically improves the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3050 perception of quality and helps eliminate blocky artifacts in the video.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3051 With <application>MPlayer</application>'s <option>autoq</option> option,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3052 you can vary the amount of post-processing done by the spp filter
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3053 depending on available CPU. Also, at this point, you may want to apply
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3054 gamma and/or color correction to best suit your display. For example:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3055
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3056 <screen>mplayer Harry_Potter_2.avi -vf spp,noise=9ah:5ah,eq2=1.2 -autoq 3</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3057
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3058 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3059 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3060 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3061
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3062
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3063 <sect1 id="menc-feat-xvid">
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3064 <title>Encoding with the <systemitem class="library">Xvid</systemitem>
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3065 codec</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3066 <para>
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3067 <systemitem class="library">Xvid</systemitem> is a free library for
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3068 encoding MPEG-4 ASP video streams.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3069 Before starting to encode, you need to <link linkend="xvid">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3070 set up <application>MEncoder</application> to support it</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3071 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3072 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3073 This guide mainly aims at featuring the same kind of information
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3074 as x264's encoding guide.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3075 Therefore, please begin by reading
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3076 <link linkend="menc-feat-x264-encoding-options-intro">the first part</link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3077 of that guide.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3078 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3079
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3080
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3081 <sect2 id="menc-feat-xvid-intro">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3082 <title>What options should I use to get the best results?</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3083
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3084 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3085 Please begin by reviewing the
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3086 <systemitem class="library">Xvid</systemitem> section of
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3087 <application>MPlayer</application>'s man page.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3088 This section is intended to be a supplement to the man page.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3089 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3090 <para>
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3091 The Xvid default settings are already a good tradeoff between
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3092 speed and quality, therefore you can safely stick to them if
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3093 the following section puzzles you.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3094 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3095 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3096
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3097 <sect2 id="menc-feat-xvid-encoding-options">
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3098 <title>Encoding options of <systemitem class="library">Xvid</systemitem></title>
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3099
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3100 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3101 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3102 <emphasis role="bold">vhq</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3103 This setting affects the macroblock decision algorithm, where the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3104 higher the setting, the wiser the decision.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3105 The default setting may be safely used for every encode, while
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3106 higher settings always help PSNR but are significantly slower.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3107 Please note that a better PSNR does not necessarily mean
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3108 that the picture will look better, but tells you that it is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3109 closer to the original.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3110 Turning it off will noticeably speed up encoding; if speed is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3111 critical for you, the tradeoff may be worth it.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3112 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3113
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3114 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3115 <emphasis role="bold">bvhq</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3116 This does the same job as vhq, but does it on B-frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3117 It has a negligible impact on speed, and slightly improves quality
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3118 (around +0.1dB PSNR).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3119 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3120
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3121 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3122 <emphasis role="bold">max_bframes</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3123 A higher number of consecutive allowed B-frames usually improves
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3124 compressibility, although it may also lead to more blocking artifacts.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3125 The default setting is a good tradeoff between compressibility and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3126 quality, but you may increase it up to 3 if you are bitrate-starved.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3127 You may also decrease it to 1 or 0 if you are aiming at perfect
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3128 quality, though in that case you should make sure your
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3129 target bitrate is high enough to ensure that the encoder does not
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3130 have to increase quantizers to reach it.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3131 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3132
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3133 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3134 <emphasis role="bold">bf_threshold</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3135 This controls the B-frame sensitivity of the encoder, where a higher
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3136 value leads to more B-frames being used (and vice versa).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3137 This setting is to be used together with <option>max_bframes</option>;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3138 if you are bitrate-starved, you should increase both
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3139 <option>max_bframes</option> and <option>bf_threshold</option>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3140 while you may increase <option>max_bframes</option> and reduce
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3141 <option>bf_threshold</option> so that the encoder may use more
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3142 B-frames in places that only <emphasis role="bold">really</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3143 need them.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3144 A low number of <option>max_bframes</option> and a high value of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3145 <option>bf_threshold</option> is probably not a wise choice as it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3146 will force the encoder to put B-frames in places that would not
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3147 benefit from them, therefore reducing visual quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3148 However, if you need to be compatible with standalone players that
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3149 only support old DivX profiles (which only supports up to 1
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3150 consecutive B-frame), this would be your only way to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3151 increase compressibility through using B-frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3152 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3153
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3154 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3155 <emphasis role="bold">trellis</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3156 Optimizes the quantization process to get an optimal tradeoff
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3157 between PSNR and bitrate, which allows significant bit saving.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3158 These bits will in return be spent elsewhere on the video,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3159 raising overall visual quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3160 You should always leave it on as its impact on quality is huge.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3161 Even if you are looking for speed, do not disable it until you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3162 have turned down <option>vhq</option> and all other more
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3163 CPU-hungry options to the minimum.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3164 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3165
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3166 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3167 <emphasis role="bold">hq_ac</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3168 Activates a better coefficient cost estimation method, which slightly
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3169 reduces filesize by around 0.15 to 0.19% (which corresponds to less
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3170 than 0.01dB PSNR increase), while having a negligible impact on speed.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3171 It is therefore recommended to always leave it on.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3172 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3173
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3174 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3175 <emphasis role="bold">cartoon</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3176 Designed to better encode cartoon content, and has no impact on
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3177 speed as it just tunes the mode decision heuristics for this type
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3178 of content.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3179 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3180
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3181 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3182 <emphasis role="bold">me_quality</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3183 This setting is to control the precision of the motion estimation.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3184 The higher <option>me_quality</option>, the more
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3185 precise the estimation of the original motion will be, and the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3186 better the resulting clip will capture the original motion.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3187 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3188 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3189 The default setting is best in all cases;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3190 thus it is not recommended to turn it down unless you are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3191 really looking for speed, as all the bits saved by a good motion
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3192 estimation would be spent elsewhere, raising overall quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3193 Therefore, do not go any lower than 5, and even that only as a last
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3194 resort.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3195 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3196
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3197 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3198 <emphasis role="bold">chroma_me</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3199 Improves motion estimation by also taking the chroma (color)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3200 information into account, whereas <option>me_quality</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3201 alone only uses luma (grayscale).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3202 This slows down encoding by 5-10% but improves visual quality
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3203 quite a bit by reducing blocking effects and reduces filesize by
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3204 around 1.3%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3205 If you are looking for speed, you should disable this option before
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3206 starting to consider reducing <option>me_quality</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3207 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3208
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3209 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3210 <emphasis role="bold">chroma_opt</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3211 Is intended to increase chroma image quality around pure
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3212 white/black edges, rather than improving compression.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3213 This can help to reduce the "red stairs" effect.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3214 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3215
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3216 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3217 <emphasis role="bold">lumi_mask</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3218 Tries to give less bitrate to part of the picture that the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3219 human eye cannot see very well, which should allow the encoder
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3220 to spend the saved bits on more important parts of the picture.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3221 The quality of the encode yielded by this option highly depends
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3222 on personal preferences and on the type and monitor settings
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3223 used to watch it (typically, it will not look as good if it is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3224 bright or if it is a TFT monitor).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3225 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3226
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3227 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3228 <emphasis role="bold">qpel</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3229 Raise the number of candidate motion vectors by increasing
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3230 the precision of the motion estimation from halfpel to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3231 quarterpel.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3232 The idea is to find better motion vectors which will in return
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3233 reduce bitrate (hence increasing quality).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3234 However, motion vectors with quarterpel precision require a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3235 few extra bits to code, but the candidate vectors do not always
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3236 give (much) better results.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3237 Quite often, the codec still spends bits on the extra precision,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3238 but little or no extra quality is gained in return.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3239 Unfortunately, there is no way to foresee the possible gains of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3240 <option>qpel</option>, so you need to actually encode with and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3241 without it to know for sure.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3242 </para><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3243 <option>qpel</option> can be almost double encoding time, and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3244 requires as much as 25% more processing power to decode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3245 It is not supported by all standalone players.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3246 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3247
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3248 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3249 <emphasis role="bold">gmc</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3250 Tries to save bits on panning scenes by using a single motion
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3251 vector for the whole frame.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3252 This almost always raises PSNR, but significantly slows down
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3253 encoding (as well as decoding).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3254 Therefore, you should only use it when you have turned
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3255 <option>vhq</option> to the maximum.
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3256 <systemitem class="library">Xvid</systemitem>'s GMC is more
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3257 sophisticated than DivX's, but is only supported by few
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3258 standalone players.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3259 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3260
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3261 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3262 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3263
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3264 <sect2 id="menc-feat-xvid-encoding-profiles">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3265 <title>Encoding profiles</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3266 <para>
20879
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3267 Xvid supports encoding profiles through the <option>profile</option> option,
8c029c5b800a r20876: rename: XviD -> Xvid
voroshil
parents: 20725
diff changeset
3268 which are used to impose restrictions on the properties of the Xvid video
20725
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3269 stream such that it will be playable on anything which supports the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3270 chosen profile.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3271 The restrictions relate to resolutions, bitrates and certain MPEG-4
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3272 features.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3273 The following table shows what each profile supports.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3274 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3275 <informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3276 <tgroup cols="16" align="center">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3277 <colspec colnum="1" colname="col1"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3278 <colspec colnum="2" colname="col2"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3279 <colspec colnum="3" colname="col3"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3280 <colspec colnum="4" colname="col4"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3281 <colspec colnum="5" colname="col5"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3282 <colspec colnum="6" colname="col6"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3283 <colspec colnum="7" colname="col7"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3284 <colspec colnum="8" colname="col8"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3285 <colspec colnum="9" colname="col9"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3286 <colspec colnum="10" colname="col10"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3287 <colspec colnum="11" colname="col11"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3288 <colspec colnum="12" colname="col12"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3289 <colspec colnum="13" colname="col13"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3290 <colspec colnum="14" colname="col14"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3291 <colspec colnum="15" colname="col15"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3292 <colspec colnum="16" colname="col16"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3293 <colspec colnum="17" colname="col17"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3294 <spanspec spanname="spa2-5" namest="col2" nameend="col5"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3295 <spanspec spanname="spa6-11" namest="col6" nameend="col11"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3296 <spanspec spanname="spa12-17" namest="col12" nameend="col17"/>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3297 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3298 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3299 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3300 <entry spanname="spa2-5">Simple</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3301 <entry spanname="spa6-11">Advanced Simple</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3302 <entry spanname="spa12-17">DivX</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3303 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3304 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3305 <entry>Profile name</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3306 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3307 <entry>1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3308 <entry>2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3309 <entry>3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3310 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3311 <entry>1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3312 <entry>2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3313 <entry>3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3314 <entry>4</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3315 <entry>5</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3316 <entry>Handheld</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3317 <entry>Portable NTSC</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3318 <entry>Portable PAL</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3319 <entry>Home Theater NTSC</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3320 <entry>Home Theater PAL</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3321 <entry>HDTV</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3322 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3323 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3324 <entry>Width [pixels]</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3325 <entry>176</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3326 <entry>176</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3327 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3328 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3329 <entry>176</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3330 <entry>176</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3331 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3332 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3333 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3334 <entry>720</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3335 <entry>176</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3336 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3337 <entry>352</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3338 <entry>720</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3339 <entry>720</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3340 <entry>1280</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3341 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3342 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3343 <entry>Height [pixels]</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3344 <entry>144</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3345 <entry>144</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3346 <entry>288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3347 <entry>288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3348 <entry>144</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3349 <entry>144</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3350 <entry>288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3351 <entry>288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3352 <entry>576</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3353 <entry>576</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3354 <entry>144</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3355 <entry>240</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3356 <entry>288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3357 <entry>480</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3358 <entry>576</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3359 <entry>720</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3360 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3361 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3362 <entry>Frame rate [fps]</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3363 <entry>15</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3364 <entry>15</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3365 <entry>15</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3366 <entry>15</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3367 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3368 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3369 <entry>15</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3370 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3371 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3372 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3373 <entry>15</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3374 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3375 <entry>25</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3376 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3377 <entry>25</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3378 <entry>30</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3379 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3380 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3381 <entry>Max average bitrate [kbps]</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3382 <entry>64</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3383 <entry>64</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3384 <entry>128</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3385 <entry>384</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3386 <entry>128</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3387 <entry>128</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3388 <entry>384</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3389 <entry>768</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3390 <entry>3000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3391 <entry>8000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3392 <entry>537.6</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3393 <entry>4854</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3394 <entry>4854</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3395 <entry>4854</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3396 <entry>4854</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3397 <entry>9708.4</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3398 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3399 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3400 <entry>Peak average bitrate over 3 secs [kbps]</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3401 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3402 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3403 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3404 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3405 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3406 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3407 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3408 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3409 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3410 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3411 <entry>800</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3412 <entry>8000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3413 <entry>8000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3414 <entry>8000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3415 <entry>8000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3416 <entry>16000</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3417 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3418 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3419 <entry>Max. B-frames</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3420 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3421 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3422 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3423 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3424 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3425 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3426 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3427 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3428 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3429 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3430 <entry>0</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3431 <entry>1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3432 <entry>1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3433 <entry>1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3434 <entry>1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3435 <entry>2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3436 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3437 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3438 <entry>MPEG quantization</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3439 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3440 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3441 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3442 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3443 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3444 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3445 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3446 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3447 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3448 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3449 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3450 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3451 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3452 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3453 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3454 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3455 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3456 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3457 <entry>Adaptive quantization</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3458 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3459 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3460 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3461 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3462 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3463 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3464 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3465 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3466 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3467 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3468 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3469 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3470 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3471 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3472 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3473 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3474 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3475 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3476 <entry>Interlaced encoding</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3477 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3478 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3479 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3480 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3481 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3482 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3483 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3484 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3485 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3486 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3487 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3488 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3489 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3490 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3491 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3492 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3493 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3494 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3495 <entry>Quaterpixel</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3496 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3497 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3498 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3499 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3500 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3501 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3502 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3503 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3504 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3505 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3506 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3507 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3508 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3509 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3510 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3511 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3512 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3513 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3514 <entry>Global motion compensation</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3515 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3516 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3517 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3518 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3519 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3520 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3521 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3522 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3523 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3524 <entry>X</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3525 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3526 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3527 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3528 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3529 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3530 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3531 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3532 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3533 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3534 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3535 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3536
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3537 <sect2 id="menc-feat-xvid-example-settings">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3538 <title>Encoding setting examples</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3539
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3540 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3541 The following settings are examples of different encoding
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3542 option combinations that affect the speed vs quality tradeoff
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3543 at the same target bitrate.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3544 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3545
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3546 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3547 All the encoding settings were tested on a 720x448 @30000/1001 fps
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3548 video sample, the target bitrate was 900kbps, and the machine was an
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3549 AMD-64 3400+ at 2400 MHz in 64 bits mode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3550 Each encoding setting features the measured encoding speed (in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3551 frames per second) and the PSNR loss (in dB) compared to the "very
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3552 high quality" setting.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3553 Please understand that depending on your source, your machine type
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3554 and development advancements, you may get very different results.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3555 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3556
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3557 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3558 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3559 <tgroup cols="4">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3560 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3561 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3562 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3563 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3564 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3565 <entry>Very high quality</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3566 <entry><option>chroma_opt:vhq=4:bvhq=1:quant_type=mpeg</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3567 <entry>16fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3568 <entry>0dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3569 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3570 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3571 <entry>High quality</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3572 <entry><option>vhq=2:bvhq=1:chroma_opt:quant_type=mpeg</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3573 <entry>18fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3574 <entry>-0.1dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3575 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3576 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3577 <entry>Fast</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3578 <entry><option>turbo:vhq=0</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3579 <entry>28fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3580 <entry>-0.69dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3581 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3582 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3583 <entry>Realtime</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3584 <entry><option>turbo:nochroma_me:notrellis:max_bframes=0:vhq=0</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3585 <entry>38fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3586 <entry>-1.48dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3587 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3588 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3589 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3590 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3591 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3592 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3593
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3594 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3595
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3596 <sect1 id="menc-feat-x264">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3597 <title>Encoding with the <systemitem class="library">x264</systemitem> codec</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3598 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3599 <systemitem class="library">x264</systemitem> is a free library for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3600 encoding H.264/AVC video streams.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3601 Before starting to encode, you need to <link linkend="codec-x264-encode">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3602 set up <application>MEncoder</application> to support it</link>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3603 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3604
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3605 <sect2 id="menc-feat-x264-encoding-options">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3606 <title>Encoding options of x264</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3607
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3608 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3609 Please begin by reviewing the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3610 <systemitem class="library">x264</systemitem> section of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3611 <application>MPlayer</application>'s man page.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3612 This section is intended to be a supplement to the man page.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3613 Here you will find quick hints about which options are most
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3614 likely to interest most people. The man page is more terse,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3615 but also more exhaustive, and it sometimes offers much better
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3616 technical detail.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3617 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3618
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3619 <sect3 id="menc-feat-x264-encoding-options-intro">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3620 <title>Introduction</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3621 <para>This guide considers two major categories of encoding options:</para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3622
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3623 <orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3624 <listitem><para>Options which mainly trade off encoding time vs. quality
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3625 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3626 <listitem><para>Options which may be useful for fulfilling various personal
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3627 preferences and special requirements</para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3628 </orderedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3629
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3630 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3631 Ultimately, only you can decide which options are best for your
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3632 purposes. The decision for the first class of options is the simplest:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3633 you only have to decide whether you think the quality differences
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3634 justify the speed differences. For the second class of options,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3635 preferences may be far more subjective, and more factors may be
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3636 involved. Note that some of the "personal preferences and special
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3637 requirements" options can still have large impacts on speed or quality,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3638 but that is not what they are primarily useful for. A couple of the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3639 "personal preference" options may even cause changes that look better
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3640 to some people, but look worse to others.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3641 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3642
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3643 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3644 Before continuing, you need to understand that this guide uses only one
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3645 quality metric: global PSNR.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3646 For a brief explanation of what PSNR is, see
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3647 <ulink url="http://en.wikipedia.org/wiki/PSNR">the Wikipedia article on PSNR</ulink>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3648 Global PSNR is the last PSNR number reported when you include
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3649 the <option>psnr</option> option in <option>x264encopts</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3650 Any time you read a claim about PSNR, one of the assumptions
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3651 behind the claim is that equal bitrates are used.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3652 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3653
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3654 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3655 Nearly all of this guide's comments assume you are using
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3656 two pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3657 When comparing options, there are two major reasons for using
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3658 two pass encoding.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3659 First, using two pass often gains around 1dB PSNR, which is a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3660 very big difference.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3661 Secondly, testing options by doing direct quality comparisons
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3662 with one pass encodes introduces a major confounding
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3663 factor: bitrate often varies significantly with each encode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3664 It is not always easy to tell whether quality changes are due
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3665 mainly to changed options, or if they mostly reflect essentially
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3666 random differences in the achieved bitrate.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3667 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3668
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3669 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3670
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3671 <sect3 id="menc-feat-x264-encoding-options-speedvquality">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3672 <title>Options which primarily affect speed and quality</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3673
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3674 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3675 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3676 <emphasis role="bold">subq</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3677 Of the options which allow you to trade off speed for quality,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3678 <option>subq</option> and <option>frameref</option> (see below) are usually
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3679 by far the most important.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3680 If you are interested in tweaking either speed or quality, these
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3681 are the first options you should consider.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3682 On the speed dimension, the <option>frameref</option> and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3683 <option>subq</option> options interact with each other fairly
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3684 strongly.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3685 Experience shows that, with one reference frame,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3686 <option>subq=5</option> (the default setting) takes about 35% more time than
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3687 <option>subq=1</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3688 With 6 reference frames, the penalty grows to over 60%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3689 <option>subq</option>'s effect on PSNR seems fairly constant
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3690 regardless of the number of reference frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3691 Typically, <option>subq=5</option> achieves 0.2-0.5 dB higher global
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3692 PSNR in comparison <option>subq=1</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3693 This is usually enough to be visible.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3694 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3695 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3696 <option>subq=6</option> is the slowest, highest quality mode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3697 In comparison to <option>subq=5</option>, it usually gains 0.1-0.4 dB
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3698 global PSNR with speed costs varying from 25%-100%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3699 Unlike other levels of <option>subq</option>, the behavior of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3700 <option>subq=6</option> does not depend much on <option>frameref</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3701 and <option>me</option>. Instead, the effectiveness of <option>subq=6
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3702 </option> depends mostly upon the number of B-frames used. In normal
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3703 usage, this means <option>subq=6</option> has a large impact on both speed
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3704 and quality in complex, high motion scenes, but it may not have much effect
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3705 in low-motion scenes. Note that it is still recommended to always set
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3706 <option>bframes</option> to something other than zero (see below).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3707 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3708 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3709 <emphasis role="bold">frameref</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3710 <option>frameref</option> is set to 1 by default, but this
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3711 should not be taken to imply that it is reasonable to set it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3712 to 1.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3713 Merely raising <option>frameref</option> to 2 gains around
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3714 0.15dB PSNR with a 5-10% speed penalty; this seems like a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3715 good tradeoff.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3716 <option>frameref=3</option> gains around 0.25dB PSNR over
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3717 <option>frameref=1</option>, which should be a visible
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3718 difference.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3719 <option>frameref=3</option> is around 15% slower than
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3720 <option>frameref=1</option>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3721 Unfortunately, diminishing returns set in rapidly.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3722 <option>frameref=6</option> can be expected to gain only
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3723 0.05-0.1 dB over <option>frameref=3</option> at an additional
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3724 15% speed penalty.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3725 Above <option>frameref=6</option>, the quality gains are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3726 usually very small (although you should keep in mind throughout
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3727 this whole discussion that it can vary quite a lot depending on
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3728 your source).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3729 In a fairly typical case, <option>frameref=12</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3730 will improve global PSNR by a tiny 0.02dB over
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3731 <option>frameref=6</option>, at a speed cost of 15%-20%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3732 At such high <option>frameref</option> values, the only really
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3733 good thing that can be said is that increasing it even further will
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3734 almost certainly never <emphasis role="bold">harm</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3735 PSNR, but the additional quality benefits are barely even
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3736 measurable, let alone perceptible.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3737 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3738 <note><title>Note:</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3739 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3740 Raising <option>frameref</option> to unnecessarily high values
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3741 <emphasis role="bold">can</emphasis> and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3742 <emphasis role="bold">usually does</emphasis>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3743 hurt coding efficiency if you turn CABAC off.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3744 With CABAC on (the default behavior), the possibility of setting
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3745 <option>frameref</option> "too high" currently seems too remote
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3746 to even worry about, and in the future, optimizations may remove
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3747 the possibility altogether.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3748 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3749 </note>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3750 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3751 If you care about speed, a reasonable compromise is to use low
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3752 <option>subq</option> and <option>frameref</option> values on
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3753 the first pass, and then raise them on the second pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3754 Typically, this has a negligible negative effect on the final
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3755 quality: You will probably lose well under 0.1dB PSNR, which
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3756 should be much too small of a difference to see.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3757 However, different values of <option>frameref</option> can
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3758 occasionally affect frametype decision.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3759 Most likely, these are rare outlying cases, but if you want to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3760 be pretty sure, consider whether your video has either
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3761 fullscreen repetitive flashing patterns or very large temporary
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3762 occlusions which might force an I-frame.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3763 Adjust the first-pass <option>frameref</option> so it is large
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3764 enough to contain the duration of the flashing cycle (or occlusion).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3765 For example, if the scene flashes back and forth between two images
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3766 over a duration of three frames, set the first pass
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3767 <option>frameref</option> to 3 or higher.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3768 This issue is probably extremely rare in live action video material,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3769 but it does sometimes come up in video game captures.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3770 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3771
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3772 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3773 <emphasis role="bold">me</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3774 This option is for choosing the motion estimation search method.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3775 Altering this option provides a straightforward quality-vs-speed
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3776 tradeoff. <option>me=dia</option> is only a few percent faster than
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3777 the default search, at a cost of under 0.1dB global PSNR. The
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3778 default setting (<option>me=hex</option>) is a reasonable tradeoff
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3779 between speed and quality. <option>me=umh</option> gains a little under
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3780 0.1dB global PSNR, with a speed penalty that varies depending on
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3781 <option>frameref</option>. At high values of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3782 <option>frameref</option> (e.g. 12 or so), <option>me=umh</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3783 is about 40% slower than the default <option> me=hex</option>. With
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3784 <option>frameref=3</option>, the speed penalty incurred drops to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3785 25%-30%.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3786 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3787 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3788 <option>me=esa</option> uses an exhaustive search that is too slow for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3789 practical use.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3790 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3791 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3792
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3793 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3794 <emphasis role="bold">partitions=all</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3795 This option enables the use of 8x4, 4x8 and 4x4 subpartitions in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3796 predicted macroblocks (in addition to the default partitions).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3797 Enabling it results in a fairly consistent
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3798 10%-15% loss of speed. This option is rather useless in source
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3799 containing only low motion, however in some high-motion source,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3800 particularly source with lots of small moving objects, gains of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3801 about 0.1dB can be expected.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3802 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3803 </listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3804
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3805 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3806 <emphasis role="bold">bframes</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3807 If you are used to encoding with other codecs, you may have found
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3808 that B-frames are not always useful.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3809 In H.264, this has changed: there are new techniques and block
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3810 types that are possible in B-frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3811 Usually, even a naive B-frame choice algorithm can have a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3812 significant PSNR benefit.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3813 It is interesting to note that using B-frames usually speeds up
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3814 the second pass somewhat, and may also speed up a single
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3815 pass encode if adaptive B-frame decision is turned off.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3816 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3817 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3818 With adaptive B-frame decision turned off
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3819 (<option>x264encopts</option>'s <option>nob_adapt</option>),
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3820 the optimal value for this setting is usually no more than
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3821 <option>bframes=1</option>, or else high-motion scenes can suffer.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3822 With adaptive B-frame decision on (the default behavior), it is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3823 safe to use higher values; the encoder will reduce the use of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3824 B-frames in scenes where they would hurt compression.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3825 The encoder rarely chooses to use more than 3 or 4 B-frames;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3826 setting this option any higher will have little effect.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3827 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3828
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3829 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3830 <emphasis role="bold">b_adapt</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3831 Note: This is on by default.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3832 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3833 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3834 With this option enabled, the encoder will use a reasonably fast
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3835 decision process to reduce the number of B-frames used in scenes that
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3836 might not benefit from them as much.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3837 You can use <option>b_bias</option> to tweak how B-frame-happy
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3838 the encoder is.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3839 The speed penalty of adaptive B-frames is currently rather modest,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3840 but so is the potential quality gain.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3841 It usually does not hurt, however.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3842 Note that this only affects speed and frametype decision on the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3843 first pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3844 <option>b_adapt</option> and <option>b_bias</option> have no
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3845 effect on subsequent passes.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3846 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3847
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3848 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3849 <emphasis role="bold">b_pyramid</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3850 You might as well enable this option if you are using >=2 B-frames;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3851 as the man page says, you get a little quality improvement at no
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3852 speed cost.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3853 Note that these videos cannot be read by libavcodec-based decoders
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3854 older than about March 5, 2005.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3855 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3856
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3857 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3858 <emphasis role="bold">weight_b</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3859 In typical cases, there is not much gain with this option.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3860 However, in crossfades or fade-to-black scenes, weighted
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3861 prediction gives rather large bitrate savings.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3862 In MPEG-4 ASP, a fade-to-black is usually best coded as a series
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3863 of expensive I-frames; using weighted prediction in B-frames
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3864 makes it possible to turn at least some of these into much smaller
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3865 B-frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3866 Encoding time cost is minimal, as no extra decisions need to be made.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3867 Also, contrary to what some people seem to guess, the decoder
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3868 CPU requirements are not much affected by weighted prediction,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3869 all else being equal.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3870 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3871 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3872 Unfortunately, the current adaptive B-frame decision algorithm
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3873 has a strong tendency to avoid B-frames during fades.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3874 Until this changes, it may be a good idea to add
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3875 <option>nob_adapt</option> to your x264encopts, if you expect
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3876 fades to have a large effect in your particular video
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3877 clip.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3878 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3879 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3880 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3881
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3882 <sect3 id="menc-feat-x264-encoding-options-misc-preferences">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3883 <title>Options pertaining to miscellaneous preferences</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3884 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3885 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3886 <emphasis role="bold">Two pass encoding</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3887 Above, it was suggested to always use two pass encoding, but there
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3888 are still reasons for not using it. For instance, if you are capturing
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3889 live TV and encoding in realtime, you are forced to use single-pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3890 Also, one pass is obviously faster than two passes; if you use the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3891 exact same set of options on both passes, two pass encoding is almost
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3892 twice as slow.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3893 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3894 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3895 Still, there are very good reasons for using two pass encoding. For
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3896 one thing, single pass ratecontrol is not psychic, and it often makes
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3897 unreasonable choices because it cannot see the big picture. For example,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3898 suppose you have a two minute long video consisting of two distinct
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3899 halves. The first half is a very high-motion scene lasting 60 seconds
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3900 which, in isolation, requires about 2500kbps in order to look decent.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3901 Immediately following it is a much less demanding 60-second scene
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3902 that looks good at 300kbps. Suppose you ask for 1400kbps on the theory
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3903 that this is enough to accomodate both scenes. Single pass ratecontrol
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3904 will make a couple of "mistakes" in such a case. First of all, it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3905 will target 1400kbps in both segments. The first segment may end up
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3906 heavily overquantized, causing it to look unacceptably and unreasonably
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3907 blocky. The second segment will be heavily underquantized; it may look
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3908 perfect, but the bitrate cost of that perfection will be completely
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3909 unreasonable. What is even harder to avoid is the problem at the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3910 transition between the two scenes. The first seconds of the low motion
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3911 half will be hugely over-quantized, because the ratecontrol is still
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3912 expecting the kind of bitrate requirements it met in the first half
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3913 of the video. This "error period" of heavily over-quantized low motion
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3914 will look jarringly bad, and will actually use less than the 300kbps
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3915 it would have taken to make it look decent. There are ways to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3916 mitigate the pitfalls of single-pass encoding, but they may tend to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3917 increase bitrate misprediction.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3918 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3919 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3920 Multipass ratecontrol can offer huge advantages over a single pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3921 Using the statistics gathered from the first pass encode, the encoder
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3922 can estimate, with reasonable accuracy, the "cost" (in bits) of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3923 encoding any given frame, at any given quantizer. This allows for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3924 a much more rational, better planned allocation of bits between the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3925 expensive (high-motion) and cheap (low-motion) scenes. See
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3926 <option>qcomp</option> below for some ideas on how to tweak this
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3927 allocation to your liking.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3928 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3929 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3930 Moreover, two passes need not take twice as long as one pass. You can
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3931 tweak the options in the first pass for higher speed and lower quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3932 If you choose your options well, you can get a very fast first pass.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3933 The resulting quality in the second pass will be slightly lower because size
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3934 prediction is less accurate, but the quality difference is normally much
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3935 too small to be visible. Try, for example, adding
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3936 <option>subq=1:frameref=1</option> to the first pass
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3937 <option>x264encopts</option>. Then, on the second pass, use slower,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3938 higher-quality options:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3939 <option>subq=6:frameref=15:partitions=all:me=umh</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3940 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3941 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3942 <emphasis role="bold">Three pass encoding</emphasis>?
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3943
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3944 x264 offers the ability to make an arbitrary number of consecutive
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3945 passes. If you specify <option>pass=1</option> on the first pass,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3946 then use <option>pass=3</option> on a subsequent pass, the subsequent
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3947 pass will both read the statistics from the previous pass, and write
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3948 its own statistics. An additional pass following this one will have
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3949 a very good base from which to make highly accurate predictions of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3950 framesizes at a chosen quantizer. In practice, the overall quality
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3951 gain from this is usually close to zero, and quite possibly a third
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3952 pass will result in slightly worse global PSNR than the pass before
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3953 it. In typical usage, three passes help if you get either bad bitrate
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3954 prediction or bad looking scene transitions when using only two passes.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3955 This is somewhat likely to happen on extremely short clips. There are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3956 also a few special cases in which three (or more) passes are handy
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3957 for advanced users, but for brevity, this guide omits discussing those
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3958 special cases.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3959
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3960 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3961 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3962 <emphasis role="bold">qcomp</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3963 <option>qcomp</option> trades off the number of bits allocated
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3964 to "expensive" high-motion versus "cheap" low-motion frames. At
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3965 one extreme, <option>qcomp=0</option> aims for true constant
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3966 bitrate. Typically this would make high-motion scenes look completely
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3967 awful, while low-motion scenes would probably look absolutely
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3968 perfect, but would also use many times more bitrate than they
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3969 would need in order to look merely excellent. At the other extreme,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3970 <option>qcomp=1</option> achieves nearly constant quantization parameter
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3971 (QP). Constant QP does not look bad, but most people think it is more
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3972 reasonable to shave some bitrate off of the extremely expensive scenes
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3973 (where the loss of quality is not as noticeable) and reallocate it to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3974 the scenes that are easier to encode at excellent quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3975 <option>qcomp</option> is set to 0.6 by default, which may be slightly
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3976 low for many peoples' taste (0.7-0.8 are also commonly used).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3977 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3978 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3979 <emphasis role="bold">keyint</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3980 <option>keyint</option> is solely for trading off file seekability against
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3981 coding efficiency. By default, <option>keyint</option> is set to 250. In
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3982 25fps material, this guarantees the ability to seek to within 10 seconds
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3983 precision. If you think it would be important and useful to be able to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3984 seek within 5 seconds of precision, set <option>keyint=125</option>;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3985 this will hurt quality/bitrate slightly. If you care only about quality
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3986 and not about seekability, you can set it to much higher values
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3987 (understanding that there are diminishing returns which may become
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3988 vanishingly low, or even zero). The video stream will still have seekable
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3989 points as long as there are some scene changes.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3990 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3991 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3992 <emphasis role="bold">deblock</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3993 This topic is going to be a bit controversial.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3994 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3995 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3996 H.264 defines a simple deblocking procedure on I-blocks that uses
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3997 pre-set strengths and thresholds depending on the QP of the block
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3998 in question.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
3999 By default, high QP blocks are filtered heavily, and low QP blocks
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4000 are not deblocked at all.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4001 The pre-set strengths defined by the standard are well-chosen and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4002 the odds are very good that they are PSNR-optimal for whatever
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4003 video you are trying to encode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4004 The <option>deblock</option> allow you to specify offsets to the preset deblocking
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4005 thresholds.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4006 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4007 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4008 Many people seem to think it is a good idea to lower the deblocking
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4009 filter strength by large amounts (say, -3).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4010 This is however almost never a good idea, and in most cases,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4011 people who are doing this do not understand very well how
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4012 deblocking works by default.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4013 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4014 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4015 The first and most important thing to know about the in-loop
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4016 deblocking filter is that the default thresholds are almost always
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4017 PSNR-optimal.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4018 In the rare cases that they are not optimal, the ideal offset is
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4019 plus or minus 1.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4020 Adjusting deblocking parameters by a larger amount is almost
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4021 guaranteed to hurt PSNR.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4022 Strengthening the filter will smear more details; weakening the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4023 filter will increase the appearance of blockiness.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4024 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4025 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4026 It is definitely a bad idea to lower the deblocking thresholds if
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4027 your source is mainly low in spacial complexity (i.e., not a lot
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4028 of detail or noise).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4029 The in-loop filter does a rather excellent job of concealing
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4030 the artifacts that occur.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4031 If the source is high in spacial complexity, however, artifacts
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4032 are less noticeable.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4033 This is because the ringing tends to look like detail or noise.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4034 Human visual perception easily notices when detail is removed,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4035 but it does not so easily notice when the noise is wrongly
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4036 represented.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4037 When it comes to subjective quality, noise and detail are somewhat
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4038 interchangeable.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4039 By lowering the deblocking filter strength, you are most likely
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4040 increasing error by adding ringing artifacts, but the eye does
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4041 not notice because it confuses the artifacts with detail.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4042 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4043
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4044 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4045 This <emphasis role="bold">still</emphasis> does not justify
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4046 lowering the deblocking filter strength, however.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4047 You can generally get better quality noise from postprocessing.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4048 If your H.264 encodes look too blurry or smeared, try playing with
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4049 <option>-vf noise</option> when you play your encoded movie.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4050 <option>-vf noise=8a:4a</option> should conceal most mild
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4051 artifacting.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4052 It will almost certainly look better than the results you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4053 would have gotten just by fiddling with the deblocking filter.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4054 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4055 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4056 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4057 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4058
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4059 <sect2 id="menc-feat-x264-example-settings">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4060 <title>Encoding setting examples</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4061
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4062 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4063 The following settings are examples of different encoding
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4064 option combinations that affect the speed vs quality tradeoff
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4065 at the same target bitrate.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4066 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4067
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4068 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4069 All the encoding settings were tested on a 720x448 @30000/1001 fps
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4070 video sample, the target bitrate was 900kbps, and the machine was an
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4071 AMD-64 3400+ at 2400 MHz in 64 bits mode.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4072 Each encoding setting features the measured encoding speed (in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4073 frames per second) and the PSNR loss (in dB) compared to the "very
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4074 high quality" setting.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4075 Please understand that depending on your source, your machine type
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4076 and development advancements, you may get very different results.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4077 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4078
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4079 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4080 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4081 <tgroup cols="4">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4082 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4083 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4084 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4085 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4086 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4087 <entry>Very high quality</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4088 <entry><option>subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4089 <entry>6fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4090 <entry>0dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4091 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4092 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4093 <entry>High quality</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4094 <entry><option>subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4095 <entry>13fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4096 <entry>-0.89dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4097 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4098 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4099 <entry>Fast</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4100 <entry><option>subq=4:bframes=2:b_pyramid:weight_b</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4101 <entry>17fps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4102 <entry>-1.48dB</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4103 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4104 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4105 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4106 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4107 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4108 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4109
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4110 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4111
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4112 <sect1 id="menc-feat-video-for-windows">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4113 <title>Encoding with the <systemitem class="library">Video For Windows</systemitem> codec family</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4114
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4115 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4116 Video for Windows provides simple encoding by means of binary video codecs.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4117 You can encode with the following codecs (if you have more, please tell us!)
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4118 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4119 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4120 Note that support for this is very experimental and some codecs may not work
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4121 correctly. Some codecs will only work in certain colorspaces, try
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4122 <option>-vf format=bgr24</option> and <option>-vf format=yuy2</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4123 if a codec fails or gives wrong output.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4124 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4125
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4126 <sect2 id="menc-feat-enc-vfw-video-codecs">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4127 <title>Video for Windows supported codecs</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4128
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4129 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4130 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4131 <tgroup cols="4">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4132 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4133 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4134 <entry>Video codec file name</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4135 <entry>Description (FourCC)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4136 <entry>md5sum</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4137 <entry>Comment</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4138 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4139 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4140 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4141 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4142 <entry>aslcodec_vfw.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4143 <entry>Alparysoft lossless codec vfw (ASLC)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4144 <entry>608af234a6ea4d90cdc7246af5f3f29a</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4145 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4146 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4147 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4148 <entry>avimszh.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4149 <entry>AVImszh (MSZH)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4150 <entry>253118fe1eedea04a95ed6e5f4c28878</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4151 <entry>needs <option>-vf format</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4152 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4153 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4154 <entry>avizlib.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4155 <entry>AVIzlib (ZLIB)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4156 <entry>2f1cc76bbcf6d77d40d0e23392fa8eda</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4157 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4158 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4159 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4160 <entry>divx.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4161 <entry>DivX4Windows-VFW</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4162 <entry>acf35b2fc004a89c829531555d73f1e6</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4163 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4164 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4165 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4166 <entry>huffyuv.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4167 <entry>HuffYUV (lossless) (HFYU)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4168 <entry>b74695b50230be4a6ef2c4293a58ac3b</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4169 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4170 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4171 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4172 <entry>iccvid.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4173 <entry>Cinepak Video (cvid)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4174 <entry>cb3b7ee47ba7dbb3d23d34e274895133</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4175 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4176 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4177 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4178 <entry>icmw_32.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4179 <entry>Motion Wavelets (MWV1)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4180 <entry>c9618a8fc73ce219ba918e3e09e227f2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4181 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4182 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4183 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4184 <entry>jp2avi.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4185 <entry>ImagePower MJPEG2000 (IPJ2)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4186 <entry>d860a11766da0d0ea064672c6833768b</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4187 <entry><option>-vf flip</option></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4188 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4189 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4190 <entry>m3jp2k32.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4191 <entry>Morgan MJPEG2000 (MJ2C)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4192 <entry>f3c174edcbaef7cb947d6357cdfde7ff</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4193 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4194 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4195 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4196 <entry>m3jpeg32.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4197 <entry>Morgan Motion JPEG Codec (MJPG)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4198 <entry>1cd13fff5960aa2aae43790242c323b1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4199 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4200 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4201 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4202 <entry>mpg4c32.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4203 <entry>Microsoft MPEG-4 v1/v2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4204 <entry>b5791ea23f33010d37ab8314681f1256</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4205 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4206 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4207 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4208 <entry>tsccvid.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4209 <entry>TechSmith Camtasia Screen Codec (TSCC)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4210 <entry>8230d8560c41d444f249802a2700d1d5</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4211 <entry>shareware error on windows</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4212 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4213 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4214 <entry>vp31vfw.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4215 <entry>On2 Open Source VP3 Codec (VP31)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4216 <entry>845f3590ea489e2e45e876ab107ee7d2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4217 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4218 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4219 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4220 <entry>vp4vfw.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4221 <entry>On2 VP4 Personal Codec (VP40)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4222 <entry>fc5480a482ccc594c2898dcc4188b58f</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4223 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4224 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4225 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4226 <entry>vp6vfw.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4227 <entry>On2 VP6 Personal Codec (VP60)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4228 <entry>04d635a364243013898fd09484f913fb</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4229 <entry>crashing on Linux</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4230 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4231 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4232 <entry>vp7vfw.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4233 <entry>On2 VP7 Personal Codec (VP70)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4234 <entry>cb4cc3d4ea7c94a35f1d81c3d750bc8d</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4235 <entry>wrong FourCC?</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4236 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4237 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4238 <entry>ViVD2.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4239 <entry>SoftMedia ViVD V2 codec VfW (GXVE)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4240 <entry>a7b4bf5cac630bb9262c3f80d8a773a1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4241 <entry></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4242 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4243 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4244 <entry>msulvc06.DLL</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4245 <entry>MSU Lossless codec (MSUD)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4246 <entry>294bf9288f2f127bb86f00bfcc9ccdda</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4247 <entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4248 Decodable by <application>Window Media Player</application>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4249 not <application>MPlayer</application> (yet).
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4250 </entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4251 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4252 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4253 <entry>camcodec.dll</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4254 <entry>CamStudio lossless video codec (CSCD)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4255 <entry>0efe97ce08bb0e40162ab15ef3b45615</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4256 <entry>sf.net/projects/camstudio</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4257 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4258 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4259 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4260 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4261
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4262 The first column contains the codec names that should be passed after the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4263 <literal>codec</literal> parameter, like: <option>-xvfwopts codec=divx.dll</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4264 The FourCC code used by each codec is given in the parentheses.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4265 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4266 <informalexample>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4267 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4268 An example with VP3 compression:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4269 <screen>mencoder dvd://2 -o title2.avi -ovc vfw -xvfwopts codec=vp31vfw.dll -oac copy</screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4270 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4271 </informalexample>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4272 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4273 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4274
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4275
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4276 <sect1 id="menc-feat-vcd-dvd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4277 <title>Using <application>MEncoder</application> to create VCD/SVCD/DVD-compliant files.</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4278
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4279 <sect2 id="menc-feat-vcd-dvd-constraints">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4280 <title>Format Constraints</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4281 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4282 <application>MEncoder</application> is capable of creating VCD, SCVD
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4283 and DVD format MPEG files using the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4284 <systemitem class="library">libavcodec</systemitem> library.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4285 These files can then be used in conjunction with
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4286 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4287 or
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4288 <ulink url="http://dvdauthor.sourceforge.net/">dvdauthor</ulink>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4289 to create discs that will play on a standard set-top player.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4290 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4291
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4292 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4293 The DVD, SVCD, and VCD formats are subject to heavy constraints.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4294 Only a small selection of encoded picture sizes and aspect ratios are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4295 available.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4296 If your movie does not already meet these requirements, you may have
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4297 to scale,crop or add black borders to the picture to make it
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4298 compliant.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4299 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4300
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4301 <sect3 id="menc-feat-vcd-dvd-constraints-resolution">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4302 <title>Format Constraints</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4303
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4304 <informaltable frame="all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4305 <tgroup cols="9">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4306 <thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4307 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4308 <entry>Format</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4309 <entry>Resolution</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4310 <entry>V. Codec</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4311 <entry>V. Bitrate</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4312 <entry>Sample Rate</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4313 <entry>A. Codec</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4314 <entry>A. Bitrate</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4315 <entry>FPS</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4316 <entry>Aspect</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4317 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4318 </thead>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4319 <tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4320 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4321 <entry>NTSC DVD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4322 <entry>720x480, 704x480, 352x480, 352x240</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4323 <entry>MPEG-2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4324 <entry>9800 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4325 <entry>48000 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4326 <entry>AC3,PCM</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4327 <entry>1536 kbps (max)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4328 <entry>30000/1001, 24000/1001</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4329 <entry>4:3, 16:9 (only for 720x480)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4330 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4331 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4332 <entry>NTSC DVD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4333 <entry>352x240<footnote id='fn-rare-resolutions'><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4334 These resolutions are rarely used for DVDs because
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4335 they are fairly low quality.</para></footnote></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4336 <entry>MPEG-1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4337 <entry>1856 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4338 <entry>48000 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4339 <entry>AC3,PCM</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4340 <entry>1536 kbps (max)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4341 <entry>30000/1001, 24000/1001</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4342 <entry>4:3, 16:9</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4343 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4344 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4345 <entry>NTSC SVCD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4346 <entry>480x480</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4347 <entry>MPEG-2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4348 <entry>2600 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4349 <entry>44100 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4350 <entry>MP2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4351 <entry>384 kbps (max)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4352 <entry>30000/1001</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4353 <entry>4:3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4354 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4355 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4356 <entry>NTSC VCD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4357 <entry>352x240</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4358 <entry>MPEG-1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4359 <entry>1150 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4360 <entry>44100 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4361 <entry>MP2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4362 <entry>224 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4363 <entry>24000/1001, 30000/1001</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4364 <entry>4:3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4365 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4366 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4367 <entry>PAL DVD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4368 <entry>720x576, 704x576, 352x576, 352x288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4369 <entry>MPEG-2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4370 <entry>9800 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4371 <entry>48000 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4372 <entry>MP2,AC3,PCM</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4373 <entry>1536 kbps (max)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4374 <entry>25</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4375 <entry>4:3, 16:9 (only for 720x576)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4376 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4377 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4378 <entry>PAL DVD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4379 <entry>352x288<footnoteref linkend='fn-rare-resolutions'/></entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4380 <entry>MPEG-1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4381 <entry>1856 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4382 <entry>48000 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4383 <entry>MP2,AC3,PCM</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4384 <entry>1536 kbps (max)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4385 <entry>25</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4386 <entry>4:3, 16:9</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4387 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4388 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4389 <entry>PAL SVCD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4390 <entry>480x576</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4391 <entry>MPEG-2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4392 <entry>2600 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4393 <entry>44100 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4394 <entry>MP2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4395 <entry>384 kbps (max)</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4396 <entry>25</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4397 <entry>4:3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4398 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4399 <row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4400 <entry>PAL VCD</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4401 <entry>352x288</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4402 <entry>MPEG-1</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4403 <entry>1152 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4404 <entry>44100 Hz</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4405 <entry>MP2</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4406 <entry>224 kbps</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4407 <entry>25</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4408 <entry>4:3</entry>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4409 </row>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4410 </tbody>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4411 </tgroup>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4412 </informaltable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4413
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4414 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4415 If your movie has 2.35:1 aspect (most recent action movies), you will
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4416 have to add black borders or crop the movie down to 16:9 to make a DVD
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4417 or VCD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4418 If you add black borders, try to align them at 16-pixel boundaries in
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4419 order to minimize the impact on encoding performance.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4420 Thankfully DVD has sufficiently excessive bitrate that you do not have
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4421 to worry too much about encoding efficiency, but SVCD and VCD are
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4422 highly bitrate-starved and require effort to obtain acceptable quality.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4423 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4424 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4425
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4426 <sect3 id="menc-feat-vcd-dvd-constraints-gop">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4427 <title>GOP Size Constraints</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4428 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4429 DVD, VCD, and SVCD also constrain you to relatively low
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4430 GOP (Group of Pictures) sizes.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4431 For 30 fps material the largest allowed GOP size is 18.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4432 For 25 or 24 fps, the maximum is 15.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4433 The GOP size is set using the <option>keyint</option> option.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4434 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4435 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4436
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4437 <sect3 id="menc-feat-vcd-dvd-constraints-bitrate">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4438 <title>Bitrate Constraints</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4439 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4440 VCD video is required to be CBR at 1152 kbps.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4441 This highly limiting constraint also comes along with an extremly low vbv
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4442 buffer size of 327 kilobits.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4443 SVCD allows varying video bitrates up to 2500 kbps, and a somewhat less
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4444 restrictive vbv buffer size of 917 kilobits is allowed.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4445 DVD video bitrates may range anywhere up to 9800 kbps (though typical
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4446 bitrates are about half that), and the vbv buffer size is 1835 kilobits.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4447 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4448 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4449 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4450
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4451 <sect2 id="menc-feat-vcd-dvd-output">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4452 <title>Output Options</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4453 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4454 <application>MEncoder</application> has options to control the output
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4455 format.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4456 Using these options we can instruct it to create the correct type of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4457 file.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4458 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4459
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4460 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4461 The options for VCD and SVCD are called xvcd and xsvcd, because they
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4462 are extended formats.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4463 They are not strictly compliant, mainly because the output does not
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4464 contain scan offsets.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4465 If you need to generate an SVCD image, you should pass the output file
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4466 to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4467 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4468 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4469
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4470 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4471 VCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4472 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4473 -of mpeg -mpegopts format=xvcd
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4474 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4475 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4476
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4477 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4478 SVCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4479 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4480 -of mpeg -mpegopts format=xsvcd
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4481 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4482 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4483
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4484 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4485 DVD (with timestamps on every frame, if possible):
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4486 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4487 -of mpeg -mpegopts format=dvd:tsaf
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4488 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4489 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4490
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4491 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4492 DVD with NTSC Pullup:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4493 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4494 -of mpeg -mpegopts format=dvd:tsaf:telecine -ofps 24000/1001
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4495 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4496 This allows 24000/1001 fps progressive content to be encoded at 30000/1001
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4497 fps whilst maintaing DVD-compliance.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4498 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4499
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4500 <sect3 id="menc-feat-vcd-dvd-output-aspect">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4501 <title>Aspect Ratio</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4502 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4503 The aspect argument of <option>-lavcopts</option> is used to encode
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4504 the aspect ratio of the file.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4505 During playback the aspect ratio is used to restore the video to the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4506 correct size.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4507 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4508
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4509 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4510 16:9 or "Widescreen"
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4511 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4512 -lavcopts aspect=16/9
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4513 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4514 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4515
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4516 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4517 4:3 or "Fullscreen"
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4518 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4519 -lavcopts aspect=4/3
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4520 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4521 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4522
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4523 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4524 2.35:1 or "Cinemascope" NTSC
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4525 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4526 -vf scale=720:368,expand=720:480 -lavcopts aspect=16/9
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4527 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4528 To calculate the correct scaling size, use the expanded NTSC width of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4529 854/2.35 = 368
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4530 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4531
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4532 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4533 2.35:1 or "Cinemascope" PAL
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4534 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4535 -vf scale="720:432,expand=720:576 -lavcopts aspect=16/9
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4536 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4537 To calculate the correct scaling size, use the expanded PAL width of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4538 1024/2.35 = 432
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4539 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4540
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4541 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4542
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4543 <sect3 id="menc-feat-vcd-dvd-a-v-sync">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4544 <title>Maintaining A/V sync</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4545 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4546 In order to maintain audio/video synchronization throughout the encode,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4547 <application>MEncoder</application> has to drop or duplicate frames.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4548 This works rather well when muxing into an AVI file, but is almost
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4549 guaranteed to fail to maintain A/V sync with other muxers such as MPEG.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4550 This is why it is necessary to append the
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4551 <option>harddup</option> video filter at the end of the filter chain
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4552 to avoid this kind of problem.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4553 You can find more technical information about <option>harddup</option>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4554 in the section
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4555 <link linkend="menc-feat-dvd-mpeg4-muxing-filter-issues">Improving muxing and A/V sync reliability</link>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4556 or in the manual page.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4557 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4558 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4559
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4560 <sect3 id="menc-feat-vcd-dvd-output-srate">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4561 <title>Sample Rate Conversion</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4562 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4563 If the audio sample rate in the original file is not the same as
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4564 required by the target format, sample rate conversion is required.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4565 This is achieved using the <option>-srate</option> option and
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4566 the <option>-af lavcresample</option> audio filter together.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4567 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4568 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4569 DVD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4570 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4571 -srate 48000 -af lavcresample=48000
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4572 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4573 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4574 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4575 VCD and SVCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4576 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4577 -srate 44100 -af lavcresample=44100
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4578 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4579 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4580 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4581 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4582
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4583 <sect2 id="menc-feat-vcd-dvd-lavc">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4584 <title>Using libavcodec for VCD/SVCD/DVD Encoding</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4585
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4586 <sect3 id="menc-feat-vcd-dvd-lavc-intro">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4587 <title>Introduction</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4588 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4589 <systemitem class="library">libavcodec</systemitem> can be used to
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4590 create VCD/SVCD/DVD compliant video by using the appropriate options.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4591 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4592 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4593
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4594 <sect3 id="menc-feat-vcd-dvd-lavc-options">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4595 <title>lavcopts</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4596 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4597 This is a list of fields in <option>-lavcopts</option> that you may
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4598 be required to change in order to make a complaint movie for VCD, SVCD,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4599 or DVD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4600 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4601
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4602 <itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4603 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4604 <emphasis role="bold">acodec</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4605 <option>mp2</option> for VCD, SVCD, or PAL DVD;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4606 <option>ac3</option> is most commonly used for DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4607 PCM audio may also be used for DVD, but this is mostly a big waste of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4608 space.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4609 Note that MP3 audio is not compliant for any of these formats, but
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4610 players often have no problem playing it anyway.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4611 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4612
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4613 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4614 <emphasis role="bold">abitrate</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4615 224 for VCD; up to 384 for SVCD; up to 1536 for DVD, but commonly
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4616 used values range from 192 kbps for stereo to 384 kbps for 5.1 channel
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4617 sound.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4618 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4619
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4620 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4621 <emphasis role="bold">vcodec</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4622 <option>mpeg1video</option> for VCD;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4623 <option>mpeg2video</option> for SVCD;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4624 <option>mpeg2video</option> is usually used for DVD but you may also use
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4625 <option>mpeg1video</option> for CIF resolutions.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4626 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4627
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4628 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4629 <emphasis role="bold">keyint</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4630 Used to set the GOP size.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4631 18 for 30fps material, or 15 for 25/24 fps material.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4632 Commercial producers seem to prefer keyframe intervals of 12.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4633 It is possible to make this much larger and still retain compatibility
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4634 with most players.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4635 A <option>keyint</option> of 25 should never cause any problems.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4636 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4637
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4638 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4639 <emphasis role="bold">vrc_buf_size</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4640 327 for VCD, 917 for SVCD, and 1835 for DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4641 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4642
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4643 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4644 <emphasis role="bold">vrc_minrate</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4645 1152, for VCD. May be left alone for SVCD and DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4646 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4647
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4648 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4649 <emphasis role="bold">vrc_maxrate</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4650 1152 for VCD; 2500 for SVCD; 9800 for DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4651 For SVCD and DVD, you might wish to use lower values depending on your
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4652 own personal preferences and requirements.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4653 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4654
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4655 <listitem><para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4656 <emphasis role="bold">vbitrate</emphasis>:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4657 1152 for VCD;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4658 up to 2500 for SVCD;
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4659 up to 9800 for DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4660 For the latter two formats, vbitrate should be set based on personal
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4661 preference.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4662 For instance, if you insist on fitting 20 or so hours on a DVD, you
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4663 could use vbitrate=400.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4664 The resulting video quality would probably be quite bad.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4665 If you are trying to squeeze out the maximum possible quality on a DVD,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4666 use vbitrate=9800, but be warned that this could constrain you to less
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4667 than an hour of video on a single-layer DVD.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4668 </para></listitem>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4669 </itemizedlist>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4670 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4671
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4672 <sect3 id="menc-feat-vcd-dvd-lavc-examples">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4673 <title>Examples</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4674 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4675 This is a typical minimum set of <option>-lavcopts</option> for
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4676 encoding video:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4677 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4678 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4679 VCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4680 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4681 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:vrc_minrate=1152:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4682 vrc_maxrate=1152:vbitrate=1152:keyint=15:acodec=mp2
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4683 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4684 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4685
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4686 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4687 SVCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4688 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4689 -lavcopts vcodec=mpeg2video:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=1800:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4690 keyint=15:acodec=mp2
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4691 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4692 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4693
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4694 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4695 DVD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4696 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4697 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4698 keyint=15:acodec=ac3
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4699 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4700 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4701
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4702 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4703
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4704 <sect3 id="menc-feat-vcd-dvd-lavc-advanced">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4705 <title>Advanced Options</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4706 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4707 For higher quality encoding, you may also wish to add quality-enhancing
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4708 options to lavcopts, such as <option>trell</option>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4709 <option>mbd=2</option>, and others.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4710 Note that <option>qpel</option> and <option>v4mv</option>, while often
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4711 useful with MPEG-4, are not usable with MPEG-1 or MPEG-2.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4712 Also, if you are trying to make a very high quality DVD encode, it may
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4713 be useful to add <option>dc=10</option> to lavcopts.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4714 Doing so may help reduce the appearance of blocks in flat-colored areas.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4715 Putting it all together, this is an example of a set of lavcopts for a
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4716 higher quality DVD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4717 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4718
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4719 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4720 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4721 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4722 keyint=15:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4723 vqmin=1:lmin=1:dc=10
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4724 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4725 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4726
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4727 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4728 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4729
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4730 <sect2 id="menc-feat-vcd-dvd-audio">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4731 <title>Encoding Audio</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4732 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4733 VCD and SVCD support MPEG-1 layer II audio, using one of
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4734 <systemitem class="library">toolame</systemitem>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4735 <systemitem class="library">twolame</systemitem>,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4736 or <systemitem class="library">libavcodec</systemitem>'s MP2 encoder.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4737 The libavcodec MP2 is far from being as good as the other two libraries,
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4738 however it should always be available to use.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4739 VCD only supports constant bitrate audio (CBR) whereas SVCD supports
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4740 variable bitrate (VBR), too.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4741 Be careful when using VBR because some bad standalone players might not
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4742 support it too well.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4743 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4744
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4745 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4746 For DVD audio, <systemitem class="library">libavcodec</systemitem>'s
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4747 AC3 codec is used.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4748 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4749
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4750 <sect3 id="menc-feat-vcd-dvd-audio-toolame">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4751 <title>toolame</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4752 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4753 For VCD and SVCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4754 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4755 -oac toolame -toolameopts br=224
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4756 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4757 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4758 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4759
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4760 <sect3 id="menc-feat-vcd-dvd-audio-twolame">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4761 <title>twolame</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4762 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4763 For VCD and SVCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4764 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4765 -oac twolame -twolameopts br=224
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4766 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4767 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4768 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4769
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4770 <sect3 id="menc-feat-vcd-dvd-audio-lavc">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4771 <title>libavcodec</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4772 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4773 For DVD with 2 channel sound:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4774 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4775 -oac lavc -lavcopts acodec=ac3:abitrate=192
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4776 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4777 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4778 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4779 For DVD with 5.1 channel sound:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4780 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4781 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=384
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4782 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4783 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4784 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4785 For VCD and SVCD:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4786 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4787 -oac lavc -lavcopts acodec=mp2:abitrate=224
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4788 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4789 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4790 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4791
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4792 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4793
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4794 <sect2 id="menc-feat-vcd-dvd-all">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4795 <title>Putting it all Together</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4796 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4797 This section shows some complete commands for creating VCD/SVCD/DVD
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4798 compliant videos.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4799 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4800
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4801 <sect3 id="menc-feat-vcd-dvd-all-pal-dvd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4802 <title>PAL DVD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4803 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4804 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4805 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf scale=720:576,\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4806 harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4807 vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:acodec=ac3:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4808 abitrate=192:aspect=16/9 -ofps 25 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4809 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4810 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4811 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4812 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4813
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4814 <sect3 id="menc-feat-vcd-dvd-all-ntsc-dvd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4815 <title>NTSC DVD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4816 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4817 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4818 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf scale=720:480,\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4819 harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4820 vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:acodec=ac3:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4821 abitrate=192:aspect=16/9 -ofps 30000/1001 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4822 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4823 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4824 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4825 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4826
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4827 <sect3 id="menc-feat-vcd-dvd-all-pal-ac3-copy">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4828 <title>PAL AVI Containing AC3 Audio to DVD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4829 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4830 If the source already has AC3 audio, use -oac copy instead of re-encoding it.
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4831 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4832 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf scale=720:576,\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4833 harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4834 vbitrate=5000:keyint=15:aspect=16/9 -ofps 25 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4835 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4836 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4837 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4838 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4839
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4840 <sect3 id="menc-feat-vcd-dvd-all-ntsc-ac3-copy">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4841 <title>NTSC AVI Containing AC3 Audio to DVD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4842 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4843 If the source already has AC3 audio, and is NTSC @ 24000/1001 fps:
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4844 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4845 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4846 -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4847 vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=16/9 -ofps 24000/1001 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4848 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4849 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4850 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4851 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4852
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4853 <sect3 id="menc-feat-vcd-dvd-all-pal-svcd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4854 <title>PAL SVCD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4855 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4856 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4857 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4858 scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4859 vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4860 vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4861 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4862 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4863 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4864 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4865
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4866 <sect3 id="menc-feat-vcd-dvd-all-ntsc-svcd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4867 <title>NTSC SVCD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4868 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4869 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4870 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4871 scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4872 vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4873 vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4874 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4875 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4876 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4877 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4878
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4879 <sect3 id="menc-feat-vcd-dvd-all-pal-vcd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4880 <title>PAL VCD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4881 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4882 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4883 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4884 scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4885 vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:vbitrate=1152:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4886 vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4887 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4888 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4889 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4890 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4891
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4892 <sect3 id="menc-feat-vcd-dvd-all-ntsc-vcd">
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4893 <title>NTSC VCD</title>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4894 <para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4895 <screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4896 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4897 scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4898 vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:vbitrate=1152:\
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4899 vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4900 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4901 </screen>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4902 </para>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4903 </sect3>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4904
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4905 </sect2>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4906
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4907 </sect1>
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4908
873f7484ccdd Initial (partially, about 40%) translation.
voroshil
parents:
diff changeset
4909 </chapter>