annotate DOCS/xml/cs/mencoder.xml @ 15377:005485a358d8

Synced with 1.58
author jheryan
date Mon, 09 May 2005 05:43:21 +0000
parents 93c3668ccd22
children 8af96ea2739a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1 <?xml version="1.0" encoding="iso-8859-2"?>
15377
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2 <!-- Synced with: 1.58 -->
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
3 <chapter id="mencoder">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
4 <title>Enkódování s <application>MEncoder</application>em</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
5
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
6 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
7 Úplný seznam dostupných voleb a příkladů pro <application>MEncoder</application>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
8 naleznete v man stránce. Řadu užitečných příkladů a podrobných návodů pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
9 použití mnoha enkódovacích voleb naleznete v
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
10 <ulink url="../../tech/encoding-tips.txt">tipech pro enkódování</ulink>, které
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
11 byly získány z několika diskusí v konferenci MPlayer-users. Prohledejte
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
12 <ulink url="http://mplayerhq.hu/pipermail/mplayer-users/">archivy</ulink>,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
13 chcete-li bohatost diskusí o všech aspektech a problémech vztažených
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
14 k enkódování <application>MEncoder</application>em.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
15 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
16
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
17 <sect1 id="menc-feat-mpeg4">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
18 <title>Dvouprůchodové enkódování MPEG-4 (&quot;DivX&quot;)</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
19
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
20 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
21 Název vychází z faktu, že soubor je enkódován <emphasis>dvakrát</emphasis>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
22 První enkódování (dubbed pass) vytvoří dočasné soubory
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
23 (<filename>*.log</filename>) velikosti několika megabajtů, které zatím nemažte
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
24 (můžete smazat AVI). Ve druhém průchodu je vytvořen dvouprůchodový výstupní
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
25 soubor s použitím řízení datového toku z dočasných souborů. Výsledný soubor
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
26 bude mít lepší kvalitu obrazu. Pokud jste o tom teď slyšeli poprvé, měli byste
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
27 si prostudovat některé návody dostupné na netu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
28 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
29
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
30 <example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
31 <title>kopírování zvukové stopy</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
32 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
33 Dvouprůchodové enkódování DVD do MPEG-4 (&quot;DivX&quot;) AVI zatímco se zvuk
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
34 pouze zkopíruje.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
35 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
36 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o <replaceable>film.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
37 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o <replaceable>film.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
38 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
39 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
40 </example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
41
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
42 <example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
43 <title>enkódování zvukové stopy</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
44 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
45 Dvouprůchodové enkódování DVD do MPEG-4 (&quot;DivX&quot;) AVI a současně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
46 enkódování zvukové stopy do MP3.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
47 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
48 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o <replaceable>film.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
49 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o <replaceable>film.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
50 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
51 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
52 </example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
53 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
54
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
55 <sect1 id="menc-feat-mpeg">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
56 <title>Enkódování do MPEG formátu</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
57 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
58 <application>MEncoder</application> umí vytvořit výstupní soubor formátu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
59 MPEG (MPEG-PS). To je pravděpodobně použitelné pouze s <emphasis>mpeg1video</emphasis>
15220
93c3668ccd22 100l build fixes
diego
parents: 15219
diff changeset
60 kodekem z <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>, protože
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
61 přehrávače &ndash; s výjimkou <application>MPlayer</application>u &ndash;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
62 očekávají MPEG-1 video a MPEG-1 layer 2 (MP2) audio proudy v MPEG souborech.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
63 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
64
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
65 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
66 Tato vlastnost nyní není moc užitečná, pomiňme že má asi mnoho chyb, ale hlavně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
67 proto, že <application>MEncoder</application> v současnosti neumí enkódovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
68 MPEG-1 layer 2 (MP2) zvuk, který všechny ostatní přehrávače očekávají v MPEG
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
69 souborech.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
70 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
71
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
72 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
73 Výstupní souborový formát <application>MEncoder</application>u změníte použitím
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
74 volby <option>-of mpeg</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
75 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
76
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
77 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
78 Example:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
79 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
80 mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>další_volby</replaceable> <replaceable>media.avi</replaceable> -o <replaceable>výstup.mpg</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
81 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
82 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
83 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
84
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
85
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
86 <sect1 id="menc-feat-rescale">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
87 <title>Škálování (změna velikosti) filmů</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
88
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
89 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
90 Často potřebujeme změnit velikost obrázků ve filmu a to z mnoha důvodů: zmenšení
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
91 souboru, zátěže sítě atd. Mnoho lidí dokonce mění velikost při převodu DVD nebo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
92 SVCD do DivX AVI. Pokud si přejete video přeškálovat, přečtěte si sekci
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
93 <link linkend="aspect">Zachování poměru stran</link>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
94 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
95
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
96 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
97 Samotný proces škálování je prováděn video filtrem <literal>scale</literal>:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
98 <option>-vf scale=<replaceable>šířka</replaceable>:<replaceable>výška</replaceable></option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
99 Jeho kvalita může být nastavena volbou <option>-sws</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
100 Pokud ji neuvedete, <application>MEncoder</application> použije 2: bikubickou.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
101 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
102
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
103 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
104 Použití:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
105 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
106 mencoder <replaceable>vstup.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480 -o <replaceable>výstup.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
107 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
108 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
109 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
110
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
111
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
112 <sect1 id="menc-feat-streamcopy">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
113 <title>Proudové kopírování</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
114
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
115 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
116 <application>MEncoder</application> může zpracovat vstupní datové proudy dvěma
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
117 způsoby:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
118 <emphasis role="bold">enkóduje</emphasis> je, nebo je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
119 <emphasis role="bold">kopíruje</emphasis>. Tato část je o
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
120 <emphasis role="bold">kopírování</emphasis>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
121 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
122
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
123 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
124 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
125 <emphasis role="bold">Video proud</emphasis> (volba <option>-ovc copy</option>):
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
126 můžete dělat pěkné věci :) Jako umístění (nikoli konverze!) FLI nebo VIVO nebo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
127 MPEG-1 videa do AVI souboru! Samozřejmě takové soubory přehraje pouze
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
128 <application>MPlayer</application> :) A proto to nejspíš nemá žádnou rozumnou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
129 hodnotu. A teď vážně: kopírování video proudu může být užitečné například
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
130 tehdy, když má být enkódován pouze zvuk (např. nekomprimovaný PCM do MP3).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
131 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
132 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
133 <emphasis role="bold">Audio proud</emphasis> (volba <option>-oac copy</option>):
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
134 jednoduché. Je možné vzít externí zvukový soubor (MP3, WAV) a namultiplexovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
135 jej do výstupního proudu. K tomu použijte volbu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
136 <option>-audiofile <replaceable>soubor</replaceable></option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
137 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
138 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
139 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
140
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
141
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
142 <sect1 id="menc-feat-enc-libavcodec">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
143 <title>Enkódování s rodinou kodeků <systemitem class="library">libavcodec</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
144 </title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
145
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
146 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
147 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
148 zajišťuje jednoduché enkódování do mnoha zajímavých video a audio formátů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
149 Můžete enkódovat do následujících kodeků (více méně aktuální):
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
150
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
151 <informaltable frame="all">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
152 <tgroup cols="2">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
153 <thead>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
154 <row><entry>Jméno kodeku</entry><entry>Popis</entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
155 </thead>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
156 <tbody>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
157 <row><entry>mjpeg</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
158 Motion JPEG
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
159 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
160 <row><entry>ljpeg</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
161 Lossless (bezztrátový) JPEG
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
162 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
163 <row><entry>h263</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
164 H.263
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
165 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
166 <row><entry>h263p</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
167 H.263+
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
168 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
169 <row><entry>mpeg4</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
170 standardní ISO MPEG-4 (DivX 5, XVID kompatibilní)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
171 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
172 <row><entry>msmpeg4</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
173 prvotní MPEG-4 varianta od MS, v3 (DivX3)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
174 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
175 <row><entry>msmpeg4v2</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
176 prvotní MPEG-4 od MS, v2 (použitý ve starých asf souborech)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
177 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
178 <row><entry>wmv1</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
179 Windows Media Video, verze 1 (WMV7)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
180 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
181 <row><entry>wmv2</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
182 Windows Media Video, verze 2 (WMV8)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
183 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
184 <row><entry>rv10</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
185 starý RealVideo kodek
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
186 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
187 <row><entry>mpeg1video</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
188 MPEG-1 video
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
189 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
190 <row><entry>mpeg2video</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
191 MPEG-2 video
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
192 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
193 <row><entry>huffyuv</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
194 bezztrátová komprese
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
195 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
196 <row><entry>asv1</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
197 ASUS Video v1
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
198 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
199 <row><entry>asv2</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
200 ASUS Video v2
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
201 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
202 <row><entry>ffv1</entry><entry>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
203 bezztrátový video kodek z FFmpeg
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
204 </entry></row>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
205 </tbody>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
206 </tgroup>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
207 </informaltable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
208
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
209 První pole obsahuje názvy kodeků, které můžete přiřadit konfiguračnímu parametru
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
210 <literal>vcodec</literal>, např: <option>-lavcopts vcodec=msmpeg4</option>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
211 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
212
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
213 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
214 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
215 Příklad, s MJPEG kompresí:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
216 <screen>mencoder dvd://2 -o titul2.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
217 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
218 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
219 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
220
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
221
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
222 <sect1 id="menc-feat-enc-images">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
223 <title>Enkódování z množství vstupních obrázkových souborů (JPEG, PNG, TGA, SGI)</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
224
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
225 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
226 <application>MEncoder</application> je schopen vytvořit film z jednoho nebo více
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
227 JPEG, PNG nebo TGA souborů. Pomocí jednoduchého snímkového kopírování může
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
228 vytvořit MJPEG (Motion JPEG), MPNG (Motion PNG) nebo MTGA (Motion TGA) soubory.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
229 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
230
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
231 <orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
232 <title>Vysvětlení procesu:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
233 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
234 <application>MEncoder</application> <emphasis>dekóduje</emphasis> vstupní
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
235 soubor(y) pomocí knihovny <systemitem class="library">libjpeg</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
236 (když dekóduje PNG, použije <systemitem class="library">libpng</systemitem>).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
237 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
238 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
239 Potom <application>MEncoder</application> nakrmí dekódovaný snímek do
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
240 zvoleného video kompresoru (DivX4, XviD, FFmpeg msmpeg4, atd).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
241 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
242 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
243
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
244 <formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
245 <title>Příklady</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
246 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
247 Vysvětlení volby <option>-mf</option> je v man stránce.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
248
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
249 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
250 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
251 Vytvoření MPEG-4 souboru ze všech JPEG souborů v aktuálním adresáři:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
252 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
253 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o <replaceable>výstup.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
254 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
255 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
256 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
257
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
258 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
259 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
260 Vytvoření MPEG-4 souboru z některých JPEG souborů v aktuálním adresáři:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
261 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
262 mencoder mf://<replaceable>snímek001.jpg,snímek002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o <replaceable>výstup.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
263 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
264 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
265 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
266
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
267 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
268 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
269 Vytvoření Motion JPEG (MJPEG) souboru ze všech JPEG souborů v aktuálním
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
270 adresáři:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
271 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
272 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <replaceable>výstup.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
273 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
274 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
275 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
276
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
277 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
278 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
279 Vytvoření nekomprimovaného souboru ze všech PNG souborů v aktuálním adresáři:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
280 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
281 mencoder mf:// -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>výstup.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
282 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
283 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
284 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
285
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
286 <note><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
287 Šířka musí být celé číslo násobek 4, to je dáno omezením RAW RGB AVI formátu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
288 </para></note>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
289
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
290 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
291 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
292 Vytvoření Motion PNG (MPNG) souboru ze všech PNG souborů v aktuálním adresáři:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
293 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
294 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>výstup.avi</replaceable> <!--
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
295 --></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
296 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
297 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
298
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
299 <informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
300 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
301 Vytvoření Motion TGA (MTGA) souboru ze všech TGA souborů v aktuálním adresáři:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
302 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
303 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>výstup.avi</replaceable><!--
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
304 --></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
305 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
306 </informalexample>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
307
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
308 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
309 </formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
310 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
311
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
312
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
313 <sect1 id="menc-feat-extractsub">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
314 <title>Extrakce DVD titulků do VOBsub souboru</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
315
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
316 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
317 <application>MEncoder</application> je schopen vyextrahovat titulky z DVD do
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
318 VOBsub formátovaných souborů. Ty sestávají ze dvou souborů zakončených
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
319 <filename>.idx</filename> a <filename>.sub</filename> a jsou obvykle zabaleny
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
320 v jediném <filename>.rar</filename> archivu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
321 <application>MPlayer</application> je umí přehrávat s pomocí voleb
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
322 <option>-vobsub</option> a <option>-vobsubid</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
323 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
324
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
325 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
326 Zadejte základní jméno (čili bez přípony <filename>.idx</filename> nebo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
327 <filename>.sub</filename>) výstupních souborů pomocí volby
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
328 <option>-vobsubout</option> a index pro tyto titulky ve zbývajících souborech
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
329 pomocí <option>-vobsuboutindex</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
330 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
331
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
332 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
333 Pokud není vstup z DVD, měli byste použít <option>-ifo</option> pro indikaci
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
334 <filename>.ifo</filename> souboru nutného k vytvoření výsledného
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
335 <filename>.idx</filename> souboru.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
336 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
337
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
338 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
339 Pokud vstup není z DVD a nemáte <filename>.ifo</filename> soubor, budete muset
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
340 použít volbu <option>-vobsubid</option> k nastavení, pro které id jazyka se má
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
341 vytvořit <filename>.idx</filename> soubor.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
342 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
343
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
344 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
345 Každým spuštěním se přidají běžící titulky pokud soubory <filename>.idx</filename>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
346 a <filename>.sub</filename> již existují. Takže byste je měli všechny odstranit
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
347 dříve než začnete.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
348 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
349
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
350 <example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
351 <title>Kopírování dvojích titulků z DVD během dvouprůchodového enkódování</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
352 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
353 rm titulky.idx titulky.sub
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
354 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -vobsubout titulky -vobsuboutindex 0 -sid 2
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
355 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -vobsubout titulky -vobsuboutindex 1 -sid 5<!--
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
356 --></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
357 </example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
358
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
359 <example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
360 <title>Kopírování francouzských titulků z MPEG souboru</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
361 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
362 rm titulky.idx titulky.sub
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
363 mencoder <replaceable>film.mpg</replaceable> -ifo <replaceable>film.ifo</replaceable> -vobsubout titulky -vobsuboutindex 0 -vobsuboutid fr -sid 1<!--
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
364 --></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
365 </example>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
366
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
367 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
368
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
369 <sect1 id="aspect">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
370 <title>Zachování poměru stran</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
371 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
372 DVD a SVCD (čili MPEG-1/2) soubory obsahují hodnotu poměru stran,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
373 popisující, jak by měl přehrávač škálovat video proud, takže lidé nebudou mít
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
374 šišaté hlavy (př.: 480x480 + 4:3 = 640x480). Pokud ovšem enkódujeme do AVI
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
375 (DivX) souborů, mějte na paměti, že AVI hlavičky neukládají tuto hodnotu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
376 Přeškálování videa je odporné a časově náročné, takže musí být lepší způsob!
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
377 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
378
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
379 <para>A zde jej máte</para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
380
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
381 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
382 MPEG-4 má unikátní vlastnost: video proud může obsahovat svůj požadovaný poměr
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
383 stran. Ano, přesně jako MPEG-1/2 (DVD, SVCD) a H.263 soubory. Naneštěstí,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
384 <emphasis role="bold">žádný</emphasis> video přehrávač nepodporuje tento atribut
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
385 MPEG-4, s výjimkou <application>MPlayer</application>u.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
386 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
387
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
388 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
389 Tato vlastnost může být použita pouze s kodekem <systemitem>mpeg4</systemitem> z
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
390 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>u.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
391 Mějte na paměti: ačkoli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
392 <application>MPlayer</application> korektně přehraje vytvořený soubor, ostatní
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
393 přehrávače použijí špatný poměr stran.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
394 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
395
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
396 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
397 Opravdu byste měli oříznout černé okraje nad a pod filmem.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
398 Nastudujte si použití filtrů <systemitem>cropdetect</systemitem> a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
399 <systemitem>crop</systemitem> v man stránce.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
400 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
401
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
402 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
403 Použití
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
404 <screen>mencoder <replaceable>vzorové-svcd.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o <replaceable>výstup.avi</replaceable></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
405 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
406 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
407
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
408 <sect1 id="custommatrices"><title>Uživatelské inter/intra matice</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
409
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
410 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
411 Díky této vlastnosti
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
412 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>u
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
413 můžete nastavit uživatelskou inter (I-snímky/klíčové snímky) a intra
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
414 (P-snímky/predikované (rozumějte vypočítané) snímky) matice. To je podporováno
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
415 mnoha kodeky:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
416 <systemitem>mpeg1video</systemitem> a <systemitem>mpeg2video</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
417 jsou hlášeny jako funkční.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
418 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
419
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
420 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
421 Typické použití této vlastnosti je nastavení matic preferovaných
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
422 <ulink url="http://www.kvcd.net/">KVCD</ulink> specifikacemi.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
423 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
424
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
425 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
426 <emphasis role="bold">Kvantizační Matice KVCD &quot;Notch&quot;:</emphasis>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
427 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
428
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
429 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
430 Intra:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
431 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
432 8 9 12 22 26 27 29 34
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
433 9 10 14 26 27 29 34 37
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
434 12 14 18 27 29 34 37 38
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
435 22 26 27 31 36 37 38 40
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
436 26 27 29 36 39 38 40 48
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
437 27 29 34 37 38 40 48 58
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
438 29 34 37 38 40 48 58 69
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
439 34 37 38 40 48 58 69 79
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
440 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
441
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
442 Inter:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
443 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
444 16 18 20 22 24 26 28 30
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
445 18 20 22 24 26 28 30 32
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
446 20 22 24 26 28 30 32 34
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
447 22 24 26 30 32 32 34 36
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
448 24 26 28 32 34 34 36 38
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
449 26 28 30 32 34 36 38 40
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
450 28 30 32 34 36 38 42 42
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
451 30 32 34 36 38 40 42 44
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
452 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
453 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
454
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
455 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
456 Použití:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
457 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
458 $ mencoder <replaceable>vstup.avi</replaceable> -o <replaceable>výstup.avi</replaceable> -oac copy -ovc lavc -lavcopts inter_matrix=...:intra_matrix=...
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
459 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
460 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
461
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
462 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
463 <screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
464 $ mencoder <replaceable>vstup.avi</replaceable> -ovc lavc -lavcopts
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
465 vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
466 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,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
467 29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
468 :inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
469 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,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
470 36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44 -oac copy -o svcd.mpg
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
471 </screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
472 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
473 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
474
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
475 <sect1 id="menc-feat-dvd-mpeg4">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
476 <title>Vytvoření MPEG-4 (&quot;DivX&quot;) ripu DVD filmu ve vysoké kvalitě</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
477
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
478 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
479 Velmi častou otázkou je "Jak mohu vytvořit rip v nejvyšší možné kvalitě pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
480 danou velikost?". Další otázkou je "Jak vytvořím DVD rip v nejvyšší možné
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
481 kvalitě? Velikost souboru mě nezajímá, chci tu nejvyšší kvalitu."
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
482 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
483
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
484 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
485 Druhá otázka je poněkud špatně položená. Konec konců, pokud je vám lhostejná
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
486 velikost souboru, proč prostě nezkopírujete celý MPEG-2 video proud z DVD?
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
487 Jistěže vaše AVI bude mít kolem 5 GB, ale pokud chcete nejvyšší kvalitu a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
488 na velikosti nezáleží, je to jistě nejlepší volba.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
489 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
490
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
491 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
492 Ve skutečnosti, důvodem převodu DVD do MPEG-4 je právě to, že vám na velikosti
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
493 souboru <emphasis role="bold">záleží</emphasis>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
494 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
495
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
496 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
497 Je těžké nabídnout kuchařku jak vytvořit DVD rip ve velmi vysoké kvalitě. Je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
498 nutné uvážit množství faktorů a měli byste rozumět těmto detailům, jinak
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
499 budete asi zklamáni výsledkem. Níže prozkoumáme některé z těchto věcí a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
500 pak se podíváme na příklad. Předpokládáme, že použijete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
501 <systemitem class="library">libavcodec</systemitem> pro enkódování videa,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
502 ačkoli teorie je stejná i pro ostatní kodeky.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
503 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
504
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
505 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
506 Pokud je toho na vás moc, asi byste měli použít některý z pěkných frontendů,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
507 které jsou zmíněny v
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
508 <ulink url="http://mplayerhq.hu/homepage/design7/projects.html#mencoder_frontends">sekci MEncoder</ulink>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
509 na naší stránce odvozených projektů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
510 Takto budete schopni dosahovat vysoce kvalitních ripů bez velkého přemýšlení,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
511 protože většina těchto nástrojů je navržena tak, aby dělala vhodná rozhodnutí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
512 za vás.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
513 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
514
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
515 <sect2 id="menc-feat-dvd-mpeg4-2pass">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
516 <title>Pevný kvantizer vs. dva průchody</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
517
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
518 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
519 Jsou tři přístupy k enkódování videa: pevný datový tok (CBR), pevný kvantizer
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
520 a dvouprůchodový (ABR, nebili průměrovaný datový tok).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
521 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
522
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
523 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
524 V každém z těchto režimů <systemitem class="library">libavcodec</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
525 rozbije videosnímek na makrobloky 16x16 pixelů a potom na každý makroblok
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
526 aplikuje kvantizer. Čím je nižší kvantizer, tím je vyšší kvalita a datový tok.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
527 Metoda, kterou <systemitem class="library">libavcodec</systemitem> používá pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
528 určení jaký kvantizer použít pro daný makroblok, se liší a je vysoce
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
529 ovlivnitelná. (Toto je extrémní zjednodušení daného procesu, ale je vhodné
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
530 rozumět základnímu principu.)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
531 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
532
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
533 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
534 Pokud nastavíte konstantní datový tok, <systemitem
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
535 class="library">libavcodec</systemitem> bude enkódovat video tak, že zahodí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
536 detaily podle potřeby a jen tolik, aby se udržel pod zadaným datovým tokem.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
537 Pokud je vám opravdu lhostejná velikost souboru, můžete také použít CBR a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
538 nastavit datový tok na nekonečno. (V praxi to znamená nastavit hodnotu tak
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
539 vysoko, aby nijak neomezovala, jako 10000 Kbitů.) Bez reálného omezení
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
540 datového toku použije <systemitem class="library">libavcodec</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
541 nejnižší možný kvantizer pro každý makroblok (ten je nastaven pomocí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
542 <option>vqmin</option>, výchozí je 2). Jakmile nastavíte dostatečně nižší
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
543 datový tok, takže je <systemitem class="library">libavcodec</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
544 přinucen použít vyšší kvantizer, pak téměř jistě snížíte kvalitu svého videa.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
545 Abyste se tomu vyhnuli, měli byste zvážit zmenšení videa podle postupu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
546 popsaného později v této příručce.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
547 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
548
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
549 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
550 Při konstantním kvantizeru <systemitem class="library">libavcodec</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
551 používá kvantizer nastavený volbou <option>vqscale</option> na každý makroblok.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
552 Pokud chcete maximálně kvalitní rip, opět bez ohledu na datový tok, můžete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
553 použít <option>vqscale=2</option>. To povede ke stejnému datovému toku a PSNR
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
554 (odstup signál&ndash;šum) jako CBR s <option>vbitrate</option>=infinity a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
555 výchozím <option>vqmin</option> rovným 2.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
556 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
557
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
558 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
559 Problém s konstantní kvantizací je ten, že používá zadaný kvantizer ať to daný
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
560 makroblok potřebuje či nikoli. Je totiž možné použít vyšší kvantizer na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
561 makroblok bez obětování viditelné kvality. Proč tedy plýtvat bity s nemístně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
562 nízkým kvantizerem? Váše CPU má tolik cyklů, kolik máte času, ale na harddisku
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
563 máte jen určitý počet bitů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
564 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
565
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
566 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
567 Při dvouprůchodovém enkódování se v prvním průchodu projde film jakoby měl být
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
568 CBR, ale vlastnosti každého snímku se zaznamenají do logu. Tato data jsou pak
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
569 použita při druhém průchodu pro inteligentní stanovení použitého kvantizeru.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
570 V rychlých scénách nebo scénách s malým počtem detailů budou častěji používány
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
571 vyšší kvantizery a v pomalých nebo detailních scénách zase nižší kvantizery.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
572 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
573
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
574 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
575 Pokud použijete <option>vqscale=2</option>, plýtváte bity. Pokud použijete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
576 <option>vqscale=3</option>, pak nedostanete nejkvalitnější možný rip.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
577 Dejme tomu, že ripujete DVD při <option>vqscale=3</option> a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
578 výsledkem je 1800Kbit. Pokud provedete dvouprůchodové enkódování
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
579 s <option>vbitrate=1800</option>, výsledné video bude mít <emphasis
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
580 role="bold">vyšší kvalitu</emphasis> při
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
581 <emphasis role="bold">stejném datovém toku</emphasis>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
582 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
583
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
584 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
585 Jelikož jsme vás nyní přesvědčili, že dvouprůchodový režim je správná volba,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
586 skutečnou otázkou je, jaký datový tok použít? Odpověď je, že není jediná
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
587 odpověď. Ideálně byste měli zvolit takový datový tok, který zajistí nejlepší
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
588 rovnováhu mezi kvalitou a velikostí souboru. Ten bude pokaždé jiný
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
589 v závislosti na zdrojovém videu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
590 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
591
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
592 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
593 Pokud na velikosti souboru nezáleží, pak je dobrý startovní můstek pro rip
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
594 s velmi vysokou kvalitou je kolem 2000 Kbitů plus-mínus 200 Kbitů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
595 Pro rychlé akční nebo vysoce detailní zdrojové video, nebo máte-li velmi
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
596 kritické oko, se budete rozhodovat mezi 2400 nebo 2600.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
597 U některých DVD nepoznáte rozdíl při 1400 Kbitech. Je vhodné experimentovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
598 se scénami při různých datových tocích, abyste pro to dostali cit.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
599 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
600
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
601 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
602 Pokud se snažíte o určitou velikost, budete muset nějak spočítat datový tok.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
603 Ale ještě předtím musíte zjistit, kolik místa byste měli rezervovat pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
604 zvukové(ou) stopy(u), takže byste si
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
605 <link linkend="menc-feat-dvd-mpeg4-audio">je měli ripnout</link> jako první.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
606 Můžete si pak spočítat datový tok pomocí následující rovnice:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
607 <systemitem>datový_tok = (požadovaná_velikost_v_Mbajtech - velikost_zvuku_v_Mbajtech) *
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
608 1024 * 1024 / délka_v_sek * 8 / 1000</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
609 Například abyste nacpali dvouhodinový film na 702MB CD, se 60MB zvukovou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
610 stopou, bude muset být datový tok videa:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
611 <systemitem>(702 - 60) * 1024 * 1024 / (120*60) * 8 / 1000
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
612 = 740kbps (kilobitů za sekundu)</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
613 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
614
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
615 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
616
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
617
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
618 <sect2 id="menc-feat-dvd-mpeg4-constraints">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
619 <title>Omezení pro efektivní enkódování</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
620
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
621 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
622 Ze samé podstaty komprese typu MPEG vyplývají určitá omezení, která byste měli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
623 ctít, pokud chcete maximální kvalitu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
624 MPEG rozdělí video na čtverce 16x16 nazývané makrobloky, které se skládají
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
625 ze čtyř bloků 8x8 jasové (luma) složky a dvou bloků 8x8 barevné (chroma)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
626 složky v polovičním rozlišení (jeden pro osu červená-cyan (modrozelená) a druhý pro osu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
627 modrá-žlutá).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
628 Dokonce i když šířka a výška vašeho videa nejsou násobky 16, použije enkodér
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
629 dostatek 16x16 makrobloků, aby pokryl celou oblast obrazu a zabere místo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
630 navíc, které přijde vniveč.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
631 Takže chcete-li maximalizovat kvalitu při dané velikosti souboru, není dobrý
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
632 nápad používat rozměry které nejsou násobky 16.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
633 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
634
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
635 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
636 Většina DVD má také různě velké černé okraje videa. Ponechání těchto ploch
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
637 může různým způsobem snížit kvalitu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
638 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
639
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
640 <orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
641 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
642 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
643 Komprese typu MPEG je rovněž velmi závislá na plošných frekvenčních
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
644 transformacích, konkrétně Diskrétní Kosinové Transformaci (DCT), která se
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
645 podobá Fourierově transformaci. Tento druh enkódování je efektivní na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
646 reprezentaci opakujících se vzorů a pozvolné přechody, ale má potíže s ostrými
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
647 přechody. Chcete-li je enkódovat, musíte použít mnoho bitů, jinak se objeví
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
648 artefakty známé jako kroužkování.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
649 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
650
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
651 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
652 Frekvenční transformace (DCT) je provedena zvlášť pro každý makroblok
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
653 (ve skutečnosti na každý blok), takže problém nastane pouze tehdy, je-li ostrý
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
654 přechod uvnitř bloku. Pokud vaše černé okraje začínají přesně na hranicích
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
655 násobků 16 pixelů, pak to není problém. Černé okraje jsou však na DVD jen
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
656 málokdy pěkně umístěny, takže je v praxi budete muset vždy odstranit, abyste
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
657 se vyhnuli tomuto problému.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
658 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
659 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
660 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
661
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
662 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
663 Navíc k plošně frekvenčním transformacím používá komprese typu MPEG vektory
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
664 pohybu k popisu změn od jednoho snímku ke druhému. Vektory pohybu přirozeně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
665 pracují méně efektivně s novým obsahem přicházejícím zpoza okrajů snímku,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
666 protože ten nebyl přítomen na předchozím snímku. Dokud se obraz rozšiřuje
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
667 směrem k okrajům snímku, nemají s tím vektory pohybu žádný problém, ale
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
668 jsou-li zde černé okraje, může problém nastat:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
669 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
670
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
671 <orderedlist continuation="continues">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
672 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
673 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
674 Komprese typu MPEG ukládá pro každý makroblok vektor, identifikující která
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
675 část předchozího obrázku by měla být zkopírována onoho makrobloku jako základ
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
676 pro predikci následujícího snímku. Pouze zbývající odlišnosti musí být
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
677 enkódovány. Pokud makroblok přesahuje okraj obrázku a obsahuje část černého
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
678 okraje, vektory pohybu z ostatních částí obrázku přepíší černý okraj.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
679 To znamená mnoho bitů spotřebovaných buď na znovuzačernění, nebo se (spíš)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
680 vektory pohybu nepoužijí vůbec a všechny změny v tomto makrobloku se budou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
681 kódovat přímo. Jinými slovy se velmi sníží efektivita enkódování.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
682 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
683
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
684 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
685 Tento problém nastává opět jen v případě, že černé okraje nezačínají na lince
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
686 jejíž pozice je násobkem 16.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
687 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
688 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
689
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
690 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
691 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
692 Nakonec zde máme makroblok uvnitř obrázku do nějž se posunuje objekt z okraje
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
693 obrázku. Kódování typu MPEG neumí říct "zkopíruj to co je na obrázku, ale ne
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
694 černý okraj." Takže se zkopíruje i černý okraj a spotřebuje se spousta bitů
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
695 na enkódování té části obrázku, která tu měla být.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
696 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
697
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
698 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
699 Pokud se obrázek dostane úplně ven z enkódované oblasti, má MPEG speciální
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
700 optimalizace pro opakované kopírování pixelů na okraj obrázku pokud přijde
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
701 vektor pohybu zvenčí enkódované oblasti. Tato vlastnost bude k ničemu, pokud
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
702 má film černé okraje. Na rozdíl od problémů 1 a 2 zde umístění okrajů na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
703 násobky 16 nepomůže.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
704 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
705 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
706
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
707 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
708 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
709 Navzdory tomu, že okraje jsou úplně černé a nikdy se nemění, je zde vždy
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
710 alespoň minimální datový tok spotřebovaný na větší množství makrobloků.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
711 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
712 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
713 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
714
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
715 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
716 Ze všech těchto důvodů doporučujeme zcela odstranit černé okraje. Dále, pokud
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
717 je na okraji obrázku oblast se šumem/zkreslením, jejím odstřižením se ještě
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
718 zvýší efektivita enkódování. Videofilní puristé, kteří chtějí zůstat tak
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
719 blízko originálu, jak je to jen možné, mohou protestovat proti tomuto ořezání,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
720 ale pokud nehodláte enkódovat s konstantním kvantizerem, kvalita kterou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
721 dostanete díky ořezání znatelně převýší množství ztracených informací na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
722 okrajích.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
723 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
724 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
725
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
726
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
727 <sect2 id="menc-feat-dvd-mpeg4-crop">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
728 <title>Ořezávání a škálování</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
729
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
730 <para>
15377
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
731 Připomeňme z předchozí části, že konečná velikost obrázku by měla mít
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
732 jak šířku, tak výšku beze zbytku dělitelnou 16, čehož můžete dosáhnout
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
733 pomocí ořezání, škálování, nebo kombinací obou.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
734 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
735
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
736 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
737 Při ořezávání byste se měli držet několika zásad, abyste předešli poškození
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
738 svého filmu.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
739 Normální YUV formát 4:2:0, ukládá barvonosnou (chroma) informaci
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
740 podvzorkovanou, čili hustota vzorkování barvy je poloviční oproti jasové
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
741 (černobílé) složce v obou směrech.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
742 Prohlédněte si tento diagram, kde L označuje vzorkovací body jasu a C
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
743 barvy.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
744 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
745
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
746 <informaltable>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
747 <?dbhtml table-width="40%" ?>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
748 <?dbfo table-width="40%" ?>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
749 <tgroup cols="8" align="center">
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
750 <colspec colnum="1" colname="col1"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
751 <colspec colnum="2" colname="col2"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
752 <colspec colnum="3" colname="col3"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
753 <colspec colnum="4" colname="col4"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
754 <colspec colnum="5" colname="col5"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
755 <colspec colnum="6" colname="col6"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
756 <colspec colnum="7" colname="col7"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
757 <colspec colnum="8" colname="col8"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
758 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
759 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
760 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
761 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
762 <tbody>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
763 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
764 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
765 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
766 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
767 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
768 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
769 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
770 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
771 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
772 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
773 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
774 <entry spanname="spa1-2">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
775 <entry spanname="spa3-4">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
776 <entry spanname="spa5-6">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
777 <entry spanname="spa7-8">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
778 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
779 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
780 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
781 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
782 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
783 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
784 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
785 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
786 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
787 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
788 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
789 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
790 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
791 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
792 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
793 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
794 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
795 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
796 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
797 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
798 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
799 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
800 <entry spanname="spa1-2">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
801 <entry spanname="spa3-4">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
802 <entry spanname="spa5-6">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
803 <entry spanname="spa7-8">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
804 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
805 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
806 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
807 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
808 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
809 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
810 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
811 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
812 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
813 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
814 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
815 </tbody>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
816 </tgroup>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
817 </informaltable>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
818
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
819 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
820 Jak vidíte, řádky i sloupce obrázku se přirozeně párují. Při ořezávání tedy
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
821 <emphasis>musí</emphasis> být hodnoty odsazení i rozměrů sudá čísla.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
822 Pokud nejsou, nebude se barvonosná informace zprávně krýt s jasovou.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
823 Teoreticky lze stříhat s lichým odsazením, ale to vyžaduje převzorkování
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
824 barvy, což je potenciálně ztrátový úkon a není podporován filtrem crop.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
825 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
826
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
827 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
828 Dále, prokládané video je vzorkováno takto:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
829 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
830
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
831 <informaltable>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
832 <?dbhtml table-width="80%" ?>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
833 <?dbfo table-width="80%" ?>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
834 <tgroup cols="16" align="center">
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
835 <colspec colnum="1" colname="col1"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
836 <colspec colnum="2" colname="col2"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
837 <colspec colnum="3" colname="col3"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
838 <colspec colnum="4" colname="col4"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
839 <colspec colnum="5" colname="col5"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
840 <colspec colnum="6" colname="col6"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
841 <colspec colnum="7" colname="col7"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
842 <colspec colnum="8" colname="col8"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
843 <colspec colnum="9" colname="col9"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
844 <colspec colnum="10" colname="col10"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
845 <colspec colnum="11" colname="col11"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
846 <colspec colnum="12" colname="col12"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
847 <colspec colnum="13" colname="col13"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
848 <colspec colnum="14" colname="col14"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
849 <colspec colnum="15" colname="col15"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
850 <colspec colnum="16" colname="col16"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
851 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
852 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
853 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
854 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
855 <spanspec spanname="spa9-10" namest="col9" nameend="col10"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
856 <spanspec spanname="spa11-12" namest="col11" nameend="col12"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
857 <spanspec spanname="spa13-14" namest="col13" nameend="col14"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
858 <spanspec spanname="spa15-16" namest="col15" nameend="col16"/>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
859 <tbody>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
860 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
861 <entry namest="col1" nameend="col8">Horní půlsnímek</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
862 <entry namest="col9" nameend="col16">Spodní půlsnímek</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
863 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
864 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
865 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
866 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
867 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
868 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
869 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
870 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
871 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
872 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
873 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
874 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
875 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
876 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
877 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
878 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
879 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
880 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
881 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
882 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
883 <entry spanname="spa1-2">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
884 <entry spanname="spa3-4">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
885 <entry spanname="spa5-6">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
886 <entry spanname="spa7-8">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
887 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
888 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
889 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
890 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
891 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
892 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
893 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
894 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
895 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
896 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
897 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
898 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
899 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
900 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
901 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
902 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
903 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
904 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
905 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
906 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
907 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
908 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
909 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
910 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
911 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
912 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
913 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
914 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
915 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
916 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
917 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
918 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
919 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
920 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
921 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
922 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
923 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
924 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
925 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
926 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
927 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
928 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
929 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
930 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
931 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
932 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
933 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
934 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
935 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
936 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
937 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
938 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
939 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
940 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
941 <entry spanname="spa9-10">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
942 <entry spanname="spa11-12">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
943 <entry spanname="spa13-14">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
944 <entry spanname="spa15-16">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
945 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
946 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
947 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
948 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
949 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
950 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
951 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
952 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
953 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
954 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
955 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
956 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
957 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
958 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
959 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
960 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
961 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
962 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
963 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
964 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
965 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
966 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
967 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
968 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
969 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
970 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
971 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
972 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
973 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
974 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
975 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
976 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
977 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
978 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
979 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
980 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
981 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
982 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
983 <entry spanname="spa1-2">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
984 <entry spanname="spa3-4">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
985 <entry spanname="spa5-6">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
986 <entry spanname="spa7-8">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
987 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
988 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
989 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
990 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
991 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
992 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
993 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
994 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
995 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
996 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
997 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
998 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
999 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1000 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1001 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1002 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1003 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1004 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1005 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1006 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1007 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1008 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1009 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1010 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1011 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1012 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1013 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1014 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1015 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1016 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1017 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1018 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1019 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1020 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1021 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1022 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1023 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1024 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1025 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1026 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1027 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1028 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1029 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1030 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1031 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1032 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1033 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1034 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1035 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1036 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1037 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1038 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1039 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1040 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1041 <entry spanname="spa9-10">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1042 <entry spanname="spa11-12">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1043 <entry spanname="spa13-14">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1044 <entry spanname="spa15-16">C</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1045 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1046 <row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1047 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1048 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1049 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1050 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1051 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1052 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1053 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1054 <entry></entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1055 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1056 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1057 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1058 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1059 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1060 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1061 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1062 <entry>L</entry>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1063 </row>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1064 </tbody>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1065 </tgroup>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1066 </informaltable>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1067
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1068 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1069 Jak vidíte, tak se vzor opakuje každé 4 řádky, takže při ořezu prokládaného
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1070 videa musí být odsazení v ose y a výška beze zbytku delitelné 4.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1071 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1072
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1073 <para>
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1074 Nativní DVD rozlišení je 720x480 pro NTSC a 720x576 pro PAL, ale je zde ještě
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1075 příznak poměru stran, který udává, zda se jedná o obrazovku (full-screen)(4:3),
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1076 nebo širokoúhlý film (wide-screen)(16:9). Mnoho (jestli ne většina)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1077 širokoúhlých DVD není přesně 16:9, ale bude buď 1.85:1 anebo 2.35:1
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1078 (cinescope). To znamená, že zde budou ve videu černé okraje, které bude nutné
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1079 odstřihnout.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1080 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1081
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1082 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1083 <application>MPlayer</application> poskytuje filtr pro detekci potřebného
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1084 ořezu, který stanoví ořezový obdélník (<option>-vf cropdetect</option>).
15377
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1085 Spusťte <application>MPlayer</application> s volbou
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1086 <option>-vf cropdetect</option> a on vám vypíše nastavení filtru crop pro
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1087 ořezání okrajů.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1088 Měli byste nechat běžet film tak dlouho, dokud není použita celá plocha
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1089 obrázku, abyste dostali správné hodnoty crop.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1090 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1091
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1092 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1093 Pak otestujte získané hodnoty z příkazového řádku
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1094 <application>MPlayer</application>u vypisované <option>cropdetect</option>em
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1095 a upravte obdélník podle potřeby.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1096 V tom vám pomůže filtr <option>rectangle</option>, který interaktivně
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1097 nastavit obdélník pro váš film.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1098 Nezapomeňte zachovat výše uvedená doporučení, abyste nepoškodili barevnou
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1099 mapu.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1100 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1101
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1102 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1103 Škálování je obvykle nevhodné.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1104 Škálování prokládaného videa je obtížné a pokud chcete zachovat prokládání,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1105 měli byste se mu úplně vyhnout.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1106 Pokud mebudete škálovat, ale budete chtít používat rozměry v násobcích 16,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1107 budete muset oříznout i část obrazu.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1108 Neponechávejte ani malé černé okraje, jelikož se velmi špatně kódují!
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1109 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1110
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1111 <para>
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1112 Protože MPEG-4 používá makrobloky 16x16, měli byste se ujistit, že oba rozměry
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1113 videa jsou násobkem 16, jinak snížíte kvalitu, zvlášť při nízkých datových
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1114 tocích. Můžete to zajistit zaokrouhlením šířky a výšky ořezového obdélníku
15377
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1115 dolů na nejbližší násobek 16.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1116 Jak jsme již řekli, měli byste při ořezávání zvýšit odsazení
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1117 (offset) v ose y o polovinu rozdílu mezi starou a novou výškou, takže bude
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1118 výsledné video bráno ze středu snímku. Z důvodu principu vzorkování DVD videa
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1119 se ujistěte, že je odsazení sudé číslo. (Popravdě, přijměte jako pravidlo,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1120 nikdy nepoužívat liché hodnoty pro jakýkoli z parametrů při ořezávání a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1121 škálování videa.) Pokud nechcete zahodit těch několik pixelů navíc, můžete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1122 místo toho raději změnit velikost videa (škálovat). Na to se podíváme
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1123 v příkladu níže.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1124 V praxi můžete nechat filtr <option>cropdetect</option> udělat všechnu práci
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1125 zmíněnou výše, jelikož má volitelný parametr <option>round</option>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1126 (zaokrouhlení), jehož výchozí hodnota je 16.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1127 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1128
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1129 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1130 Rovněž buďte opatrní na "napůl černé" pixely na okrajích. Vždy je rovněž
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1131 odstřihněte, jinak zde budete plýtvat bity, které můžete použít jinde.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1132 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1133
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1134 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1135 Poté co provedete vše, co jsme si doposud řekli, budete mít video, které asi
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1136 nebude právě 1.85:1 nebo 2.35:1, ale někde poblíž. Můžete spočítat nový poměr
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1137 stran ručně, ale <application>MEncoder</application> nabízí volbu pro
15220
93c3668ccd22 100l build fixes
diego
parents: 15219
diff changeset
1138 <systemitem class="library">libavcodec</systemitem> nazývanou <option>autoaspect</option>,
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1139 která to za vás udělá. Nezvětšujte video jen proto, abyste dosáhli čtvercových
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1140 pixelů, pokud je vám milé místo na disku. Škálování by mělo být provedeno při
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1141 přehrávání, kdy přehrávač použije poměr stran uložený v AVI pro zajištění
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1142 správného rozlišení.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1143 Naneštěstí ne všechny přehrávače uplatňují tuto autoškálovací informaci,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1144 takže můžete přece jen chtít škálovat.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1145 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1146
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1147 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1148 Nejdřív byste si měli spočítat enkódovaný poměr stran:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1149 <systemitem>PSo = (Šo x (PSa / PRdvd )) / Vo</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1150 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1151 <title>kde:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1152 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1153 Šo a Vo jsou šířka a výška ořezaného videa,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1154 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1155 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1156 PRdvd je poměr pixelů v DVD, který je roven 1.25=(720/576) pro DVD
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1157 v PALu a 1.5=(720/480) pro DVD v NTSC,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1158 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1159 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1160 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1161
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1162 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1163 Pak si můžete spočítat rozlišení X a Y podle určitého faktoru kvality komprese
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1164 (CQ):
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1165 <systemitem>RozY = INT(SQRT( 1000*Datový_tok/25/PSo/CQ )/16) * 16</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1166 <systemitem>RozX = INT( RozY * PSo / 16) * 16</systemitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1167 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1168
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1169 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1170 Dobře, ale co je ten CQ?
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1171 CQ odpovídá počtu bitů na pixel a na snímek v zakódování. Jinými slovy, čím
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1172 vyšší je CQ, tím nižší je šance uvidět enkódovací artefakty.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1173 Pokud ovšem máte cílový rozměr vašeho filmu (1 nebo 2 CD například), máte jen
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1174 omezené množství bitů, které můžete spotřebovat; takže je nutné najít vhodný
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1175 kompromis mezi komprimovatelností a kvalitou.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1176 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1177
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1178 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1179 CQ závisí jak na datovém toku, tak na rozlišení filmu. Abyste zvýšili CQ,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1180 obvykle zmenšíte daný film, takže je datový tok spočítán ve funkci cílové
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1181 velikosti a délky filmu, které jsou konstantní.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1182 CQ pod 0.18 obvykle vede k velmi čtverečkovanému obrazu, protože není dostatek
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1183 bitů pro zakódování informací každého makrobloku (MPEG4, stejně jako mnoho
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1184 jiných kodeků seskupuje pixely do bloků při komprimaci obrázku; pokud není
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1185 dostatek bitů, jsou viditelné hranice těchto bloků).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1186 Proto je rozumné volit CQ v rozmezí 0.20 až 0.22 pro rip na 1 CD a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1187 0.26 až 0.28 pro 2 CD.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1188 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1189
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1190 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1191 Prosíme berte v potaz, že CQ je jen informační pomůcka závisející na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1192 enkódovaném obsahu. CQ okolo 0.18 může být dostatečně dobrý pro Bergmana,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1193 na rozdíl od filmu jako je Matrix, který obsahuje mnoho rychlých scén.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1194 Na druhou stranu je zbytečné zvyšovat CQ výš než 0.30, jelikož budete plýtvat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1195 bity za minimální zisk kvality.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1196 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1197
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1198 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1199
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1200 <sect2 id="menc-feat-dvd-mpeg4-audio">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1201 <title>Zvuk</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1202
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1203 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1204 Zvuk je mnohem jednodušší problém k řešení: pokud prahnete po kvalitě, prostě
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1205 jej nechte tak jak je.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1206 Dokonce i AC3 5.1 datové proudy mají nanejvýš 448Kbitů/s a stojí za každý bit.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1207 Možná jste v pokušení převést zvuk do Ogg Vorbis při vysoké kvalitě, ale jen
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1208 proto, že dnes nemáte A/V receiver pro hardwarové dekódování AC3 neznamená,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1209 že jej nebudete mít zítra. Připravte své DVD ripy zachováním AC3 datových
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1210 proudů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1211 Datový proud AC3 můžete zachovat buď jeho zkopírováním přímo do video proudu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1212 <link linkend="menc-feat-mpeg4">během enkódování</link>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1213 Také můžete extrahovat AC3 proud, abyste jej pak namixovali do nosičů jako je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1214 NUT nebo Matroska.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1215 <screen>mplayer <replaceable>zdrojový_soubor.vob</replaceable> -aid 129 -dumpaudio -dumpfile <replaceable>zvuk.ac3</replaceable></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1216 vytáhne do souboru <replaceable>zvuk.ac3</replaceable> zvukovou stopu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1217 číslo 129 ze souboru <replaceable>zdrojový_soubor.vob</replaceable> (NB: DVD
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1218 VOB soubory obvykle používají odlišné číslování audia,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1219 což znamená, že VOB zvuková stopa 120 je druhou zvukovou stopou v souboru).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1220 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1221
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1222 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1223 Někdy ovšem opravdu nemáte jinou možnost než dále zkomprimovat zvuk, aby vám
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1224 zbylo více bitů na video.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1225 Většina lidí volí komprimaci buď pomocí MP3 nebo Vorbis audio kodeků.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1226 Zatímco ten druhý je efektivnější z prostorového hlediska, MP3 je lépe
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1227 podporován hardwarovými přehrávači, ačkoli časy se mění.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1228 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1229
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1230 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1231 Nejdříve ze všeho budete muset převést DVD zvuk do WAV souboru, který pak
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1232 použije zvukový kodek jako vstup.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1233 Například:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1234 <screen>mplayer <replaceable>zdrojový_soubor.vob</replaceable> -ao pcm:file=<replaceable>výsledný_zvuk.wav</replaceable> -vc dummy -aid 1 -vo null</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1235 vylije druhou zvukovou stopu ze souboru
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1236 <replaceable>zdrojový_soubor.vob</replaceable> do souboru
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1237 <replaceable>výsledný_zvuk.wav</replaceable>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1238 Měli byste normalizovat zvuk před enkódováním, protože DVD zvukové stopy jsou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1239 obvykle nahrávány při nízkých hlasitostech.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1240 Můžete například použít nástroj <application>normalize</application>, který je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1241 k dispozici ve většině distribucí.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1242 Pokud používáte Windows, stejnou práci udělá nástroj jako
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1243 <application>BeSweet</application>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1244 Komprimovat budete buď ve Vorbisu nebo MP3.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1245 Například:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1246 <screen>oggenc -q1 <replaceable>cílový_zvuk.wav</replaceable></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1247 provede enkódování <replaceable>cílového_zvuku.wav</replaceable> s kvalitou 1,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1248 která přibližně odpovídá 80Kb/s a je to minimální kvalita na kterou byste měli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1249 enkódovat, pokud vám záleží na kvalitě.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1250 Poznamenejme, že <application>MEncoder</application> v současnosti neumí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1251 muxovat Vorbis zvukové stopy do výstupního souboru, protože podporuje pouze
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1252 AVI a MPEG kontejnery jako výstup. Pro oba platí, že některé přehrávače mohou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1253 mít problémy s udržením audio/video synchronizace, pokud je přítomen VBR zvuk
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1254 jako je Vorbis.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1255 Nemějte obavy, v tomto dokumentu vám ukážeme, jak to lze udělat pomocí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1256 programů třetích stran.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1257 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1258
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1259 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1260
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1261 <sect2 id="menc-feat-dvd-mpeg4-interlacing">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1262 <title>Prokládání a Telecine</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1263
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1264 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1265 Téměř veškeré filmy jsou natáčeny při 24 snímcích/s. Jelikož NTSC má
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1266 snímkovou rychlost 30000/1001 snímků/s, je třeba provést úpravu těchto
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1267 24 snímků/s videí, aby měly správnou NTSC snímkovou rychlost. Tato úprava se
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1268 jmenuje 3:2 pulldown a obecně je známa jako telecine (protože je pulldown
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1269 často prováděn během přenosu filmu na video) a, jednoduše řečeno, pracuje tak,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1270 že se film zpomalí na 24000/1001 snímků/s a každý čtvrtý snímek se zopakuje.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1271 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1272
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1273 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1274 Naopak žádné speciální úpravy se neprovádějí videu pro PAL DVD, která běží
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1275 při 25 snímcích/s. (Technicky lze na PAL provést telecine, tzv. 2:2 pulldown,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1276 ale v praxi se nepoužívá.) Film s 24 snímky/s je jednoduše přehráván rychlostí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1277 25 snímků/s. Výsledkem je, že video běží o něco rychleji, ale pokud nejste
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1278 vetřelec, tak si rozdílu ani nevšimnete. Většina filmů má navíc výškově
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1279 korigovaný zvuk, takže při přehrávání 25 snímků/s vše zní jak má i přesto, že
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1280 zvuk (a proto i celé video) má o 4% kratší dobu přehrávání než NTSC DVD.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1281 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1282
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1283 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1284 Jelikož video na PAL DVD nebylo upravováno, nemusíte si dělat starosti s jeho
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1285 snímkovou rychlostí. Zdroj má 25 snímků/s, váš rip také. Pokud ovšem ripujete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1286 NTSC DVD film, musíte provést inverzní telecine.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1287 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1288
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1289 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1290 Filmy točené rychlostí 24 snímků/s jsou na NTSC DVD uloženy buď jako
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1291 30000/1001 po telecine, nebo jako progresivní (neprokládaný) se snímkovou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1292 24000/1001 snímků/s, na kterých by měl provést telecine DVD přehrávač za letu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1293 Není to ale zákon: některé TV série jsou prokládané (např. Buffy Lovec upírů),
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1294 zatímco jiné jsou porůznu neprokládané nebo prokládané (např. Anděl, nebo 24
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1295 hodin).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1296 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1297
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1298 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1299 Doporučujeme, abyste si přečetli sekci o tom
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1300 <link linkend="menc-feat-telecine">Jak si poradit s telecine a prokladem na NTSC DVD</link>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1301 a naučili se jak využít různé možnosti.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1302 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1303
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1304 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1305 Pokud ovšem většinou ripujete pouze filmy, nejspíš se setkáváte
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1306 s neprokládaným nebo prokládaným videem 24 snímků/s. V tom případě můžete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1307 použít <option>pullup</option> filtr <option>-vf pullup,softskip</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1308 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1309
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1310 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1311
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1312
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1313 <sect2 id="menc-feat-dvd-mpeg4-filtering">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1314 <title>Filtrování</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1315
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1316 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1317 Obecně byste měli filtrovat video tak málo, jak je to jen možné, abyste
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1318 zůstali co nejblíž DVD originálu. Ořezání je často nutné (jak jsme již řekli),
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1319 ale neškálujte video. Ačkoli zmenšení rozlišení je občas upřednostňováno před
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1320 použitím vyšších kvantizerů, musíme se vyhnout oběma případům: pamatujme, že
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1321 jsme se již na začátku rozhodli obětovat bity za kvalitu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1322 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1323
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1324 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1325 Rovněž neupravujte gamu, kontrast, jas, atd. Co vypadá dobře na vaší
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1326 obrazovce, nemusí vypadat dobře na jiných. Tato přizpůsobení by měla být
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1327 prováděna pouze při přehrávání.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1328 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1329
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1330 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1331 Jednu věc byste však udělat měli, a to protáhnout video velmi lehkým
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1332 odšumovací filtr, jako je <option>-vf hqdn3d=2:1:2</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1333 Opět je to proto, abychom mohli některé bity lépe využít: proč s nimi plýtvat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1334 na šum, když si jej můžete přidat při přehrávání? Zvýšení parametrů pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1335 <option>hqdn3d</option> ještě více zvýší komprimovatelnost, ale pokud to
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1336 přeženete, riskujete zhoršení viditelnosti obrazu. Doporučené hodnoty okolo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1337 (<option>2:1:2</option>) jsou dost konzervativní; měli byste volně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1338 experimentovat s vyššími hodnotami a posoudit výsledek sami.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1339 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1340
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1341 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1342
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1343 <sect2 id="menc-feat-dvd-mpeg4-lavc-encoding-options">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1344 <title>Enkódovací volby libavcodecu</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1345
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1346 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1347 V ideálním případě byste asi chtěli jen říct enkodéru, aby se přepnul do
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1348 režimu "vysoká kvalita" a šel na to.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1349 To by bylo jistě hezké, ale naneštěstí je to těžké zavést, jelikož různé
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1350 volby enkódování vedou k různé kvalitě v závislosti na zdrojovém materiálu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1351 To proto, že komprese závisí na vizuálních vlastnostech daného videa.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1352 Například anime a živá akce mají zcela rozdílné vlastnosti a tedy vyžadují
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1353 odlišné volby pro dosažení optimálního enkódování.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1354 Dobrá zpráva je, že některé volby by nikdy neměly chybět, jako
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1355 <option>mbd=2</option>, <option>trell</option> a <option>v4mv</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1356 Podrobný popis obvyklých enkódovacích voleb naleznete níže.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1357 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1358
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1359
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1360 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1361 <title>Volby k nastavení:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1362 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1363 <emphasis role="bold">vmax_b_frames</emphasis>: 1 nebo 2 je v pořádku,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1364 v závislosti na filmu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1365 Poznamenejme, že libavcodec zatím nepodporuje uzavřený GOP (volba
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1366 <option>cgop</option> zatím nepracuje), takže DivX5 nebude schopen dekódovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1367 nic enkódovaného s B-snímky.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1368 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1369
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1370 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1371 <emphasis role="bold">vb_strategy=1</emphasis>: pomáhá ve scénách s rychlým
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1372 pohybem.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1373 Vyžaduje vmax_b_frames >= 2.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1374 V některých videích může vmax_b_frames snížit kvalitu, ale vmax_b_frames=2
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1375 spolu s vb_strategy=1 pomůže.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1376 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1377
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1378 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1379 <emphasis role="bold">dia</emphasis>: okruh vyhledávání pohybu. Čím větší, tím
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1380 lepší a pomalejší.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1381 Záporné hodnoty mají úplně jiný význam.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1382 Dobrými hodnotami jsou -1 pro rychlé enkódování, nebo 2-4 pro pomalejší.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1383 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1384
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1385 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1386 <emphasis role="bold">predia</emphasis>: předprůchod pro vyhledávání pohybu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1387 Není tak důležitý jako dia. Dobré hodnoty jsou 1 (výchozí) až 4. Vyžaduje
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1388 preme=2, aby byla opravdu k něčemu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1389 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1390
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1391 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1392 <emphasis role="bold">cmp, subcmp, precmp</emphasis>: Porovnávací funkce pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1393 odhad pohybu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1394 Experimentujte s hodnotami 0 (výchozí), 2 (hadamard), 3 (dct) a 6 (omezení
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1395 datového toku).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1396 0 je nejrychlejší a dostatečná pro precmp.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1397 Pro cmp a subcmp je 2 dobrá pro anime a 3 zase pro živou akci.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1398 6 může, ale nemusí být o něco lepší, ale je pomalá.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1399 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1400
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1401 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1402 <emphasis role="bold">last_pred</emphasis>: Počet prediktorů pohybu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1403 přebíraných z předchozího snímku.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1404 1-3 nebo tak pomůžou za cenu menšího zdržení.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1405 Vyšší hodnoty jsou však pomalé a nepřináší žádný další užitek.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1406 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1407
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1408 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1409 <emphasis role="bold">cbp, mv0</emphasis>: Ovládá výběr makrobloků.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1410 Malá ztráta rychlosti za malý zisk kvality.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1411 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1412
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1413 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1414 <emphasis role="bold">qprd</emphasis>: adaptivní kvantizace založená na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1415 komplexnosti makrobloku.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1416 Může pomoci i uškodit v závislosti na videu a ostatních volbách.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1417 Toto může způsobovat artefakty, pokud nenastavíte vqmax na nějakou rozumně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1418 malou hodnotu (6 je dobrá, možná byste ale měli jít až na 4); vqmin=1 může
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1419 také pomoci.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1420 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1421
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1422 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1423 <emphasis role="bold">qns</emphasis>: velmi pomalá, zvlášť v kombinaci
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1424 s qprd.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1425 Tato volba nutí enkodér minimalizovat šum díky kompresi artefaktů, místo aby
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1426 se snažil striktně zachovávat věrnost videa. Nepoužívejte ji, pokud jste již
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1427 nezkusili všechno ostatní kam až to šlo a výsledek přesto není dost dobrý.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1428 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1429
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1430 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1431 <emphasis role="bold">vqcomp</emphasis>: Vylepšení ovládání datového toku.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1432 Dobré hodnoty se liší podle videa. Můžete to bezpečně ponechat jak to je,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1433 pokud chcete.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1434 Snížením vqcomp pustíte více bitů do scén s nízkou komplexností, zvýšením je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1435 pošlete do scén s vysokou komplexností (výchozí: 0.5, rozsah: 0-1. doporučený
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1436 rozsah: 0.5-0.7).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1437 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1438
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1439 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1440 <emphasis role="bold">vlelim, vcelim</emphasis>: Nastaví jediný koeficient
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1441 prahu eliminace pro jasové a barevné roviny.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1442 Ty jsou enkódovány odděleně ve všech MPEGu podobných algoritmech.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1443 Myšlenka stojící za těmito volbami je použití dobré heuristiky pro určení,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1444 zda je změna v bloku menší než vámi nastavený práh a v tom případě se blok
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1445 enkóduje jako "nezměněný".
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1446 To šetří bity a možná i zrychlí enkódování. vlelim=-4 a vcelim=9 se zdají být
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1447 dobré pro hrané filmy, ale příliš nepomohou s anime; pokud enkódujete anime,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1448 měli byste je asi nechat beze změn.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1449 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1450
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1451 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1452 <emphasis role="bold">qpel</emphasis>: Odhad pohybu s přesností na čtvrt
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1453 pixelu. MPEG-4 používá přesnost na půl pixelu jako výchozí při vyhledávání
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1454 pohybu, proto je tato volba spojena s určitou režií, jelikož se do výstupního
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1455 souboru ukládá více informací.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1456 Kompresní zisk/ztráta závisí na filmu, ale obvykle to není příliš efektivní
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1457 na anime.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1458 qpel vždy způsobí zvýšení výpočetní náročnosti dekódování (v praxi +20% času
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1459 CPU).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1460 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1461
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1462 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1463 <emphasis role="bold">psnr</emphasis>: neovlivní aktuální enkódování, ale
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1464 zaznamená typ/velikost/kvalitu každého snímku do log souboru a na konci vypíše
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1465 souhrnný PSNR (odstup signálu od šumu).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1466 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1467
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1468 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1469
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1470 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1471 <title>Volby se kterými nedoporučujeme si hrát:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1472 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1473 <emphasis role="bold">vme</emphasis>: Výchozí je nejlepší.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1474 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1475
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1476 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1477 <emphasis role="bold">lumi_mask, dark_mask</emphasis>: Psychovizuálně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1478 adaptivní kvantizace.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1479 Nehrajte si s těmito volbami, pokud vám jde o kvalitu. Rozumné hodnoty mohou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1480 být efektivní ve vašem případě, ale pozor, je to velmi subjektivní.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1481 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1482
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1483 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1484 <emphasis role="bold">scplx_mask</emphasis>: Snaží se předcházet blokovým
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1485 artefaktům, ale postprocesing je lepší.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1486 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1487 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1488
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1489 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1490
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1491 <sect2 id="menc-feat-dvd-mpeg4-example">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1492 <title>Příklad</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1493
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1494 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1495 Takže jste si koupili zbrusu novou kopii filmu Harry Potter a Tajemná komnata
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1496 (širokoúhlou verzi samozřejmě) a chcete si toto DVD ripnout, takže si jej
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1497 můžete přidat do svého Domácího kino-počítače PC. Je to region 1 DVD, takže je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1498 v NTSC. Níže uvedený příklad je stále vhodný i pro PAL, jen musíte vynechat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1499 <option>-ofps 24000/1001</option> (protože výstupní snímková rychlost je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1500 shodná se vstupní) a přirozeně budou rozdílné souřadnice pro ořez.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1501 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1502
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1503 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1504 Po spuštění <option>mplayer dvd://1</option>, postupujeme podle informací
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1505 obsažených v sekci <link linkend="menc-feat-telecine">Jak naložit s telecine
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1506 a prokladem v NTSC DVD</link> a zjistíme že je to 24000/1001 neprokládané
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1507 video, takže nepotřebujeme použít inverzní telecine filtr, jako je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1508 <option>pullup</option> nebo <option>filmdint</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1509 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1510
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1511 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1512 Dále musíme zjistit vhodný ořezový obdélník, takže použijeme filtr cropdetect:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1513
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1514 <screen>mplayer dvd://1 -vf cropdetect</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1515
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1516 Ujistěte se, že jste přešli přes zaplněný snímek (nějakou jasnou scénu) a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1517 v konzoli <application>MPlayer</application>u uvidíte:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1518
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1519 <screen>crop area: X: 0..719 Y: 57..419 (-vf crop=720:362:0:58)</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1520
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1521 Potom přehrajeme film s tímto filtrem, abychom otestovali jeho správnost:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1522
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1523 <screen>mplayer dvd://1 -vf crop=720:362:0:58</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1524
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1525 A zjistíme, že to vypadá zcela v pořádku. Dále se ujistíme, že šířka i výška
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1526 jsou násobky 16. Šířka je v pořádku, výška ovšem ne. Protože jsme nepropadli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1527 v sedmé třídě z matematiky, víme, že nejbližším násobkem 16 nižším než 362 je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1528 352.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1529 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1530
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1531 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1532 Mohli bychom použít <option>crop=720:352:0:58</option>, ale bude lepší
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1533 ustřihnout kousek nahoře i dole, takže zachováme střed. Zkrátili jsme výšku
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1534 o 10 pixelů, ale nechceme zvýšit odsazení y o 5 pixelů, protože je to liché
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1535 číslo, což by nepříznivě ovlivnilo kvalitu. Místo toho zvýšíme odsazení y o 4
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1536 pixely:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1537
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1538 <screen>mplayer dvd://1 -vf crop=720:352:0:62</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1539
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1540 Další důvod pro odstřižení pixelů shora i zdola je to, že si můžeme být jisti
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1541 odstřižením napůl černých pixelů pokud existují. Pokud je však vaše video
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1542 telecinováno, ujistěte se, že máte v řetězu filtrů <option>pullup</option>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1543 filtr (nebo jiný filtr pro inverzi telecine, který hodláte použít) ještě před
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1544 odstraněním prokladu a ořezem. (Pokud se rozhodnete zachovat vaše video
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1545 prokládané, pak se ujistěte, že vaše vertikální odsazení (offset)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1546 je násobkem 4.)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1547 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1548
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1549 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1550 Pokud si děláte starosti se ztrátou těch 10 pixelů, možná raději snížíte
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1551 rozměry na nejbližší násobek 16. Řetězec filtrů by pak vypadal asi takto:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1552
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1553 <screen>-vf crop=720:362:0:58,scale=720:352</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1554
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1555 Takovéto zmenšení videa bude znamenat ztrátu malého množství detailů, což bude
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1556 pravděpodobně stěží postřehnutelné. Zvětšování by naopak vedlo ke snížení
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1557 kvality (pokud byste nezvýšili datový tok). Ořez odstraní tyto pixely úplně.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1558 To je jedna z věcí, kterou byste si měli uvážit pro každý případ zvlášť.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1559 Například pokud bylo DVD video vyrobeno pro televizi, měli byste se vyvarovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1560 vertikálnímu škálování, jelikož počet řádků odpovídá originální nahrávce.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1561 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1562
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1563 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1564 Při prohlídce jsme zjistili, že video je poměrně akční, s vysokým počtem
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1565 detailů, takže jsme zvolili datový tok 2400 Kbitů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1566 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1567
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1568 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1569 Nyní jsme připraveni provést dvouprůchodové enkódování. Průchod jedna:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1570
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1571 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1572 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 \
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1573 -o Harry_Potter_2.avi</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1574
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1575 A průchod dva je stejný, jen nastavíme <option>vpass=2</option>:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1576
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1577 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1578 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 \
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1579 -o Harry_Potter_2.avi</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1580 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1581
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1582 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1583 Volby <option>v4mv:mbd=2:trell</option> velmi zvýší kvalitu za cenu časové
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1584 náročnosti enkódování. Vcelku není důvod tuto volbu vypustit, pokud je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1585 primárním cílem kvalita. Volby <option>cmp=3:subcmp=3:mbcmp=3</option>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1586 vyberou porovnávací funkci, která poskytuje lepší kvalitu, než výchozí.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1587 S tímto parametrem můžete zkusit experimentovat (nahlédněte do man stránky pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1588 seznam možných hodnot), jelikož různé funkce mohou mít velký vliv na kvalitu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1589 v závislosti na zdrojovém materiálu. Například pokud zjistíte, že
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1590 <systemitem class="library">libavcodec</systemitem> produkuje příliš mnoho
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1591 čtverečkových artefaktů, můžete zkusit zvolit experimentální NSSE jako
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1592 porovnávací funkci přes <option>*cmp=10</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1593 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1594
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1595 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1596 V případě tohoto filmu bude výsledné AVI dlouhé 138 minut a veliké kolem 3GB.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1597 A protože jste řekli, že na velikosti nezáleží, je to přijatelná velikost.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1598 Ale pokud byste jej chtěli menší, můžete zkusit nižší datový tok.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1599 Efekt zvyšování datového toku se totiž neustále snižuje, takže zatímco je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1600 zlepšení po zvýšení z 1800 Kbitů na 2000 Kbitů zjevné, nemusí být již tak
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1601 velké nad 2000 Kbitů. Beze všeho s tím experimentujte, dokud nebudete
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1602 spokojeni.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1603 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1604
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1605 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1606 Jelikož jsme protáhli video odšumovacím filtrem, měli bychom jej trochu přidat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1607 během přehrávání. To, spolu s <option>spp</option> post-procesním filtrem,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1608 znatelně zvýší vnímanou kvalitu a pomůže odstranit čtverečkové artefakty ve
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1609 videu. S <application>MPlayer</application>ovou volbou <option>autoq</option>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1610 může být množství postprocesingu prováděného filtrem spp přizpůsobováno
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1611 vytížení CPU. V tuto chvíli rovněž můžete provést korekci gama a/nebo barevnou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1612 korekci k dosažení nejlepších výsledků. Například:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1613
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1614 <screen>mplayer Harry_Potter_2.avi -vf spp,noise=9ah:5ah,eq2=1.2 -autoq 3</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1615
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1616 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1617 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1618
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1619 <sect2 id="menc-feat-dvd-mpeg4-muxing">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1620 <title>Muxování (multiplexování)</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1621 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1622 Nyní, když máte své video enkódované, budete jej nejspíš chtít muxovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1623 s jedním nebo více zvukovými stopami do nosného filmového formátu, jako je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1624 AVI, MPEG, Matroska nebo NUT.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1625 <application>MEncoder</application> je zatím schopen zvuk a video zapracovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1626 pouze do nosných formátů MPEG a AVI.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1627 Například:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1628 <screen>mencoder -oac copy -ovc copy -o <replaceable>výstupní_film.avi</replaceable> -audiofile <replaceable>vstupní_audio.mp2</replaceable> <replaceable>vstupní_video.avi</replaceable></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1629 To by mělo sloučit video soubor <replaceable>vstupní_video.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1630 a zvukový soubor <replaceable>vstupní_audio.mp2</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1631 do AVI souboru <replaceable>výstupní_film.avi</replaceable>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1632 Tento příkaz pracuje s MPEG-1 layer I, II a III (známým jako MP3) zvukem,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1633 WAV a také několika dalšími formáty zvuku.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1634 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1635
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1636 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1637 <application>MEncoder</application> obsahuje experimentální podporu pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1638 <systemitem class="library">libavformat</systemitem>, což je knihovna
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1639 z projektu FFmpeg, která podporuje muxování a demuxování celé řady nosných
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1640 formátů.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1641 Například:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1642 <screen>mencoder -oac copy -ovc copy -o <replaceable>výstupní_film.asf</replaceable> -audiofile <replaceable>vstupní_audio.mp2</replaceable> <replaceable>vstupní_video.avi</replaceable> -of lavf -lavfopts format=asf</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1643 To provede stejnou činnost jako předchozí příklad, avšak výstupním formátem
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1644 bude ASF.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1645 Prosím berte na vědomí, že tato podpora je velmi experimentální (ale de ode
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1646 dne lepší) a bude funkční pouze pokud jste zkompilovali
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1647 <application>MPlayer</application> s podporou pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1648 <systemitem class="library">libavformat</systemitem> (což znamená, že
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1649 předkompilovaná binární verze nebude většinou fungovat).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1650 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1651
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1652 <sect3 id="menc-feat-dvd-mpeg4-muxing-avi-limitations">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1653 <title>Limitace nosného formátu AVI</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1654 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1655 Ačkoli je to po MPEG-1 nejpodporovanější nosný formát, má AVI i jisté
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1656 zásadní nedostatky. Snad nejviditelnější je režie.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1657 Na každý chunk AVI souboru je 24 bajtů ztraceno na hlavičky a index.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1658 To se projeví asi 5 MP na hodinu, neboli 1-2.5% prodloužení 700 MB filmu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1659 Nevypadá to jako mnoho, ale může to znamenat rozdíl mezi možností použít
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1660 video při 700 kbitech/s nebo 714 kbitech/s a tady se každý bit projeví na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1661 kvalitě.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1662 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1663
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1664 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1665 Navíc k této neefektivitě má AVI také následující hlavní omezení:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1666 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1667
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1668 <orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1669 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1670 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1671 Může být uchováván pouze obsah s konstantní snímkovou rychlostí. To je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1672 zvláště omezující, když má původní materiál, který chcete enkódovat, smíšený
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1673 obsah. Například směs NTSC videa a filmového materiálu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1674 Jistěže jsou zde cestičky, které umožní uložit obsah se smíšenou snímkovou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1675 rychlostí v AVI, ale ty zvyšují (již tak velkou) režii pětinásobně nebo víc,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1676 proto nejsou praktické.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1677 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1678 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1679 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1680 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1681 Zvuk v AVI musí mít buď konstantní datový tok (CBR) nebo konstantní velikost
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1682 rámce (čili všechny rámce se dekódují na stejný počet vzorků).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1683 Naneštěstí ten nejefektivnější kodek, Vorbis, nesplňuje ani jeden z těchto
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1684 požadavků.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1685 Pokud tedy plánujete uložit svůj film do AVI, budete muset použít méně
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1686 efektivní kodek, jako MP3 nebo AC3.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1687 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1688 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1689 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1690
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1691 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1692 Z výše uvedených důvodů <application>MEncoder</application> zatím
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1693 nepodporuje proměnnou snímkovou rychlost ani enkódování do Vorbisu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1694 Nemusíte to však považovat za omezení, jestliže je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1695 <application>MEncoder</application> jediným nástrojem pro vaše
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1696 enkódování. Nakonec je možné použít <application>MEncoder</application> pouze
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1697 pro enkódování videa a pak použít externí nástroje pro enkódování zvuku a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1698 namuxování do jiného nosného formátu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1699 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1700 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1701
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1702 <sect3 id="menc-feat-dvd-mpeg4-muxing-matroska">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1703 <title>Muxování do nosného formátu Matroska</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1704 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1705 Matroska je svobodný a otevřený standard nosného formátu, zaměřený na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1706 nabídku mnoha pokročilých vlastností, které starší nosné formáty, jako AVI,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1707 nemohou poskytnout.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1708 Například Matroska podporuje zvuk s proměnným datovým tokem (VBR),
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1709 proměnné snímkové rychlosti (VFR), kapitoly, přílohy souborů, kód pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1710 detekci chyb (EDC) a moderní A/V kodeky jako "Advanced Audio
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1711 Coding" (AAC), "Vorbis" nebo "MPEG-4 AVC" (H.264), z nichž žádný nelze
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1712 použít v AVI.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1713 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1714
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1715 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1716 Nástroje pro vytváření Matroska souborů jsou souhrnně nazvány
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1717 <application>mkvtoolnix</application> a jsou dostupné pro většinu Unixových
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1718 platforem a stejně tak <application>Windows</application>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1719 Protože je Matroska otevřený standard, můžete najít jiné nástroje, které vám
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1720 lépe padnou, ale protože mkvtoolnix je nejrozšířenější a je podporován
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1721 přímo Matroska týmem, pokryjeme jen jejich použití.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1722 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1723
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1724 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1725 Asi nejsnazší způsob, jak začít s Matroskou je použít
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1726 <application>MMG</application>, grafickou nadstavbu dodávanou s
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1727 <application>mkvtoolnix</application> a řídit se
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1728 <ulink url="http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge-gui.html">návodem k mkvmerge GUI (mmg)</ulink>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1729 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1730
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1731 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1732 Můžete rovněž muxovat zvukové a video soubory z příkazového řádku:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1733 <screen>mkvmerge -o <replaceable>výstup.mkv</replaceable> <replaceable>vstupní_video.avi</replaceable> <replaceable>vstupní_audio1.mp3</replaceable> <replaceable>vstupní_audio2.ac3</replaceable></screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1734 To spojí video soubor <replaceable>vstupní_video.avi</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1735 a dva zvukové soubory <replaceable>vstupní_audio1.mp3</replaceable>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1736 a <replaceable>vstupní_audio2.ac3</replaceable> do Matroska souboru
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1737 <replaceable>výstup.mkv</replaceable>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1738 Matroska, jak jsme již řekli, umí mnohem víc než to, jako více zvukových stop
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1739 (včetně doladění audio/video synchronizace), kapitoly, titulky, stříhání,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1740 atd...
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1741 Detaily naleznete v dokumentaci k těmto aplikacím.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1742 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1743
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1744 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1745
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1746 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1747
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1748 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
1749
15377
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1750 <sect1 id="menc-feat-x264">
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1751 <title>Enkódování s <systemitem class="library">x264</systemitem> kodekem</title>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1752 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1753 <systemitem class="library">x264</systemitem> je svobodná knihovna pro
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1754 enkódování H264/AVC video proudů.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1755 Pře zahájením enkódování budete muset <link linkend="codec-x264-encode">
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1756 nastavit její podporu v<application>MEncoder</application>u</link>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1757 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1758
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1759 <sect2 id="menc-feat-x264-intro">
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1760 <title>Jaké volby bychom měli nastavit pro nejlepší výsledky?</title>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1761
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1762 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1763 Začněte prosím prostudováním části
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1764 <systemitem class="library">x264</systemitem> v man stránce
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1765 <application>MPlayer</application>u.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1766 Tato sekce je zamýšlena jako doplněk man stránky.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1767 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1768
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1769 <orderedlist>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1770 <title>Obecně jsou zde tři typy uvažování při volbě vhodných voleb enkodéru:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1771 </title>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1772 <listitem><para>Časová náročnost enkódování vs. kvalita</para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1773 <listitem><para>Volby rozhodující o typu snímků</para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1774 <listitem><para>Volby ovlivňující kontrolu datového toku a kvantizaci</para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1775 </orderedlist>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1776
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1777 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1778 Tento návod se většinou zaměřuje na první skupinu voleb.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1779 Další dvě skupiny často záleží na osobních preferencích a individuálních
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1780 požadavcích.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1781 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1782
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1783 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1784 Než budeme pokračovat, poznamenejme, že tento návod používá jediné měřítko
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1785 kvality: celkový PSNR.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1786 Stručné vysvětlení co je to PSNR, naleznete
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1787 <ulink url="http://en.wikipedia.org/wiki/PSNR">ve Wikipedii pod heslem PSNR</ulink>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1788 Celkové PSNR je poslední hlášené PSNR číslo při zařazení volby
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1789 <option>psnr</option> v <option>x264encopts</option>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1790 Kdykoli budete číst prohlášení o PSNR, jeden z předpokladů tohoto sdělení
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1791 je, že jsou použity shodné datové toky.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1792 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1793
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1794 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1795 Téměř všechny komentáře v tomto návodu předpokládají, že enkódujete
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1796 dvouprůchodově.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1797 Při porovnávání voleb jsou zde dva hlavní důvody pro použití dvouprůchodového
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1798 enkódování.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1799 Zaprvé, dvouprůchodové enkódování vám získá zhruba 1dB PSNR, což je
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1800 velký rozdíl.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1801 Zadruhé, testování voleb pomocí přímého porovnání kvality v jednoprůchodových
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1802 výsledcích je pochybné, jelikož se datový tok značně liší s každým
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1803 enkódováním.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1804 Není vždy snadné určit, zda se změnila kvalita díky změně voleb, nebo
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1805 z větší části odpovídají změnám datového toku.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1806 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1807
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1808 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1809 Z voleb, které umožňují vyměnit čas za kvalitu, jsou obvykle nejdůležitější
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1810 <option>subq</option> a <option>frameref</option>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1811 Máte-li zájem ovlivnit jak rychlost, tak kvalitu, jsou to první volby,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1812 které byste měli zvážit.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1813 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1814
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1815 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1816 Ve smyslu rychlosti se spolu volby <option>frameref</option> a
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1817 <option>subq</option> velmi silně ovlivňují.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1818 Zkušenosti ukazují, že při jednom referenčním snímku si
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1819 <option>subq=5</option> vezme asi o 35% více času než
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1820 <option>subq=1</option>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1821 Při 6 referenčních snímcích naroste spomalení nad 60%.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1822 Vliv <option>subq</option> na PSNR se zdá být poměrně stálý,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1823 bez ohledu na počet referenčních snímků.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1824 Typicky <option>subq=5</option> získá 0.2-0.5 dB
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1825 celkového PSNR přes <option>subq=1</option>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1826 To je obvykle již viditelné.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1827 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1828
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1829 </sect2>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1830
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1831 <sect2 id="menc-feat-x264-encoding-options">
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1832 <title>Enkódovací volby x264</title>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1833
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1834 <itemizedlist>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1835 <listitem><para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1836 <emphasis role="bold">frameref</emphasis>:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1837 Výchozí nastavení <option>frameref</option> je 1, ale nemělo by to být bráno
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1838 tak, že je rozumné nastavovat jej na 1.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1839 Pouhé zvýšení <option>frameref</option> na 2 získá okolo
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1840 0.15dB PSNR s 5-10% spomalením, což je zřejmě dobrý obchod.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1841 <option>frameref=3</option> získá kolem 0.25dB PSNR navíc k
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1842 <option>frameref=1</option>, což již může být viditelný
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1843 rozdíl.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1844 <option>frameref=3</option> je asi o 15% pomalejší než
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1845 <option>frameref=1</option>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1846 Naneštěstí se zisk rychle vytrácí.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1847 Prř <option>frameref=6</option> můžete očekávat zisk pouze
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1848 0.05-0.1 dB nad <option>frameref=3</option> při dodatečném
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1849 15% zpomalení.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1850 Nad <option>frameref=6</option> je zisk kvality obvykle velmi malý
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1851 (ačkoli byste měli mít na paměti, že se to může výrazně lišit v závislosti
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1852 na zdrojovém materiálu).
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1853 V poměrně typickém případě zlepší <option>frameref=12</option>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1854 celkový PSNR o pouhé 0.02dB nad <option>frameref=6</option>,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1855 při spomalení o 15%-20%.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1856 Při tak vysokých hodnotách <option>frameref</option> lze říct pouze
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1857 jedinou dobrou věc, a to že jejich další zvyšování téměř nikdy
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1858 <emphasis role="bold">nesníží</emphasis> PSNR, ale další zisk kvality
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1859 je stěží měřitelný, natož viditelný.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1860 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1861 <note><title>Poznámka:</title>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1862 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1863 Zvýšení <option>frameref</option> na nemístně vysokou hodnotu
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1864 <emphasis role="bold">může</emphasis> a
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1865 <emphasis role="bold">obvykle taky sníží</emphasis>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1866 efektivitu kódování, pokud vypnete CABAC.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1867 Se zapnutým CABAC (výchozí chování) se zdá být možnost nastavit
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1868 <option>frameref</option> "příliš vysoko" příliš vzdálená na to,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1869 abyste se tím museli trápit a v budoucnu mohou optimalizace
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1870 tuto možnost zcela vyloučit.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1871 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1872 </note>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1873 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1874 Pokud vám záleží na rychlosti, bývá vhodným kompromisem použít
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1875 nízké hodnoty <option>subq</option> a <option>frameref</option>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1876 v prvním průchodu a zvýšit je ve druhém.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1877 Typicky to má zanedbatelný záporný vliv na konečnou kvalitu:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1878 pravděpodobně stratíte méně než 0.1dB PSNR, což by měl být až příliš
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1879 malý rozdíl, než aby byl vidět.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1880 Odlišné hodnoty <option>frameref</option> však mohou místy ovlivnit
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1881 volbu typu snímku.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1882 Nejspíš to budou ojedinělé případy, ale chcete-li si být zcela jisti,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1883 zjistěte, jestli vaše video obsahuje buď blýskavé vzory přes celou obrazovku,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1884 nebo rozsáhlé krátkodobé změny, které by mohly vynutit I-snímek.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1885 Nastavte <option>frameref</option> pro první průchod tak, aby byl
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1886 dostatečně velký pro pokrytí doby bliknutí (nebo změny).
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1887 Například, pokud scéna přepíná tam a zpět mezi dvěma obrázky přes tři snímky,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1888 nastavte <option>frameref</option> pro první průchod na 3 a více.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1889 Tento případ je nejspíš zcela ojedinělý v hraných filmech, ale občas se
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1890 vyskytuje v záznamech z videoher.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1891 </para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1892
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1893 <listitem><para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1894 <emphasis role="bold">bframes</emphasis>:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1895 Použitelnost B-snímků je ve většině ostatních kodeků diskutabilní.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1896 V H.264 se to změnilo: jsou zde nové techniky a typy bloků pro použití
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1897 v B-snímcích.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1898 Obvykle i naivní algoritmus pro výběr B-snímku může zajistit znatelný
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1899 zisk PSNR.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1900 Také je zajímavé, že pokud vypnete adaptivní rozhodování o B-snímku
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1901 (<option>nob_adapt</option>), zvýší obvykle enkódování s
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1902 <option>bframes</option> o trochu rychlost enkódování.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1903 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1904 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1905 S vypnutým adaptivním rozhodováním o B-snímku
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1906 (<option>x264encopts</option>'s <option>nob_adapt</option>),
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1907 se optimální hodnota této volby obvykle pohybuje od
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1908 <option>bframes=1</option> do <option>bframes=3</option>.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1909 Se zapnutým adaptivním rozhodováním o B-snímku (výchozí chování),
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1910 je obvykle bezpečné použít vyšší hodnoty; enkodér se pokusí snížit
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1911 použití B-snímků ve scénách, kde by snížily kompresi.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1912 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1913 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1914 Pokud vůbec použijete <option>bframes</option>, zvažte
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1915 nastavení maximálního počtu B-snímků na 2 nebo více, pokud chcete
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1916 těžit z vážené predikce.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1917 </para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1918
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1919 <listitem><para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1920 <emphasis role="bold">b_adapt</emphasis>:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1921 Poznámka: ve výchozím stavu zapnuto.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1922 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1923 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1924 Je-li tato volba zapnuta, bude enkodér používat jendoduchou
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1925 heuristiku pro snížení počtu B-snímků ve scénách, kde by jejich
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1926 použitím příliš nezískaly.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1927 Můžete použít <option>b_bias</option> pro nastavení jak přátelský
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1928 bude enkodér k B-snímkům.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1929 Spomalení působené adaptivními B-snímky je nyní spíše malé, ale
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1930 stejně tak potenciální zisk kvality.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1931 Obvykle však nijak neškodí.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1932 Poznamenejme, že ovlivňuje rychlost a rozhodování o typu snímku pouze
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1933 v prvním průchodu.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1934 <option>b_adapt</option> a <option>b_bias</option> nemají žádný vliv
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1935 v náslydných průchodech.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1936 </para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1937
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1938 <listitem><para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1939 <emphasis role="bold">b_pyramid</emphasis>:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1940 Pokud používáte >2 B-snímky, můžete také zapnout tuto volbu; jak
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1941 říká man stránka, dostanete malé zvýšení kvality bez ztráty rychlosti.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1942 Poznamenejme, že tato videa nelze číst dekodéry založenými na libavcodec
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1943 staršími než 5. března 2005.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1944 </para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1945
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1946 <listitem><para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1947 <emphasis role="bold">weight_b</emphasis>:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1948 V typických případech tato volba nepřináší velký zisk.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1949 V prolínacích nebo stmívacích scénách však vážená predikce
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1950 umožňuje poměrně velkou úsporu datového toku.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1951 V MPEG-4 ASP bývá stmívání obvykle nejlépe kódováno jako série
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1952 velkých I-snímků; použití vážené predikce v B-snímcích umožňuje
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1953 změnit alespoň některé z nich na rozumně menší B-snímky.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1954 Spomalení enkódování se zdá být minimální, pokud nějaké je.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1955 Rovněž, v rozporu s tím, co si někteří lidé mohou myslet,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1956 požadavky dekodéru na CPU nejsou váženou predikcí ovlivněny,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1957 ostatní možnosti jsou stejně náročné.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1958 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1959 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1960 Naneštěstí má aktuálně algoritmus adaptivního rozhodování o B-snímcích
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1961 výraznou tendenci vyvarovat se B-snímků při stmívání.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1962 Dokud se to nezmění, bude dobré přidat
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1963 <option>nob_adapt</option> do x264encopts, pokud očekáváte, že stmívání
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1964 bude mít znatelný vliv ve vašem konkrétním klipu.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1965 </para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1966
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1967 <listitem><para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1968 <emphasis role="bold">deblockalpha, deblockbeta</emphasis>:
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1969 Toto bude poněkud kontroverzní.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1970 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1971 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1972 H.264 definuje jednoduchou deblokující proceduru na I-blocích, která
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1973 používá přednastavené síly a prahy na QP daného bloku.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1974 Ve výchozím stavu jsou bloky s nízkým QP silně filtrovány a bloky s
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1975 nízkým QP nejsou deblokovány vůbec.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1976 Přednastavené síly definované standardem jsou dobře voleny a
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1977 odchylky jsou velmi dobré, takže jsou PSNR optimální pro jakékoli
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1978 video, které zkoušíte enkódovat.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1979 Volby <option>deblockalpha</option> a <option>deblockbeta</option>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1980 vám umožní nastavit odchylky přednastavených deblokovacích prahů.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1981 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1982 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1983 Zdá se, že si mnoho lidí myslí, že je vhodné výrazně snížit sílu (řekněme, -3)
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1984 deblokovacího filtru.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1985 To však není téměř nikdy dobrý nápad a v mnoha případech lidé, kteří
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1986 tak činí, dobře nerozumí jak výchozí deblokování pracuje.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1987 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1988 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1989 První a nejdůležitější věc, kterou byste měli o in-loop deblokovacím
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1990 filtru vědět je, že výchozí nastavení prahů je téměř vždy optimální
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1991 vzhledem k PSNR.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1992 V řídkých případech kdy není, je ideální odchylka plus mínus 1.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1993 Změna deblokujících parametrů o větší hodnotu vede téměř s jistotou
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1994 ke zhoršení PSNR.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1995 Zesílení filtru setře více detailů; zeslabení zvýší viditelnost čtverečkování.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1996 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1997 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1998 Rozhodně je nevhodné snižovat deblokovací prahy, pokud má vaše video
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
1999 nízkou prostorovou komplexnost (čili nemnoho detailů nebo šumu).
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2000 In-loop filtr téměř perfektně kryje artefakty, které se vyskytnou.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2001 Pokud má však zdroj vysokou prostorovou komplexnost, jsou artefakty
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2002 hůře rozeznatelné.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2003 To proto, že kroužkování má tendenci vypadat jako detail nebo šum.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2004 Lidská vizuální vnímavost si snadno povšimne, když je odstraněn detail,
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2005 ale obtížněji si všimne, když je špatně reprezentován šum.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2006 Když příjde na subjektivní kvalitu, je šum částečně zaměnitelný s detaily.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2007 Snížením síly deblokovacího filtru nejspíše zvýšíte chybu přidáním
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2008 kroužkových artefaktů, ale oko si toho nevšimne, protože si splete
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2009 artefakty s detaily.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2010 </para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2011
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2012 <para>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2013 To však <emphasis role="bold">stále</emphasis> neospravedlňuje
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2014 snížení síly deblokovacího filtru.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2015 Obecně dostanete kvalitnější šum z postprocesingu.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2016 Pokud vaše H.264 videa vypadají příliš rozmazané nebo flekaté, zkuste si
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2017 pohrát s
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2018 <option>-vf noise</option> při přehrávání.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2019 <option>-vf noise=8a:4a</option> by mělo zamaskovat většinu smazaných
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2020 artefaků.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2021 Téměř jistě to bude vypadat lépe než to, co dostanete pomocí
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2022 podvádění deblokovacího filtru.
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2023 </para></listitem>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2024 </itemizedlist>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2025 </sect2>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2026 </sect1>
005485a358d8 Synced with 1.58
jheryan
parents: 15220
diff changeset
2027
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2028 <sect1 id="menc-feat-telecine">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2029 <title>Jak naložit s telecine a prokladem v NTSC DVD</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2030
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2031 <sect2 id="menc-feat-telecine-intro">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2032 <title>Představení</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2033 <formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2034 <title>Co je to telecine?</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2035 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2036 Pokud moc nerozumíte tomu, co je napsáno v tomto dokumentu, doporučujeme
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2037 navštívit tuto stránku:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2038 <ulink url="http://www.divx.com/support/guides/guide.php?gid=10">http://www.divx.com/support/guides/guide.php?gid=10</ulink>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2039 Na této adrese je srozumitelný a rozumně vyčerpávající popis co je to
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2040 telecine.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2041 </para></formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2042
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2043 <formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2044 <title>Poznámka k číslům.</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2045 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2046 Mnoho dokumentů, včetně výše odkazované příručky, udává hodnotu půlsnímků za
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2047 sekundu NTSC videa jako 59.94 a odpovídající snímky za sekundu jako 29.97
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2048 (pro telecinované a prokládané video) a 23.976 (pro neprokládané).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2049 Pro jednoduchost některé dokumenty zaokrouhlují tyto hodnoty na 60, 30 a 24.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2050 </para></formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2051
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2052 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2053 Přesně řečeno jsou všechny tyto čísla přibližná. Černobílé NTSC video mělo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2054 přesně 60 půlsnímků za sekundu, ale později byla zvolena hodnota 60000/1001,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2055 aby bylo možné přidat barevná data a zůstat kompatibilní se starými
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2056 černobílými televizemi. Digitální NTSC (jak je na DVD) má rovněž rychlost
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2057 60000/1001 půlsnímků za sekundu. Z toho vyplývá, že prokládané a telecinované
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2058 video má 30000/1001 snímků za sekundu; neprokládané video má 24000/1001 snímků
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2059 za sekundu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2060 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2061
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2062 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2063 Starší verze dokumentace <application>MEncoder</application>u a mnoho zpráv
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2064 v archivu konference hovoří o 59.94, 29.97 a 23.976.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2065 Všechna dokumentace <application>MEncoder</application>u byla aktualizována
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2066 a používá zlomkových hodnot. Vy byste je měli používat také.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2067 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2068
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2069 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2070 <option>-ofps 23.976</option> je nesprávně.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2071 Místo toho byste měli použít <option>-ofps 24000/1001</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2072 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2073
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2074 <formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2075 <title>Jak je používáno telecine.</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2076 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2077 Veškeré video určené k zobrazení na NTSC televizi musí mít 60000/1001
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2078 půlsnímků za sekundu. Filmy vyráběné pro televizi jsou často natáčeny přímo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2079 ve 60000/1001 půlsnímcích za sekundu, ale většina filmů do kin je natáčena při
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2080 24 nebo 24000/1001 snímcích za sekundu. Když je film přepisován na DVD, je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2081 video upraveno pro televizi v procesu zvaném telecine.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2082 </para></formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2083
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2084 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2085 Na DVD není video ve skutečnosti nikdy uloženo v 60000/1001 půlsnímcích za
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2086 sekundu. Video jež bylo původně 60000/1001, bude mít každý pár půlsnímků
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2087 zkombinován do podoby snímku s rychlostí 30000/1001 snímků za sekundu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2088 Hardwarové DVD přehrávače pak čtou příznak, zabudovaný ve video proudu, který
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2089 udává jestli první půlsnímek tvoří liché nebo sudé řádky.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2090 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2091
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2092 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2093 Obsah ve 24000/1001 snímcích za sekundu obvykle zůstává tak jak byl v době
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2094 přepisu na DVD a DVD přehrávač musí provést telecine za letu. Někdy je však
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2095 video telecinováno <emphasis>před</emphasis> uložením na DVD; dokonce i když
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2096 mělo původně 24000/1001 snímků za sekundu, bude mít 60000/1001 půlsnímků za
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2097 sekundu. Pokud je uložen na DVD, páry půlsnímků jsou zkombinovány do formy
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2098 30000/1001 snímků za sekundu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2099 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2100
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2101 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2102 Když se podíváme na jednotlivé snímky vzniklé z videa o 60000/10001 půlsnímcích
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2103 za sekundu, telecinovaného nebo ne, je zřetelně vidět toto prokládání jakmile
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2104 je zde nějaký pohyb, jelikož jeden půlsnímek (řekněme liché řádky)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2105 reprezentuje časový okamžik o 1/(60000/1001) sekundy pozdější než ten druhý.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2106 Přehrávání prokládaného videa na počítači vypadá škaredě jak proto, že monitor
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2107 má vyšší rozlišení, ale i protože video je zobrazováno snímek po snímku místo
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2108 půlsnímek po půlsnímku.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2109 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2110
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2111 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2112 <title>Poznámky:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2113 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2114 Tento odstavec platí pouze pro NTSC DVD, nikoli PAL.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2115 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2116 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2117 Řádky s příklady spuštění <application>MEncoder</application>u v dokumentu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2118 <emphasis role="bold">nejsou</emphasis> určeny pro opravdové použití.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2119 Obsahují pouze nutné minimum vyžadované pro enkódování příslušné ke kategorii
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2120 videa. Jak dělat dobré DVD ripy nebo doladit
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2121 <systemitem class="library">libavcodec</systemitem> pro maximální kvalitu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2122 není v záběru tohoto dokumentu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2123 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2124 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2125 Poznámky pod čarou příslušné pro tuto příručku jsou linkovány takto:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2126 <link linkend="menc-feat-telecine-footnotes">[1]</link>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2127 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2128 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2129 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2130
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2131 <sect2 id="menc-feat-telecine-ident">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2132 <title>Jak zjistit o jaký typ videa se jedná</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2133
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2134 <sect3 id="menc-feat-telecine-ident-progressive">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2135 <title>Progresivní (neprokládané)</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2136 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2137 Progresivní video je původně natočeno při 24000/1001 snímcích za sekundu a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2138 uloženo na DVD beze změn.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2139 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2140
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2141 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2142 Když přehrajete progresivní DVD v <application>MPlayer</application>u,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2143 <application>MPlayer</application> vypíše následující řádek jakmile začne
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2144 přehrávat:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2145
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2146 <screen> demux_mpg: 24000/1001 fps progressive NTSC content detected, switching framerate.</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2147
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2148 Od tohoto okamžiku by demux_mpg neměl nikdy říct že našel
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2149 &quot;30000/1001 fps NTSC obsah.&quot;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2150 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2151
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2152 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2153 Když sledujete progresivní video, neměli byste nikdy vidět žádný proklad.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2154 Dejte si ale pozor, jelikož je občas trošku telecine namixováno tam, kde byste
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2155 to vůbec nečekali. Setkal jsem se s TV show na DVD, které měly sekundu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2156 telecine při každé změně scény nebo na zcela náhodných místech. Jednou jsem se
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2157 díval na DVD, které bylo do půlky progresivní a od půlky telecinováno. Pokud
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2158 chcete být <emphasis>opravdu</emphasis> důkladní, můžete oskenovat celý film:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2159
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2160 <screen>mplayer dvd://1 -nosound -vo null -benchmark</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2161
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2162 Použití volby <option>-benchmark</option> nechá
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2163 <application>MPlayer</application> přehrát film tak rychle, jak je to jen
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2164 možné; stejně to ale, v závislosti na vašem stroji, chvíli potrvá.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2165 Vždy, když demux_mpg ohlásí změnu snímkové rychlosti, řádek těsně nad hlášením
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2166 ukáže čas ve kterém ke změně došlo.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2167 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2168
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2169 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2170 Občas je progresivní video na DVD označeno jako
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2171 &quot;soft-telecine&quot; protože je zamýšleno, aby telecine provedl DVD
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2172 přehrávač.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2173 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2174 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2175
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2176 <sect3 id="menc-feat-telecine-ident-telecined">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2177 <title>Telecinováno (přepsáno pro NTSC televizi)</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2178 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2179 Telecinované video bylo původně natočeno při 24000/1001, ale bylo telecinováno
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2180 <emphasis>před</emphasis> zápisem na DVD.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2181 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2182
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2183 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2184 <application>MPlayer</application> (nikdy) nehlásí žádnou změnu snímkové
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2185 rychlosti, když přehrává telecinované video.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2186 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2187
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2188 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2189 Při sledování telecinovaného videa uvidíte prokladové artefakty, které jako by
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2190 &quot;blikaly&quot;: opakovaně mizí a objevují se.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2191 Blíže se na to můžete podívat:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2192 <orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2193 <listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2194 <screen>mplayer dvd://1</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2195 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2196 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2197 Převiňte na část s pohybem.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2198 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2199 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2200 Použijte klávesu <keycap>.</keycap> pro krokování po jednom snímku.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2201 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2202 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2203 Sledujte vzor prokládaně vypadajících a progresivně vypadajících snímků.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2204 Pokud je vzor, který sledujete PPPII,PPPII,PPPII,..., pak je video
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2205 telecinováno. Pokud vidíte jiný vzor, pak mohlo být video telecinováno
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2206 použitím nějaké nestandardní metody; <application>MEncoder</application>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2207 neumí bezztrátově převést nestandardní telecine do progresivního. Pokud
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2208 nevidíte žádný vzor, pak je video nejspíš prokládané.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2209 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2210 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2211 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2212
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2213 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2214 Někdy je telecinované video na DVD označeno jako &quot;hard-telecine&quot;.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2215 Jelikož hard-telecine již je ve 60000/1001 půlsnímcích za sekundu, DVD
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2216 přehrávač přehraje video bez jakýchkoli manipulací.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2217 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2218 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2220 <sect3 id="menc-feat-telecine-ident-interlaced">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2221 <title>Prokládané</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2222 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2223 Prokládané video bylo od samého začátku filmováno při 60000/1001 půlsnímcích
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2224 za sekundu a uloženo na DVD ve 30000/1001 snímcích za sekundu. Efekt
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2225 prokládání (často označovaný jako &quot;roztřepení&quot;) je výsledkem
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2226 skládání půlsnímků do snímků. Vzdálenost mezi půlsnímky má být 1/(60000/1001)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2227 sekundy a proto když jsou zobrazeny současně, je rozdíl jasně patrný.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2228 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2229
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2230 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2231 Stejně jako u telecinovaného videa by <application>MPlayer</application> neměl
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2232 hlásit jakékoli změny snímkové rychlosti při přehrávání prokládaného obsahu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2233 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2234
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2235 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2236 Když si prohlédnete video blíže pomocí krokování snímků pomocí klávesy
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2237 <keycap>.</keycap>, uvidíte, že každý jednotlivý snímek je prokládaný.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2238 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2239 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2240
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2241 <sect3 id="menc-feat-telecine-ident-mixedpt">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2242 <title>Smíšené progresivní a telecinované</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2243 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2244 Veškerý obsah &quot;smíšeného progresivního a telecinovaného&quot; videa měl
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2245 původně 24000/1001 snímků za sekundu, ale některé části prošly telecine.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2246 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2247
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2248 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2249 Když <application>MPlayer</application> přehrává tuto kategorii, bude (často
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2250 i opakovaně) přepínat mezi &quot;30000/1001 snímky/s NTSC&quot;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2251 a &quot;24000/1001 snímky/s progresivním NTSC&quot;. Sledujte spodek
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2252 <application>MPlayer</application>ova výstupu, abyste zachytili tyto zprávy.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2253 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2254
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2255 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2256 Měli byste prověřit části se &quot;30000/1001 snímky/s NTSC&quot;, abyste měli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2257 jistotu, že jsou skutečně telecinovány a ne jen prokládané.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2258 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2259 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2260
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2261 <sect3 id="menc-feat-telecine-ident-mixedpi">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2262 <title>Smíšené progresivní a prokládané</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2263 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2264 Ve &quot;smíšeném progresivním a prokládaném&quot; obsahu bylo progresivní a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2265 prokládané video splácáno dohromady.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2266 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2267
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2268 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2269 Tato kategorie vypadá jako &quot;smíšené progresivní a telecine&quot;,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2270 dokud si neprohlédnete části se 30000/1001 snímky/s a neuvidíte, že nemají
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2271 telecine vzor.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2272 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2273 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2274
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2275 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2276
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2277 <sect2 id="menc-feat-telecine-encode">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2278 <title>Jak enkódovat jednotlivé kategorie</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2279 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2280 Jak jsem se zmínil na začátku, příklady příkazových řádků
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2281 <application>MEncoder</application>u níže <emphasis role="bold">nejsou</emphasis>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2282 určeny pro praktické použití; pouze demonstrují, minimum voleb nutných k tomu,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2283 abyste správně enkódovali každou kategorii.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2284 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2285
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2286 <sect3 id="menc-feat-telecine-encode-progressive">
15220
93c3668ccd22 100l build fixes
diego
parents: 15219
diff changeset
2287 <title>Progresivní</title>
15219
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2288 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2289 Progresivní video nevyžaduje žádné speciální filtrování pro enkódování.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2290 Jediná volba, která by určitě neměla chybět je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2291 <option>-ofps 24000/1001</option>. Jinak se <application>MEncoder</application>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2292 pokusí enkódovat při 30000/1001 snímcích/s a bude opakovat snímky.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2293 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2294
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2295 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2296 <screen>mencoder dvd://1 -nosound -ovc lavc -ofps 24000/1001</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2297 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2298
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2299 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2300 Často se stává, že video, které vypadá progresivně, má v sobě zamíchány
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2301 kratičké telecinované části. Pokud si nejste jisti, je nejbezpečnější
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2302 považovat video za
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2303 <link linkend="menc-feat-telecine-encode-mixedpt">smíšené progresivní a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2304 telecinované</link>. Ztráta výkonu je jen malá
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2305 <link linkend="menc-feat-telecine-footnotes">[3]</link>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2306 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2307 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2308
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2309 <sect3 id="menc-feat-telecine-encode-telecined">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2310 <title>Telecinované</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2311 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2312 Telecine lze obrátit a dostat tak původní 24000/1001 obsah, za použití metody
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2313 zvané inverzní telecine.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2314 <application>MPlayer</application> má několik filtrů právě pro tuto činnost;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2315 nejlepší z těchto filtrů, <option>pullup</option>, je popsán v části
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2316 <link linkend="menc-feat-telecine-encode-mixedpt">smíšené progresivní a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2317 telecinované</link>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2318 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2319 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2320
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2321 <sect3 id="menc-feat-telecine-encode-interlaced">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2322 <title>Prokládané</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2323 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2324 V praxi není většinou možné dostat kompletní progresivní video z prokládaného
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2325 obsahu. Jediný způsob jak to udělat bez ztráty poloviny svislého rozlišení je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2326 zdvojením snímkové rychlosti a zkusit &quot;odhadnout&quot; co mám provést
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2327 s odpovídajícími linkami každého z půlsnímků (má to ovšem i nevýhody &ndash;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2328 viz metoda 3).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2329 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2330
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2331 <orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2332 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2333 Enkódujte video v prokládané formě. Obvykle prokládání způsobí těžkou újmu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2334 schopnosti enkodéru dobře komprimovat, ale
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2335 <systemitem class="library">libavcodec</systemitem> má dvě volby určené právě
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2336 pro lepší ukládání prokládaného videa: <option> ildct</option> a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2337 <option>ilme</option>. Rovněž velmi doporučujeme použití volby
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2338 <option>mbd=2</option> <link linkend="menc-feat-telecine-footnotes">[2] </link>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2339 protože bude enkódovat makrobloky jako neprokládané tam, kde není žádný pohyb.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2340 Volba <option>-ofps</option> zde <emphasis role="bold">není</emphasis> nutná.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2341
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2342 <screen>mencoder dvd://1 -nosound -ovc lavc -lavcopts ildct:ilme:mbd=2</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2343 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2344 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2345 Použijte filtr odstraňující proklad před enkódováním. Je jich zde několik,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2346 můžete si vybrat. Každý z nich má svá pro i proti. Prohlédněte si výstup
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2347 <option>mplayer -pphelp</option> abyste zjistili, které jsou k dispozici
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2348 (grep pro &quot;deint&quot;) a vyhledejte
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2349 <ulink url="http://www.mplayerhq.hu/homepage/design6/info.html#mailing_lists">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2350 e-mailové konference MPlayeru</ulink>, kde naleznete mnoho diskusí o různých
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2351 filtrech. Snímková rychlost se ani zde nemění, takže žádné
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2352 <option>-ofps</option>. Odstranění proklady by rovněž mělo být provedeno po
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2353 ořezání <link linkend="menc-feat-telecine-footnotes">[1]</link>, ale před
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2354 škálováním.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2355
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2356 <screen>mencoder dvd://1 -nosound -vf pp=lb -ovc lavc</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2357 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2358 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2359 Naneštěstí je tato volba vadná v <application>MEncoder</application>u;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2360 měla by dobře pracovat v <application>MEncoder G2</application>, ale ten tu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2361 zatím není. Stejně je určením <option> -vf tfields</option> vytvoření
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2362 kompletního snímku z každého půlsnímku, což zvýší snímkovou rychlost na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2363 60000/1001. Výhoda tohoto přístupu je v tom, že nepřijdete o žádná data;
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2364 Protože však každý snímek pochází jen z jediného půlsnímku, musí být chybějící
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2365 linky nějak dopočítány. Neexistuje mnoho dobrých metod, generujících chybějící
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2366 data, takže výsledek bude trochu podobný tomu, když se použije některý filtr
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2367 odstraňující proklad.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2368 Generováním chybějících linek vznikají další problémy tím, že se zdvojnásobí
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2369 množství dat. Takže jsou potřeba vyšší datové toky pro enkódování, aby byla
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2370 zachována kvalita a spotřebuje se více výkonu CPU jak pro enkódování, tak pro
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2371 dekódování. tfields má několik různých voleb pro volbu způsobu generování
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2372 chybějících linek. Pokud použijete tuto možnost, prostudujte si manuál a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2373 zvolte si volbu, která s vaším materiálem vypadá nejlépe.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2374 Poznamenejme, že při použití <option>tfields</option>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2375 <emphasis role="bold">musíte</emphasis> nastavit <option>-fps</option> a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2376 <option>-ofps</option> na dvojnásobek snímkové rychlosti originálu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2377
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2378 <screen>mencoder dvd://1 -nosound -vf tfields=2 -ovc lavc -fps 60000/1001 -ofps 60000/1001</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2379 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2380 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2381 Pokud plánujete výrazné zmenšování, můžete extrahovat a enkódovat jen jeden
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2382 z půlsnímků. Samozřejmě přijdete o polovinu svislého rozlišení, ale pokud
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2383 plánujete zmenšení ideálně na 1/2 originální velikosti, nebude na této ztrátě
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2384 vůbec záležet. Výsledek bude progresivní soubor s 30000/1001 snímky za sekundu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2385 Celý postup spočívá v použití <option>-vf field</option> a následném ořezu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2386 <link linkend="menc-feat-telecine-footnotes">[1]</link> a příslušném
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2387 škálování. Pamatujte, že musíte nastavit scale tak, aby kompenzoval
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2388 zmenšení svislého rozměru na polovinu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2389 <screen>mencoder dvd://1 -nosound -vf field=0 -ovc lavc</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2390 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2391 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2392 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2393
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2394 <sect3 id="menc-feat-telecine-encode-mixedpt">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2395 <title>Smíšené progresivní a telecinované</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2396 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2397 Abychom převedli smíšené progresivní a telecinované video zcela na progresivní
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2398 video, musí být telecinované části inverzně telecinovány. K tomu lze dospět
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2399 třemi postupy popsanými níže.Poznamenejme, že byste měli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2400 <emphasis role="bold">vždy</emphasis> provést inverzní telecine před
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2401 jakýmkoliv škálováním; a v případě, že přesně nevíte co děláte, také před
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2402 ořezáním <link linkend="menc-feat-telecine-footnotes">[1]</link>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2403 Volba <option>-ofps 24000/1001</option> je vyžadována, protože výstupní video
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2404 bude mít 24000/1001 snímků za sekundu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2405 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2406
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2407 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2408 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2409 <option>-vf pullup</option> je navržen tak, aby inverzně telecinoval, ale
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2410 progresivní data nechával jak jsou. Pro správnou funkci
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2411 <emphasis role="bold">musí</emphasis> být <option>pullup</option> následován
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2412 filtrem <option>softskip</option>, jinak <application>MEncoder</application>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2413 zhavaruje. <option>pullup</option> je však nejčistší a nejpřesnější dostupnou
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2414 metodou pro enkódování jak telecinovaného, tak &quot;smíšeného progresivního a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2415 telecinovaného&quot;.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2416
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2417 <screen>mencoder dvd://1 -nosound -vf pullup,softskip -ovc lavc -ofps 24000/1001</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2418 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2419
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2420
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2421 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2422 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2423 Starší metodou je, spíše než inverzně telecinovat telecinované části,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2424 telecinovat progresivní části a poté inverzně telecinovat celé video.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2425 Zmatení? softpulldown je filtr, který projde celé video a převede celý soubor
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2426 na telecinovaný. Pokud budeme následovat softpulldown buď
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2427 <option>detc</option> nebo <option>ivtc</option>, bude konečný výsledek zcela
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2428 progresivní. Nutná je volba <option>-ofps 24000/1001</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2429
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2430 <screen>mencoder dvd://1 -nosound -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001</screen>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2431 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2432 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2433
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2434 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2435 Osobně jsem nepoužil <option>-vf filmdint</option>, ale toto o něm (přibližně)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2436 řekl D Richard Felker III:
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2437
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2438 <blockquote><para>Je to OK, ale IMO to zkouší až příliš často odstraňovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2439 proklad místo provádění inverzního telecine (stejně jako settop DVD
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2440 přehrávače &amp; progresivní televize) což vede ke škaredému třepotání a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2441 dalším artefaktům. Pokud jej chcete používat, měli byste předtím alespoň
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2442 trochu času věnovat ladění voleb a sledováním výstupu, abyste měli jistotu,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2443 že vám to něco nekazí.</para></blockquote>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2444 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2445 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2446 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2447
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2448 <sect3 id="menc-feat-telecine-encode-mixedpi">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2449 <title>Smíšené progresivní a prokládané</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2450 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2451 Máme dvě volby pro práci s touto kategorií, obě jsou však kompromisem. Měli
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2452 byste se rozhodnout podle trvání/umístění každého typu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2453 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2454
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2455 <itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2456 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2457 Považujte to za progresivní. Prokládané části budou vypadat prokládaně a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2458 některé z prokládaných políčen bude muset být zahozeno, což povede
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2459 k nestejnoměrnému poskakování. Můžete proti tomu nasadit postprocesní filtr,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2460 pokud chcete, ale tím mírně degradujete progresivní části.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2461 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2462
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2463 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2464 Této volbě byste se měli rozhodně vyhnout, pokud chcete nakonec zobrazovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2465 video na zobrazovači s prokládaným obrazem (přes TV kartu například).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2466 Pokud máte prokládané snímky ve videu s rychlostí 24000/1001 snímků za
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2467 sekundu, budou telecinovány spolu s progresivními snímky. Polovina
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2468 prokládaných "snímků" bude zobrazena po dobu trvání třech snímků
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2469 (3/(60000/1001) sekund), což povede k poskakování. Efekt
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2470 &quot;cukání zpět&quot; vypadá skutečně zle. Pokud se o to přece pokusíte,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2471 <emphasis role="bold">musíte</emphasis> použít filtr odstraňující proklad,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2472 jako je <option>lb</option> nebo <option>l5</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2473 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2474
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2475 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2476 Špatnou volbou je to i pro progresivní zobrazovač. Ten zahodí páry po sobě
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2477 jdoucích snímků, což povede k přerušování, které může být více viditelné, než
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2478 při druhé metodě, která zobrazuje některé progresivní snímky dvakrát.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2479 Prokládané video se 30000/1001 snímky za sekundu je totiž poněkud trhané,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2480 protože by ve skutečnosti mělo být promítáno při 60000/1001 půlsnímcích za
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2481 sekundu, takže zdvojení některých snímků není tak moc vidět.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2482 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2483
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2484 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2485 V každém případě je nejlepší posoudit obsah a způsob, jakým bude zobrazován.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2486 Pokud je vaše video z 90% progresivní a nikdy jej nebudete pouštět na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2487 televizi, měli byste volit progresivní přístup.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2488 Pokud je progresívní jen z poloviny, pravděpodobně jej bude lepší enkódovat
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2489 jako ba bylo celé prokládané.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2490 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2491 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2492
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2493 <listitem><para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2494 Pokládat jej za prokládané. Některé snímky v progresivních částech budou muset
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2495 být duplikovány, což povede k nepravidelnému poskakování. Opět platí, že
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2496 filtry pro odstranění prokladu mohou poněkud degradovat progresivní části.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2497 </para></listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2498
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2499 </itemizedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2500 </sect3>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2501
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2502 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2503
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2504 <sect2 id="menc-feat-telecine-footnotes">
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2505 <title>Poznámky pod čarou</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2506 <orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2507 <listitem><formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2508 <title>K ořezu:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2509 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2510 Video data na DVD jsou ukládána ve formátu zvaném YUV 4:2:0. V YUV videu jsou,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2511 jasová (&quot;černobílá&quot;; angl. luma) a barvonosná (angl. chroma) složka
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2512 ukládány odděleně. Protože je lidské oko méně citlivé na změnu barvy, než na
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2513 jas, připadá v YUV 4:2:0 obrázku pouze jeden barvonosný pixel na každé čtyři
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2514 jasové pixely. V progresivním obrázku má každý čtverec 2x2 jasovými pixely
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2515 právě jeden barvonosný pixel. Proto musíte ořezávat progresivní YUV 4:2:0
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2516 na sudé rozměry a používat sudé odsazení (offsety). Například
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2517 <option>crop=716:380:2:26</option> je OK, ale
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2518 <option>crop=716:380:3:26 </option> není.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2519 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2520 </formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2521
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2522 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2523 Když máte co do činění s prokládaným YUV 4:2:0, je situace mnohem
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2524 komplikovanější. Místo každých čtyřech pixelů v <emphasis>rámu</emphasis>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2525 sdílejících barvonosný pixel, každé čtyři jasové pixely v každém
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2526 <emphasis>půlsnímku</emphasis> sdílejí barvonosný pixel. Když jsou půlsnímky
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2527 proloženy do snímku, každá linka má výšku jeden pixel. A nyní místo aby dané
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2528 čtyři pixely tvořily čtverec, jsou první dva vedle sebe a druhé dva jsou vedle
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2529 sebe o dvě linky níž. Dva pixely těsně pod nimi patří do jiného půlsnímku a
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2530 proto sdílí jiný barvonosný pixel se dvěma jasovými pixely o dva řádky níž.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2531 Všechno tohle nás nutí mít svislé rozměry ořezání a odsazení bezezbytku
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2532 dělitelné čtyřmi. Vodorovné stačí mohou zůstat jen sudé.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2533 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2534
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2535 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2536 Pro telecinované video doporučuji, abyste ořezání prováděli až po inverzi
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2537 telecine. Jakmile je video progresivní, stačí řezat jen na sudé rozměry.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2538 Pokud si však přece jen chcete dopřát mírné zrychlení, které může poskytnout
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2539 časný ořez, musíte svisle dodržet násobky čtyřech, jinak nebude mít filtr
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2540 pro inverzi telecine správná data.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2541 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2542
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2543 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2544 Prokládané (nikoli telecinované) video musíte vždy ořezávat svisle násobky
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2545 čtyř, pokud před ořezáním nepoužijete <option>-vf field</option>.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2546 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2547 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2548
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2549 <listitem><formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2550 <title>K volbám pro enkódování a kvalitě:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2551 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2552 Jen proto, že doporučuji <option>mbd=2</option> zde neznamená, že by tato
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2553 volba nemohla být použita jinde. V kombinaci s <option>trell</option>, je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2554 <option>mbd=2</option> jednou ze dvou voleb
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2555 <systemitem class="library">libavcodec</systemitem>u, které nejvíce zvyšují
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2556 kvalitu a vy byste měli vždy použít alespoň tyto dvě, pokud není na škodu
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2557 zpomalení rychlosti enkódování (např. při enkódování v reálném čase).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2558 Mnoho dalších voleb <systemitem class="library">libavcodec</systemitem>u
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2559 zvyšuje kvalitu enkódování (a snižuje jeho rychlost), ale to je mimo zaměření
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2560 tohoto textu.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2561 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2562 </formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2563 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2564
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2565 <listitem><formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2566 <title>K výkonu filtru pullup:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2567 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2568 Použití <option>pullup</option> je bezpečné (spolu se <option>softskip
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2569 </option>) ne progresivní video a je to obvykle dobrá volba, pokud nebyl zdroj
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2570 prověřen, že je celý progresivní. Ve většině případů je ztráta výkonu malá.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2571 V ojedinělých případech enkódování způsobí <option>pullup</option>, že je
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2572 <application>MEncoder</application> o 50% pomalejší. Přidání zpracování zvuku
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2573 a pokročilých <option>lavcopts</option> zastíní tento rozdíl tak, že rozdíl
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2574 v rychlosti působený použitím <option>pullup</option> se sníží na 2%.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2575 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2576 </formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2577 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2578
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2579 <!-- Some further explanation, because of homonym problem in interlace and
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2580 interleave translation. If anybody wants it in english, just ask. -->
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2581
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2582 <listitem><formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2583 <title>K překladu:</title>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2584 <para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2585 Překlad slov interlace a interleave je velmi obtížný, protože vede k jedinému
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2586 českému ekvivalentu &ndash; prokládání. V prvním případě (interlace) se jedná
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2587 o prokládání obrázku, kdy se z lichých a sudých řádků vytvoří dva půlsnímky,
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2588 což je běžné v TV.
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2589 Prokládání (interleave) je naproti tomu sloučení různého obsahu (zvuk, video)
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2590 do jediného souboru &ndash; kontejneru (např. AVI) tak, že se každá složka
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2591 rozdělí na malé části (tzv. chunky) a ty se pak jeden za druhým ukládají podle
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2592 určitého vzoru. O to se stará muxer (multiplexer). Abychom dostali zpět
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2593 jednotlivé složky, musíme poskládat proházené kousky zase zpět, o což se stará
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2594 demuxer (demultiplexor).
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2595
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2596 </para>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2597 </formalpara>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2598 </listitem>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2599
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2600 </orderedlist>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2601
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2602 </sect2>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2603
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2604 </sect1>
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2605
c931a567a395 Translation synced with 1.52
jheryan
parents:
diff changeset
2606 </chapter>