annotate DOCS/xml/it/encoding-guide.xml @ 25449:136ee4a91f00

30% synced with r22753
author ptt
date Thu, 20 Dec 2007 18:20:09 +0000
parents 2838dc7a68f3
children 53a8a63ee7e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
2 <!-- 30% synced with r22753 -->
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3 <chapter id="encoding-guide">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4 <title>La codifica con <application>MEncoder</application></title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
6 <sect1 id="menc-feat-dvd-mpeg4">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
7 <title>Produrre un rip di un film da DVD in un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
8 MPEG-4 ("DivX") di alta qualità</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
9
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
10 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
11 Una domanda frequente è "Come posso generare il rip con la migliore qualità
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
12 per una dimensione data?". Un'altra domanda è "Come posso fare il rip da DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
13 migliore in assoluto? Non mi interessa la dimensione del file, voglio solo la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
14 più alta qualità."
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
15 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
16
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
17 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
18 L'ultima domanda è perlomeno forse posta malamente. Dopo tutto, se non ti
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
19 interessa la dimensione del file, perché non ti copi semplicemente l'intero
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
20 flusso video MPEG-2 dal DVD? Certo, avrai un AVI di 5GB, prendere o lasciare,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
21 ma se vuoi la miglior qualità e non ti importa della dimensione, è
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
22 sicuramente la scelta migliore.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
23 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
24
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
25 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
26 Invero, la ragione per cui vuoi codificare un DVD in MPEG-4 è proprio perché
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
27 ti interessa <emphasis role="bold">davvero</emphasis> la dimensione del file.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
28 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
29
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
30 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
31 E' difficile offrire una ricetta da libro su come generare un rip da DVD in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
32 qualità molto alta. Bisogna considerare vari fattori, e dovresti comprendere
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
33 questi dettagli, altrimenti alla fine probabilmente sarai insoddisfatto del
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
34 risultato. Più sotto evidenziamo alcuni di questi argomenti e poi passiamo ad
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
35 esaminare un esempio. Partiamo dal principio che per codificare il video tu
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
36 stia usando <systemitem class="library">libavcodec</systemitem> anche se la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
37 teoria si applica allo stesso modo agli altri codec.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
38 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
39
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
40 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
41 Se questo ti sembra troppo, dovresti probabilmente usare una delle belle
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
42 interfacce elencate nella
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
43 <ulink url="http://www.mplayerhq.hu/design7/projects.html#mencoder_frontends">sezione su MEncoder</ulink>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
44 nella pagina dei progetti collegati (related projects).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
45 In tal modo riuscirai ad ottenere rip di alta qualità senza pensarci troppo,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
46 dato che la maggior parte di questi strumenti sono progettati per prendere
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
47 decisioni sagge al tuo posto.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
48 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
49
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
50 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
51
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
52 <sect2 id="menc-feat-dvd-mpeg4-preparing-encode">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
53 <title>Prepararsi alla codifica: identificare il materiale sorgente e la frequenza fotogrammi (framerate)</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
54
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
55 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
56 Prima ancora di pensare a codificare un film, devi fare alcuni passi
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
57 preliminari.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
58 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
59
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
60 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
61 Il primo e più importante passo prima della codifica dovrebbe essere
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
62 determinare il tipo di contenuto che stai trattando.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
63 Se il tuo materiale di partenza arriva da un DVD o da TV in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
64 broadcast/via cavo/satellite, sarà salvato in uno dei due formati: NTSC per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
65 il Nord America e il Giappone, PAL per l'Europa, etc...
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
66 E' importante tuttavia comprendere che questo è solo il formato per la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
67 trasmissione in televisione, e spesso <emphasis role="bold">non</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
68 corrisponde al formato originario del film.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
69 L'esperienza insegna che il materiale NTSC è molto più difficile da
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
70 codificare, perché ci sono più elementi da identificare nel sorgente.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
71 Per generare una codifica adeguata, devi sapere il formato originario.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
72 Il non tenerne conto porterà a molti __flaws__ nella tua codifica, inclusi
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
73 artefatti orrendi __combing__ (interlacing) e fotogrammi duplicati o addirittura
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
74 perduti.
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
75 Oltre ad essere brutti, gli artefatti influenzano negativamente l'efficienza
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
76 della codifica: otterrai una peggior qualità a parità di bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
77 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
78
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
79
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
80 <sect3 id="menc-feat-dvd-mpeg4-preparing-encode-fps">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
81 <title>Identificare la frequenza fotogrammi (framerate) del sorgente</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
82
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
83 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
84 C'è qui un elenco di tipi comuni di materiale sorgente, dove facilmente si
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
85 trovano e le loro proprietà:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
86 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
87
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
88 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
89 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
90 <emphasis role="bold">Film standard</emphasis>: prodotti per la visione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
91 su schermi da cinema a 24fps.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
92 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
93 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
94 <emphasis role="bold">Video PAL</emphasis>: registrati con una videocamera
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
95 PAL a 50 campi al secondo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
96 Un campo è composto dalle sole linee pari o dispari di un fotogramma.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
97 La televisione è stata progettata per aggiornarle alternativamente come un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
98 metodo economico di compressione analogica.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
99 L'occhio umano teoricamente compensa la cosa, ma una volta che capisci come
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
100 funziona l'interlacciatura imparerai a vederla anche in TV e non ti piacerà
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
101 più la TV.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
102 Due campi <emphasis role="bold">non</emphasis> fanno un fotogramma intero,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
103 poiché sono registrati a 1/50 di secondo di distanza nel tempo e quindi non
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
104 si allineano a meno che non ci sia movimento alcuno.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
105 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
106 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
107 <emphasis role="bold">Video NTSC</emphasis>: registrati con una videocamera
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
108 NTSC a 60000/1001 campi al secondi, o 60 campi al secondo nell'era precedente
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
109 al colore.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
110 Per il resto sono simili ai PAL.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
111 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
112 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
113 <emphasis role="bold">Animazione</emphasis>: solitamente disegnati a 24fps,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
114 ma se ne trovano anche in tipologie con frequenza di fotogrammi mista.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
115 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
116 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
117 <emphasis role="bold">Computer Graphics (CG)</emphasis>: possono essere con
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
118 qualsiasi frequenza di fotogrammi, ma alcuni sono più comuni di altri;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
119 sono tipici 24 e 30 fotogrammi al secondo per NTSC e 25fps per PAL.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
120 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
121 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
122 <emphasis role="bold">Vecchi Film</emphasis>: varie e più basse frequenze di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
123 fotogrammi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
124 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
125 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
126 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
127
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
128
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
129 <sect3 id="menc-feat-dvd-mpeg4-preparing-encode-material">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
130 <title>Identificare il materiale sorgente</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
131
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
132 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
133 I film composti da fotogrammi sono indicati come "progressivi", mentre quelli
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
134 composti da campi indipendenti sono chiamati "interlacciati" o video - anche se
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
135 quest'ultimo termine è ambiguo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
136 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
137
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
138 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
139 Per complicare ulteriormente le cose, alcuni film possono essere un misto di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
140 molti dei suddetti.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
141 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
142
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
143 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
144 La più importante distinzione da farsi tra tutti questi formati è che alcuni
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
145 sono basati su fotogrammi mentre gli altri sono basati su campi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
146 <emphasis role="bold">Ogniqualvolta</emphasis> un film viene preparato per la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
147 visualizzazione in televisione (DVD inclusi), viene convertito in un formato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
148 basato su campi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
149 I vari metodi con cui si può fare sono conosciuti nel loro insieme come
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
150 "telecine", di cui il tristemente famoso "3:2 pulldown" NTSC è una tipologia.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
151 A meno che il materiale originale sia anch'esso basato su campi (e con la stessa
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
152 frequenza di campi) otterrai un filmato in un formato diverso da quello che è
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
153 in origine.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
154 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
155
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
156 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
157 <title>Ci sono vari tipi usuali di "pulldown":</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
158 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
159 <emphasis role="bold">Pulldown PAL 2:2</emphasis>: il più bello di tutti.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
160 Ciascun fotogramma viene mostrato per la durata di due campi, estraendo le
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
161 linee pari e dispari e mostrandole alternativamente.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
162 Se il materiale di origine è a 24fps questo processo velocizza il filmato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
163 del 4%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
164 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
165 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
166 <emphasis role="bold">Pulldown PAL 2:2:2:2:2:2:2:2:2:2:2:3</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
167 Ogni dodicesimo fotogramma viene mostrato per la durata di tre campi, invece
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
168 che solamente per due.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
169 Questo evita il problema dell'aumento del 4% di velocità, ma rende il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
170 processo molto più difficile da __reversare__.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
171 Solitamente viene usato nelle produzioni musicali, dove modificare del 4% la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
172 velocità rovinerebbe pesantemente la colonna sonora.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
173 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
174 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
175 <emphasis role="bold">Telecine NTSC 3:2</emphasis>: i fotogrammi vengono
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
176 mostrati alternativamente per la durata di 3 o 2 campi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
177 Questo porta ad una frequenza di campi di 2.5 volte la frequenza orginaria.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
178 Il risultato viene anche leggermente rallentato da 60 campi al secondo fino a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
179 60000/1001 campi al secondo, per mantenere la frequenza dei campi di NTSC.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
180 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
181 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
182 <emphasis role="bold">Pulldown NTSC 2:2</emphasis>: utilizzato per mostrare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
183 materiale a 30fps su NTSC.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
184 Carino, proprio come il pulldown PAL 2:2.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
185 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
186 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
187
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
188 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
189 Ci sono anche alcuni metodi per convertire tra video NTSC e PAL, ma gli
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
190 arogmenti relativi non sono obiettivo di questa guida.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
191 Se ti trovi di fronte a un film di questo genere e lo vuoi codificare, la tua
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
192 scelta migliore è cercarne una copia nel formato originale.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
193 La conversione tra questi due formati è altamente distruttiva e non può
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
194 essere __reversed__ in maniera pulita, perciò la tua codifica __soffrirà__
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
195 molto se eseguita da una sorgente convertita.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
196 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
197
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
198 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
199 Quando il video viene salvato du un DVD, coppie consecutive di campi sono
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
200 raggruppati in un fotogramma, anche se non sono pensati per esser mostrati
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
201 nello stesso momento.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
202 Lo standard MPEG-2 usato sui DVD e per la TV digitale fornisce un modo sia per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
203 codificare i fotogrammi progressivi originali, che uno per memorizzare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
204 nell'intestazione del fotogramma il numero dei campi per cui il fotogramma
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
205 stesso debba essere mostrato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
206 Se viene usato questo metodo il filmato verrà spesso indicato come
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
207 "soft telecine", visto che il procedimento indica semplicemente al lettore DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
208 di applicare il pulldown al film, invece che modificare il film stesso.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
209 Questa situazione è decisamente preferibile, dato che può essere facilmente
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
210 __reversed__ (__actually ignored__) dal condificatore, e dato che mantiene la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
211 massima qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
212 Tuttavia, molti studi di produzione DVD e di trasmissione non usano tecniche di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
213 codifica appropriate, ma al contrario producono filmati con "hard telecine", in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
214 cui i campi sono sotanzialmente duplicati nell'MPEG-2 codificato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
215 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
216
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
217 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
218 Le modalità per gestire questi casi verranno descritte
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
219 <link linkend="menc-feat-telecine">più avanti in questa guida</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
220 Per adesso ti lasciamo alcune indicazioni su come identificare il tipo di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
221 materiale che stai trattando:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
222 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
223
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
224 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
225 <title>Regioni NTSC:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
226 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
227 Se <application>MPlayer</application> dice che la frequenza fotogrammi passa
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
228 a 24000/1001 durante la visione del film e non ritorna come prima, è quasi
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
229 sicuramente un qualche contenuto progressivo che è stato modificato in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
230 "soft telecine".
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
231 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
232 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
233 Se <application>MPlayer</application> dice che la frequenza fotogrammi va
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
234 avanti e indietro tra 24000/1001 e 30000/1001 e ogni tanto vedi delle "righe",
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
235 allora ci sono varie possibilità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
236 Le parti a 24000/1001 fps sono quasi certamente contenuto progressivo, in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
237 "soft telecine", ma le parti a 30000/1001 fps possono essere sia contenuto in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
238 "hard telecine" a 24000/1001 fps che video NTSC a 60000/1001 campi al secondo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
239 Usa le stesse linee guida dei due casi seguenti per determinare quale.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
240 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
241 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
242 Se <application>MPlayer</application> non mostra mai una modifica alla
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
243 frequenza dei fotogrammi e ogni singolo fotogramma con del movimento appare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
244 "rigato", il tuo filmato è video NTSC a 60000/1001 campi al secondo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
245 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
246 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
247 Se <application>MPlayer</application> non mostra mai una modifica alla
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
248 frequenza dei fotogrammi e due fotogrammi ogni cinque sono "rigati", il tuo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
249 film è contenuto a 24000/1001fps in "hard telecine".
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
250 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
251 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
252
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
253 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
254 <title>Regioni PAL:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
255 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
256 Se non vedi mai alcuna "riga", il tuo film è pulldown 2:2.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
257 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
258 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
259 Se vedi delle "righe" che vanno e vengono ogni mezzo secondo,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
260 allora il tuo film è pulldown 2:2:2:2:2:2:2:2:2:2:2:3.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
261 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
262 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
263 Se vedi sempre "righe" durante il movimento, allora il tuo film è video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
264 PAL a 50 campi al secondo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
265 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
266 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
267
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
268 <note><title>Consiglio:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
269 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
270 <application>MPlayer</application> può rallentare la riproduzione del film
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
271 con l'opzione -speed o riprodurlo fotogramma per fotogramma.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
272 Prova ad usare <option>-speed</option> 0.2 per guardare molto lentamente il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
273 film o premi ripetutamente il tasto "<keycap>.</keycap>" per riprodurre un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
274 fotogramma per volta ed identificare la sequenza, se non riesci a vederla a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
275 velocità normale.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
276 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
277 </note>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
278 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
279 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
280
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
281 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
282
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
283 <sect2 id="menc-feat-dvd-mpeg4-2pass">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
284 <title>Quantizzatore costante vs. multipassaggio</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
285
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
286 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
287 E' possibile codificare il filmato in un'ampia gamma di qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
288 Con i codificatori video moderni e un pelo di compressione pre-codec
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
289 (ridimensionando e ripulendo), è possibile raggiungere una qualità molto
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
290 buona in 700 MB, per un film di 90-110 minuti in widescreen.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
291 Inoltre tutti i film tranne i più lunghi possono essere codificati con una
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
292 qualità pressoché perfetta in 1400 MB.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
293 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
294
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
295 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
296 Ci sono tre approcci per codificare il video: bitrate costante (CBR),
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
297 quantizzatore costante, e multipassaggio (ABR, o bitrate medio).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
298 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
299
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
300 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
301 La complessità dei fotogrammi di un filmato, e di conseguenza il numero di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
302 bit necessari per comprimerli, può variare molto da una scena ad un'altra.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
303 I codificatori video moderni possono adattarsi via via a queste necessità
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
304 e cambiare il bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
305 In modalità semplici come CBR, tuttavia, i codificatori non sanno il bitrate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
306 necessario alle scene venture e perciò non possono stare sopra al bitrate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
307 richiesto per lunghi periodi di tempo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
308 Modalità più avanzate, come la codifica in multipassaggio, possono tener
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
309 conto delle statistiche del passo precedente; questo corregge il problema
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
310 suddetto.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
311 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
312
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
313 <note><title>Nota:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
314 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
315 La maggior parte dei codec che gestisce la codifica in ABR può usare solo la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
316 codifica a due passaggi mentre altri come
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
317 <systemitem class="library">x264</systemitem>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
318 <systemitem class="library">Xvid</systemitem> e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
319 <systemitem class="library">libavcodec</systemitem> gestiscono il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
320 multipassaggio, che migliora leggermente la qualità ad ogni passo, anche se
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
321 tale moglioramento non è più misurabile né visibile veramente oltre il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
322 quarto passo o giù di lì.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
323 Perciò in questa sezione due passaggi e multipassaggio avranno lo stesso
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
324 significato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
325 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
326 </note>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
327
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
328 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
329 In ambedue i modi, il codec video (come
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
330 <systemitem class="library">libavcodec</systemitem>) spezza il fotogramma video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
331 in macroblocchi da 16x16 pixel e poi applica un quantizzatore a ciascun
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
332 macroblocco. Più basso è il quantizzatore, migliore sarà la qualità e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
333 più alto il bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
334 Il metodo usato dal codificatore del filmato per determinare quale quantizzatore
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
335 utilizzare per un dato macroblocco varia ed è altamente configurabile.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
336 (Questa è una semplificazione estrema del vero processo, ma il concetto di base
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
337 è comodo per capire.)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
338 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
339
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
340 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
341 Quando specifichi un bitrate constante, il codec video codificherà il video,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
342 scartando dettagli tanto quanto è necessario e il meno possibile, in modo da
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
343 rimanere al di sotto del bitrate voluto. Se non ti interessa davvero la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
344 dimensione del file, potresti anche usare CBR e specificare un bitrate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
345 infinito. (In pratica, questo significa un valore abbastanza alto da non porre
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
346 limiti, come 10000Kbit.) Con nessun limite sul bitrate, il risultato è che il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
347 codec userà il quantizzatore più basso possibile per ciascun macroblocco
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
348 (come specificato da <option>vqmin</option> per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
349 <systemitem class="library">libavcodec</systemitem>, che è 2 di default).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
350 Appena specifichi un bitrate abbastanza basso tale che il codec venga forzato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
351 ad utilizzare un quantizzatore più alto, allora stai sicuramente diminuendo la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
352 qualità del tuo video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
353 Per evitarlo, dovresti probabilmente ridurre la dimensione del tuo video,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
354 seguendo il metodo descritto più avanti in questa guida.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
355 In generale dovresti evitare del tutto CBR se ti interessa la qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
356 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
357
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
358 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
359 Con il quantizzatore costante, il codec utilizza lo stesso quantizzatore per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
360 ogni macroblocco, come specificato dall'opzione <option>vqscale</option> (per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
361 <systemitem class="library">libavcodec</systemitem>).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
362 Se vuoi la più alta qualità possibile di rip, sempre ignorantdo il bitrate,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
363 puoi usare <option>vqscale=2</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
364 Ciò porterà gli stessi bitrate e PSNR (peak signal-to-noise ratio) come CBR
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
365 con <option>vbitrate</option>=infinito e <option>vqmin</option> di default a 2.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
366 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
367
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
368 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
369 Il problema con la quantizzazione costante è che usa il quantizzatore indicato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
370 sia che il macroblocco ne abbia bisogno o no. Perciò è possibile che venga
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
371 usato un quantizzatore più alto su un macroblocco senza sacrificare la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
372 qualità visiva. Perché sprecare i bit di un quantizzatore basso che non
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
373 serve? La tua CPU ha tanti cicli fin quando c'è tempo, ma c'è solo un certo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
374 numero di bit sul tuo disco rigido.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
375 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
376
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
377 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
378 Con una codifica a due passi, il primo codificherà il filmato come se fosse
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
379 CBR, ma manterrà una registrazione delle caratteristiche di ogni fotogramma.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
380 Questi dati sono poi utilizzati durante il secondo passo in modo da effettuare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
381 scelte intelligenti su quale quantizzatore usare. Durante le scene con azione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
382 veloce o molti dettagliate, verrano usati più probabilmente quantizzatori più
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
383 alti, e durante scene lente o con pochi dettagli, verranno usati quantizzatori
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
384 più bassi. Solitamente è molto più importante la quantità di movimento
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
385 che la quantità di dettagli.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
386 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
387
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
388 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
389 Se usi <option>vqscale=2</option>, allora stai sprecando dei bit. Se usi
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
390 <option>vqscale=3</option>, allora non stai ottenendo la miglior qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
391 Supponi di rippare un DVD a <option>vqscale=3</option> e che il risultato sia
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
392 1800Kbit. Se fai una codifica a due passi con <option>vbitrate=1800</option> il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
393 video risultante avrà una <emphasis role="bold">qualità superiore</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
394 a <emphasis role="bold">parità di bitrate</emphasis>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
395 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
396
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
397 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
398 Dato che ora sei convinto che i due passaggi siano la strada da percorrere, la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
399 vera domanda adesso è quale bitrate usare? La risposta à che non c'è una
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
400 risposta definitiva. Idealmente vuoi scegliere un bitrate che porti al miglior
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
401 equilibrio tra qualità e dimensione del file. Tutto ciò varia in dipendenza
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
402 del video di origine.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
403 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
404
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
405 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
406 Se la dimensione non è importante, un buon punto di partenza per un rip di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
407 qualità molto elevata è intorno a 2000Kbit più o meno 200Kbit.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
408 Per video con scene di azione veloce o con molti dettagli, oppure se
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
409 semplicemente hai l'occhio critico, potresti scegliere 2400 o 2600.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
410 Per alcuni DVD potresti non notare alcuna differenza a 1400Kbit. Sperimentare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
411 con alcune scene a vari bitrate è una buona idea per farsi un'opinione.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
412 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
413
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
414 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
415 Se punti a una data dimensione, dovrai calcolare il bitrate in un qualche modo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
416 Prima di farlo, però, devi sapere quanto spazio devi riservare per la traccia
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
417 (le tracce) audio, per cui devi dapprima fare il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
418 <link linkend="menc-feat-dvd-mpeg4-audio">rip di queste</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
419 Puoi calcolare il bitrate con l'equazione che segue:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
420 <systemitem>bitrate = (dimensione_voluta_in_Mbytes - dimensione_audio_in_Mbytes)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
421 * 1024 * 1024 / lunghezza_in_secondi * 8 / 1000</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
422 Per esempio, per far stare un film di due ore su un CD da 702MB, con 60MB di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
423 traccia audio, il bitrate video diventerà:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
424 <systemitem>(702 - 60) * 1024 * 1024 / (120*60) * 8 / 1000
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
425 = 740kbps</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
426 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
427 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
428
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
429 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
430
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
431 <sect2 id="menc-feat-dvd-mpeg4-constraints">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
432 <title>Vincoli per una codifica efficiente</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
433
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
434 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
435 A causa della natura del tipo di compressione MPEG, ci sono alcuni vincoli da
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
436 seguire per avere la massima qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
437 L'MPEG divide il video in quadrati da 16x16 chiamati macroblocchi, ciascuno di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
438 essi composto da blocchi 4x4 con informazioni sulla luminanza (intensità) e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
439 due blocchi da 8x8 a metà risoluzione per la crominanza (colore) (uno per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
440 l'asse rosso-ciano e l'altro per l'asse blu-giallo).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
441 Anche se la larghezza e l'altezza del tuo filmato non sono multipli di 16 il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
442 codificatore userà tanti macroblocchi 16x16 in modo da coprire tutta la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
443 superficie dell'immagine, e lo spazio in esubero sarà sprecato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
444 Indi, per migliorare la qualità a una dimensione prefissata è una brutta
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
445 idea utilizzare dimensioni che non siano multiple di 16.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
446 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
447
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
448 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
449 La maggior parte dei DVD ha anche alcune con bordi neri sui lati. Lasciarli lì
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
450 avrà un'influenza <emphasis role="bold">molto</emphasis> negativa sulla
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
451 qualità in svariati modi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
452 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
453
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
454 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
455 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
456 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
457 Il tipo di compressione MPEG è pesantemente dipendente dalle trasformazioni
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
458 di dominio frequenti, in particolare la "trasformazione discreta del coseno"
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
459 (Discrete Cosine Transform (DCT)), che xxièe' simile alla trasformazione di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
460 Fourier. Quest'approccio di codifica è efficiente nella rappresentazione di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
461 motivi e transizioni delicate, ma trova difficoltà con spigoli più
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
462 definiti. Per codificarli deve usare molti più bit oppure apparirà un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
463 artefatto conosciuto come 'ringing'.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
464 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
465
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
466 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
467 La trasformazione di frequenza (DCT) prende luogo separatemente in ogni
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
468 macroblocco (praticamente in ogni blocco) perciò questo problema si applica
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
469 solo quando lo spigolo definito è dentro a un blocco. Se il bordo nero inizia
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
470 esattamente sul lato di un multiplo di 16, questo non e' un problema.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
471 Tuttavia i bordi neri sui DVD difficilmente sono ben allineati, perciò
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
472 nella realtà dovrai sempre tagliarli via per evitare questi problemi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
473 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
474 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
475 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
476
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
477 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
478 Oltre alle trasformazioni del dominio di frequenza, il tipo di compressione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
479 MPEG usa dei vettori di movimento per rappresetare le variazioni da un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
480 fotogramma al successivo. Naturalmente i vettori di movimento funzionano molto
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
481 meno bene per i nuovi contenuti che arrivano dai bordi dell'immagine, dato che
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
482 non erano presenti nel fotogramma precedente. Fintanto che l'immagine arriva
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
483 fino al bordo dell'area codificata, i vettori di movimento non incontrano
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
484 alcun problema con li contenuto che esce dall'immagine. Tuttavia ci possono
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
485 esser problemi quando ci sono dei bordi neri:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
486 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
487
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
488 <orderedlist continuation="continues">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
489 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
490 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
491 Per ogni macroblocco il tipo di compressione MPEG memorizza un vettore, che
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
492 identifica quale parte del fotogramma precedente debba essere copiata nel
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
493 macroblocco stesso, come base per predire il fotogramma successivo. Serve
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
494 codificare solo le differenze restanti. Se un macroblocco oltrepassa il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
495 bordo dell'immagine e contiene parte del bordo nero, allora i vettori di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
496 movimento provenienti da altre zone dell'immagine ricopriranno il bordo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
497 nero. Questo significa che si devono utilizzare molti bit o per riannerire il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
498 bordo che è stato ricoperto, oppure (più verosimilmente) un vettore di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
499 movimento non sarà proprio usato e tutti i cambiamenti in questo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
500 macroblocco dovranno venir esplicitamente codificate. In un modo o nell'altro
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
501 si ricuce di gran lunga l'efficienza della codifica.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
502 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
503
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
504 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
505 Inoltre questo problema si applica solo se i bordi neri non sono allinati
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
506 su limiti di multipli di 16.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
507 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
508 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
509
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
510 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
511 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
512 Immagina infine di avere un macroblocco all'interno dell'immagine, ed un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
513 oggetto che passa da questo blocco verso il bordo dell'immagine. La
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
514 codifica MPEG non può dire "copia la parte che è dentro all'immagine, ma
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
515 non il bordo nero". Perciò anche il bordo nero vi verrà copiato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
516 all'interno, e molti bit saranno sprecati codificando l'immagine che si
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
517 suppone stia lì.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
518 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
519
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
520 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
521 Se l'immagine arriva al limite della superficie codificata, l'MPEG ha una
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
522 particolare ottimizzazione che consta nel copiare ripetutamente i pixel sul
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
523 bordo dell'immagine quando un vettore di movimento arriva dall'esterno della
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
524 superficie codificata. Questa funzionalità diventa inutile quando il film
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
525 ha dei bordi neri. Diversamente dai problemi 1 e 2, allineare i bordi a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
526 multipli di 16 in questo caso non aiuta.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
527 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
528 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
529
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
530 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
531 A dispetto del fatto che i bordi siano completamente neri e non cambino mai,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
532 c'è perlomeno un piccolo spreco nell'avere più macroblocchi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
533 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
534 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
535
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
536 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
537 Per tutte queste ragioni si consiglia di tagliar via completamente i bordi neri.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
538 Inoltre, se c'è una zona di rumore/distorsione sui bordi dell'immagine,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
539 tagliarla migliorerà ancora l'efficienza di codifica. I puristi videofili che
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
540 vogliono mantenere il più possibile l'originale potrebbero obiettare su questo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
541 taglio, ma a meno di non codificare a una quantizzazione costante, la qualità
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
542 guadagnata tagliando sorpasserà di gran lunga la quantità di informazioni
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
543 perse sui bordi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
544 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
545 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
546
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
547 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
548
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
549 <sect2 id="menc-feat-dvd-mpeg4-crop">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
550 <title>Tagliare e Ridimensionare</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
551
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
552 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
553 Ricorda dalla sezione precedente che la dimensione finale dell'immagine che
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
554 codifichi dovrebbe essere un multiplo di 16 (sia in larghezza che altezza).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
555 Si può ottenere ciò tagliando, ridimensionando o combinando le due cose.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
556 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
557
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
558 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
559 Quando tagli, ci sono alcune linee guida che si devono seguire per evitare di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
560 rovinare il tuo filmato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
561 Il formato YUV abituale, 4:2:0, memorizza le informazioni sulla crominanza
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
562 (colore) sottocampionate, per es. la crominanza viene campionata in ogni
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
563 direzione solo la metà di quanto venga la luminanza (intensità).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
564 Osserva questo diagramma, dove L indica i punti di campionamente della
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
565 luminanza e C quelli della crominanza.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
566 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
567
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
568 <informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
569 <?dbhtml table-width="40%" ?>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
570 <?dbfo table-width="40%" ?>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
571 <tgroup cols="8" align="center">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
572 <colspec colnum="1" colname="col1"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
573 <colspec colnum="2" colname="col2"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
574 <colspec colnum="3" colname="col3"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
575 <colspec colnum="4" colname="col4"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
576 <colspec colnum="5" colname="col5"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
577 <colspec colnum="6" colname="col6"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
578 <colspec colnum="7" colname="col7"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
579 <colspec colnum="8" colname="col8"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
580 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
581 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
582 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
583 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
584 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
585 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
586 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
587 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
588 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
589 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
590 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
591 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
592 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
593 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
594 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
595 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
596 <entry spanname="spa1-2">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
597 <entry spanname="spa3-4">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
598 <entry spanname="spa5-6">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
599 <entry spanname="spa7-8">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
600 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
601 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
602 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
603 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
604 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
605 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
606 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
607 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
608 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
609 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
610 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
611 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
612 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
613 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
614 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
615 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
616 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
617 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
618 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
619 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
620 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
621 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
622 <entry spanname="spa1-2">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
623 <entry spanname="spa3-4">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
624 <entry spanname="spa5-6">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
625 <entry spanname="spa7-8">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
626 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
627 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
628 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
629 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
630 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
631 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
632 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
633 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
634 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
635 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
636 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
637 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
638 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
639 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
640
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
641 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
642 Come puoi vedere, le righe e le colonne dell'immagine vengono sempre a coppie.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
643 Quindi i tuoi valori di spostamento e dimensione <emphasis>devono</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
644 essere numeri pari.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
645 Se non lo sono la crominanza non sarà più allineata correttamente con la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
646 luminanza.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
647 In teoria è possibile tagliare con uno spostamento dispari, ma richiede che la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
648 crominanza venga ricampionata, il che potenzialmente è un'operazione in perdita
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
649 e non è gestita dal filtro crop.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
650 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
651
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
652 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
653 Inoltre, il video interlacciato viene campionato come segue:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
654 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
655
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
656 <informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
657 <?dbhtml table-width="80%" ?>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
658 <?dbfo table-width="80%" ?>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
659 <tgroup cols="16" align="center">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
660 <colspec colnum="1" colname="col1"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
661 <colspec colnum="2" colname="col2"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
662 <colspec colnum="3" colname="col3"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
663 <colspec colnum="4" colname="col4"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
664 <colspec colnum="5" colname="col5"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
665 <colspec colnum="6" colname="col6"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
666 <colspec colnum="7" colname="col7"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
667 <colspec colnum="8" colname="col8"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
668 <colspec colnum="9" colname="col9"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
669 <colspec colnum="10" colname="col10"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
670 <colspec colnum="11" colname="col11"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
671 <colspec colnum="12" colname="col12"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
672 <colspec colnum="13" colname="col13"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
673 <colspec colnum="14" colname="col14"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
674 <colspec colnum="15" colname="col15"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
675 <colspec colnum="16" colname="col16"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
676 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
677 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
678 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
679 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
680 <spanspec spanname="spa9-10" namest="col9" nameend="col10"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
681 <spanspec spanname="spa11-12" namest="col11" nameend="col12"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
682 <spanspec spanname="spa13-14" namest="col13" nameend="col14"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
683 <spanspec spanname="spa15-16" namest="col15" nameend="col16"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
684 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
685 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
686 <entry namest="col1" nameend="col8">Campo superiore</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
687 <entry namest="col9" nameend="col16">Campo inferiore</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
688 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
689 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
690 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
691 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
692 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
693 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
694 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
695 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
696 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
697 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
698 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
699 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
700 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
701 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
702 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
703 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
704 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
705 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
706 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
707 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
708 <entry spanname="spa1-2">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
709 <entry spanname="spa3-4">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
710 <entry spanname="spa5-6">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
711 <entry spanname="spa7-8">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
712 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
713 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
714 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
715 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
716 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
717 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
718 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
719 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
720 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
721 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
722 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
723 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
724 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
725 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
726 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
727 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
728 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
729 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
730 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
731 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
732 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
733 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
734 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
735 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
736 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
737 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
738 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
739 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
740 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
741 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
742 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
743 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
744 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
745 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
746 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
747 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
748 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
749 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
750 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
751 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
752 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
753 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
754 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
755 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
756 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
757 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
758 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
759 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
760 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
761 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
762 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
763 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
764 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
765 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
766 <entry spanname="spa9-10">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
767 <entry spanname="spa11-12">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
768 <entry spanname="spa13-14">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
769 <entry spanname="spa15-16">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
770 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
771 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
772 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
773 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
774 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
775 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
776 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
777 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
778 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
779 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
780 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
781 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
782 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
783 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
784 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
785 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
786 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
787 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
788 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
789 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
790 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
791 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
792 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
793 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
794 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
795 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
796 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
797 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
798 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
799 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
800 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
801 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
802 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
803 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
804 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
805 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
806 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
807 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
808 <entry spanname="spa1-2">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
809 <entry spanname="spa3-4">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
810 <entry spanname="spa5-6">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
811 <entry spanname="spa7-8">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
812 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
813 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
814 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
815 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
816 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
817 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
818 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
819 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
820 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
821 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
822 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
823 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
824 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
825 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
826 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
827 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
828 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
829 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
830 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
831 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
832 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
833 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
834 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
835 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
836 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
837 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
838 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
839 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
840 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
841 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
842 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
843 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
844 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
845 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
846 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
847 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
848 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
849 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
850 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
851 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
852 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
853 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
854 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
855 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
856 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
857 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
858 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
859 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
860 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
861 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
862 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
863 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
864 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
865 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
866 <entry spanname="spa9-10">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
867 <entry spanname="spa11-12">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
868 <entry spanname="spa13-14">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
869 <entry spanname="spa15-16">C</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
870 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
871 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
872 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
873 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
874 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
875 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
876 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
877 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
878 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
879 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
880 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
881 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
882 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
883 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
884 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
885 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
886 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
887 <entry>L</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
888 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
889 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
890 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
891 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
892
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
893 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
894 Come puoi notare, il motivo non si ripete fino a dopo 4 linee.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
895 Quindi per il video interlacciato, il tuo spostamento sull'asse y e l'altezza
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
896 devono essere multipli di 4.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
897 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
898
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
899 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
900 La risoluzione nativa DVD è 720x480 per NTSC e 720x576 per PAL, ma c'è un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
901 flag per l'aspetto che indica se è full-screen (4:3) o wide-screen (16:9).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
902 Molti (se non quasi tutti) i DVD in widescreen non sono esattamente 16:9 e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
903 possono essere sia 1.85:1 o 2.35:1 (cinescope). Questo significa che nel video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
904 ci saranno bordi neri che bisogna tagliare via.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
905 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
906
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
907 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
908 <application>MPlayer</application> fornisce un filtro che rileva i valori di
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
909 taglio e fornisce il rettangolo per crop (<option>-vf cropdetect</option>).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
910 Esegui <application>MPlayer</application> con <option>-vf cropdetect</option> ed
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
911 emetterà le impostazioni di taglio per crop al fine di rimuovere i bordi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
912 Dovresti lasciare andare avanti il film abbastanza da ottenere valori di taglio
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
913 precisi.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
914 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
915
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
916 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
917 Dopodiché prova con <application>MPlayer</application> i valori ottenuti usando
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
918 la linea comando emessa da <option>cropdetect</option>, e correggi il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
919 rettangolo se e come serve.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
920 Il filtro <option>rectangle</option> può esserti di aiuto, dato che ti
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
921 permette di impostare interattivamente la posizione del rettangolo di taglio
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
922 sopra al filmato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
923 Ricordati di seguire le linee guida sui multipli in modo da non disallineare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
924 i piani di crominanza.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
925 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
926
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
927 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
928 In talune occasioni, il ridimensionamento può essere indesiderabile.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
929 Il ridimensionamento sulla direzione verticale è difficoltoso con video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
930 interlacciato e se vuoi mantenere l'interlacciamento, dovresti evitare il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
931 ridimensionamento.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
932 Se non ridimensionerai, ma vuoi comunque usare dimensioni multiple di 16,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
933 dovrai tagliare di più.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
934 Evita di tagliare di meno, dato che i bordi neri sono un male per la codifica!
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
935 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
936
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
937 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
938 Dato che MPEG-4 usa macroblocchi 16x16 vorrai esser sicuro che ambedue le
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
939 dimensioni del video che stai per codificare siano multiple di 16, altrimenti
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
940 perderai in qualità, soprattutto a bitrate più bassi. Puoi farlo abbassando
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
941 la larghezza e l'altezza del rettangolo di taglio al multiplo di 16 più vicino.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
942 Come detto precedentemente, quando tagli, vorrai aumentare lo scostamento Y
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
943 della metà della differenza tra la nuova e la vecchia altezza, in modo che il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
944 video risultante sia preso dal centro del fotogramma. Inoltre, a causa del modo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
945 in cui il video DVD viene campionato, assicurati che lo scostamento sia un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
946 numero pari. (Infatti, come regola, non utilizzare mai valori dispari per alcun
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
947 parametro quando tagli e ridimensioni un video.) Se non ti va di scartare dei
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
948 pixel in più, potresti piuttosto preferire il ridimensionamento del video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
949 Prenderemo in esame questa situazione più avanti.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
950 Puoi in verità lasciare che tutte le considerazioni suddette vengano fatte
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
951 dal filtro <option>cropdetect</option>, visto che ha un parametro
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
952 <option>round</option> facoltativo, che è impostato a 16 di default.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
953 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
954
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
955 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
956 Fai anche attenzione ai pixel "mezzi neri" sui bordi. Assicurati di tagliare
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
957 anch'essi, altrimenti sprecherai bit più utili altrove.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
958 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
959
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
960 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
961 Dopo aver detto e fatto tutto ciò, probabilmente avrei un vide i cui pixel
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
962 non saranno proprio 1.85:1 o 2.35:1, ma piuttosto un valore vicino. Potresti
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
963 calcolare a mano il nuovo rapporto di aspetto, ma
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
964 <application>MEncoder</application> ha un'opzione per <systemitem
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
965 class="library">libavcodec</systemitem> chiamata <option>autoaspect</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
966 che lo farà per te. Non aumentare assolutamente le dimensioni del video per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
967 avere i pixel quadrati, a meno che tu non voglia sprecare il tuo spazio disco.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
968 Il ridimensionamento dovrebbe essere eseguito in riproduzione, e per definire
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
969 la risoluzione giusta il riproduttore userà l'aspetto memorizzato nell'AVI.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
970 Sfortunatamente non tutti i riproduttori verificano l'informazione sul rapporto
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
971 perciò potresti voler comunque effettuare il ridimensionamento.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
972 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
973 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
974
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
975 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
976
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
977 <sect2 id="menc-feat-dvd-mpeg4-resolution-bitrate">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
978 <title>Scegliere la risoluzione e il bitrate</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
979
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
980 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
981 Other parameters such as scaling, cropping, etc. will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
982 <emphasis role="bold">not</emphasis> alter the file size unless you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
983 change the bitrate as well!.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
984 A meno che tu non stia per codificare con quantizzazione costante devi
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
985 impostare un bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
986 La logica del bitrate è abbastanza semplice.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
987 Normalmente il bitrate viene misurato in kilobit (1000 bit) al secondo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
988 La dimensione del filmato sul disco è il bitrate moltiplicato per la durata
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
989 del filmato, più un piccolo quantitativo in "surplus" (vedi per esempio la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
990 sezione sul
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
991 <link linkend="menc-feat-dvd-mpeg4-muxing-avi-limitations">contenitore AVI</link>).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
992 Altri parametri come ridimensionamento, taglio, etc...
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
993 <emphasis role="bold">non</emphasis> influiscono sulla dimensione del file a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
994 meno che tu non cambi anche il bitrate!
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
995 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
996
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
997 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
998 Il bitrate <emphasis role="bold">non</emphasis> è direttamente proporzionale
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
999 alla risoluzione.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1000 Tanto per capirci, un file 320x240 a 200 kbit/sec non avrà la stessa qualità
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1001 dello stesso filmato a 640x480 e 800 kbit/sec!
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1002 Ci sono due ragioni per ciò:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1003 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1004 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1005 <emphasis role="bold">Percettiva</emphasis>: noti di più gli artefatti MPEG
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1006 quando sono più grandi!
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1007 Gli artefatti appaiono a livello dei blocchi (8x8).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1008 Il tuo occhio non noterà errori in 4800 piccoli blocchi tanti quanti ne
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1009 vedrà in 1200 grossi blocchi (assumendo che tu li stia ridimensionando tutti
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1010 e due a schermo intero).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1011 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1012 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1013 <emphasis role="bold">Teorica</emphasis> : quando rimpicciolisci un immagine
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1014 ma usi la stessa dimensione dei blocchi (8x8) per la trasformazione spaziale
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1015 della frequenza, hai più dati nelle bande ad alta frequenza. In parole
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1016 povere, ogni pixel contiene più dettagli di quanti ne contenesse prima.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1017 Quindi anche se la tua immagine rimpicciolita contiene 1/4 delle informazioni
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1018 sulle direzioni spaziali, potrebbe ancora contenere una gran parte delle
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1019 informazioni nel dominio delal frequenza (assumendo che le alte frequenze
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1020 siano sotto-utilizzate nell'immagine di origine a 640x480).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1021 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1022 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1023 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1024
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1025 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1026 Guide precendenti hanno consigliato di scegliere un bitrate e una risoluzione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1027 in base ad un approccio "bit al secondo", ma di solito ciò non è valido a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1028 causa delle ragioni suddette.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1029 Una stima migliore pare essere che il bitrate è proporzionale alla radice
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1030 quadrata della risoluzione, per cui 320x240 e 400 kbit/sec sarà
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1031 paragonabile a 640x480 a 800 kbit/sec.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1032 Tuttavia ciò non è stato verificato con certezza empirica o teorica.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1033 Inoltre, dato che i filmati hanno diversi livelli di disturbo, dettaglio, angoli
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1034 di movimento, etc..., è vano dare consigli generici su bit per lunghezza della
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1035 diagonale (analogamente a bit per pixel, usando la radice quadrata).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1036 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1037 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1038 Finora abbiamo parlato della difficoltà nel scegliere un bitrate e una
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1039 risoluzione.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1040 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1041
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1042
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1043 <sect3 id="menc-feat-dvd-mpeg4-resolution-bitrate-compute">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1044 <title>Calcolare la risoluzione</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1045
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1046 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1047 I passaggi seguenti ti guideranno nel calcolo della risoluzione per la tua
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1048 codifica senza distorcere troppo il video, tenendo in considerazione vari tipo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1049 di informazioni riguardo la sorgente video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1050 Per prima cosa dovresti calcolare il rapporto di aspetto codificato:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1051 <systemitem>ARc = (Wc x (ARa / PRdvd )) / Hc</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1052
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1053 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1054 <title>dove:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1055 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1056 Wc e Hc sono la larghezza e l'altezza del video tagliato,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1057 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1058 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1059 ARa è il rapporto di aspetto mostrato, che di solito è 4/3 o 16/9,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1060 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1061 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1062 PRdvd à il rapporto del pixel del DVD che è uguale a 1.25=(720/576) per DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1063 PAL e 1.5=(720/480) per DVD NTSC.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1064 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1065 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1066 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1067
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1068 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1069 Dopo puoi calcolare la risoluzione X e Y, basandoti su un dato fattore
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1070 di qualità di compressione (Compression Quality, CQ):
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1071 <systemitem>ResY = INT(SQRT( 1000*Bitrate/25/ARc/CQ )/16) * 16</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1072 and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1073 <systemitem>ResX = INT( ResY * ARc / 16) * 16</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1074 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1075
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1076 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1077 Okay, ma cos'è la CQ?
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1078 Il CQ rappresenta il numero di bit per pixel e per fotogramma in codifica.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1079 Parlando più semplicemente, più alto è la CQ, più difficilmente si vedranno
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1080 codificati degli artefatti.
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1081 Tuttavia, se desideri una particolare dimensione per il tuo film (per esempio
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1082 1 o 2 CD), hai un numero limitato di bit da utilizzare; devi quindi trovare un
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1083 buon compromesso tra compressione e qualità.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1084 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1085
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1086 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1087 La CQ dipende dal bitrate, dall'efficienza del codec video e dalla risoluzione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1088 del filmato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1089 Per alzare la CQ, di solito dovrai rimpicciolire il filmato visto che il bitrate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1090 viene calcolato in funzione della dimensione voluta e della lunghezza del
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1091 filmato, che sono delle costanti.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1092 Con codec MPEG-4 ASP come <systemitem class="library">Xvid</systemitem> e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1093 <systemitem class="library">libavcodec</systemitem>, una CQ inferiore a 0.18
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1094 solitamente genera un'immagine abbastanza squadrettata, perché non ci sono
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1095 abbastanza bit per codificare l'informazione di ogni macroblocco. (MPEG4, come
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1096 molti altri codec, ragruppa i pixel in blocchi di pixel per comprimere
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1097 l'immagine; se non ci sono abbastanza bit, si vedono i bordi dei blocchi.)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1098 E' saggio anche prendere una CQ compresa tra 0.20 e 0.22 per un rip a 1 CD,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1099 e 0.26-0.28 per un rip a 2 CD con impostazioni standard di codifica.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1100 Opzioni più evolute di codifica come quelle qui indicate per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1101 <link linkend="menc-feat-mpeg4-lavc-example-settings"><systemitem class="library">libavcodec</systemitem></link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1102 e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1103 <link linkend="menc-feat-xvid-example-settings"><systemitem class="library">Xvid</systemitem></link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1104 dovrebbero permetterti di ottenere la stessa qualità con CQ compresa tra
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1105 0.18 e 0.20 per un rip da 1 CD, e da 0.24 a 0.26 per 2 CD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1106 Con codec MPEG-4 AVC come <systemitem class="library">x264</systemitem>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1107 puoi usare una CQ che varia da 0.14 a 0.16 con opzioni standard di codifica, e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1108 dovresti riuscire a scendere tra 0.10 e 0.12 con <link linkend="menc-feat-x264-example-settings">impostazioni avanzate di codifica
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1109 <systemitem class="library">x264</systemitem></link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1110 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1111
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1112 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1113 Prendi per favore nota che CQ è solo un valore indicativo, dato che dipende dal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1114 contenuto che viene codificato, una CQ di 0.18 può andar bene per un Bergman,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1115 mentre per un film come Matrix, che contiene molte scene ad alta velocità, no.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1116 D'altro canto è inutile portare la CQ oltre 0.30 dato che sprecherai dei bit
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1117 senza avere alcun guadagno visibile in qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1118 Nota anche che come detto precedentemente in questa guida, per video a bassa
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1119 risoluzione serve una CQ più alta (in rapporto, per esempio, alla risoluzione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1120 DVD) perché si vedano bene.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1121 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1122 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1123 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1124
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1125 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1126
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1127 <sect2 id="menc-feat-dvd-mpeg4-filtering">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1128 <title>Filtraggio</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1129
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1130 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1131 Imparare come usare i filtri video di <application>MEncoder</application> è
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1132 essenziale per produrre delle buone codfiche.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1133 Tutta l'elaborazione video è eseguita attraverso i filtri -- taglio,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1134 ridimensionamento, aggiustamento del colore, rimozione del disturbo, rilevamento
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1135 margini, deinterlacciatura, telecine, telecine inverso, e deblocco, solo per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1136 nominarne qualcuno.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1137 Insieme con la vasta gamma di formati di entrata gestiti, la varietà dei
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1138 filtri disponibili in <application>MEncoder</application> è uno dei suoi
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1139 più grandi vantaggi sugli altri programmi similari.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1140 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1141
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1142 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1143 I filtri vengono caricati in catena usando l'opzione -vf:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1144
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1145 <screen>-vf filtro1=opzioni,filtro2=opzioni,...</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1146
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1147 La maggior parte dei filtri riceve alcune opzioni numeriche separate da due
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1148 punti, ma la sintassi per le opzioni cambia da filtro a filtro, indi leggiti la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1149 pagina man per i dettagli sul filtro che desideri usare.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1150 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1151
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1152 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1153 I filtri lavorano sul video nell'ordine in cui vengono caricati.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1154 Per esempio la catena seguente:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1155
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1156 <screen>-vf crop=688:464:12:4,scale=640:464</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1157
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1158 dapprima taglia la zona 688x464 dell'immagine con uno scostamento dall'alto a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1159 sinistra di (12,4), e poi ridimensiona il risultato a 640x464.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1160 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1161
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1162 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1163 Taluni filtri devono essere caricati all'inizio o vicino all'inizio della
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1164 catena di filtri, in modo da trarre vantaggio dalle informazioni che arrivano
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1165 dal decoder video, che potrebbero essere perse o invalidate da altri filtri.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1166 Gli esempi principali sono <option>pp</option> (post elaborazione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1167 (postprocessing), solo quando esegue operazioni di deblock o dering),
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1168 <option>spp</option> (un altra post elaborazione per eliminare artefatti MPEG),
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1169 <option>pullup</option> (telecine inverso), e <option>softpulldown</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1170 (per passare da telecine soft a hard).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1171 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1172
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1173 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1174 In generale vorrai filtrare il meno possibile in modo da rimaner fedele alla
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1175 sorgente DVD originale. Il taglio è spesso necessario (com detto sopra), ma
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1176 evita di ridimensionare il video. Anche se alcune volte si preferisce
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1177 rimpicciolire per poter usare quantizzatori più alti, vogliamo evitare ciò:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1178 ricorda che abbiamo sin dall'inizio deciso di investire bit in qualità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1179 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1180
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1181 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1182 In più, non reimpostare la gamma, il contrasto, la luminosità, etc...
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1183 Quello che si vede bene sul tuo schermo potrebbe non vedersi bene su altro.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1184 Queste modifiche dovrebbero esser fatte solo durante la riproduzione.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1185 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1186
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1187 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1188 Una cosa che voresti però fare è tuttavia far passare il video attraverso un
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1189 leggero filtro di rimozione disturbo, come <option>-vf hqdn3d=2:1:2</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1190 Ancora, è una questione di poter meglio utilizzare quei bit: perché sprecarli
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1191 codificando disturbo mentre puoi semplicemente aggiungerlo di nuovo durante la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1192 riproduzione? Alzando i parametri per <option>hqdn3d</option> aumenterà
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1193 ancora la compressione, ma se aumenti troppo i valori, rischi un degrado pesante
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1194 dell'immagine. I valori sopra consigliati (<option>2:1:2</option>) sono
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1195 abbastanza conservativi; sentiti libero di sperimentare con valori più alti e
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1196 verificare da solo il risultato.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1197 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1198 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1199
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1200 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1201
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1202 <sect2 id="menc-feat-dvd-mpeg4-interlacing">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1203 <title>Interlacciamento e Telecine</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1204
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1205 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1206 Quasi tutti i film vengono ripresi a 24 fps. Dato che NTSC è 30000/1001 fps,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1207 si devono eseguire alcune elaborazioni affinché questo video a 24 fps sia
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1208 letto al giusto framerate NTSC. Il processo è chiamato "3:2 pulldown", meglio
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1209 conosciuto come "telecine" (poiché pulldown viene spesso applicato durante il
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1210 processo di telecine), e descritto rozzamente, agisce rallentando il film a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1211 24000/1001 fps, e ripetendo ogni quarto fotogramma.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1212 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1213
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1214 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1215 Non viene invece eseguita alcuna elaborazione sul video per i DVD PAL, che
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1216 girano a 25 fps. (Tecnicamente, PAL può subire il telecine, chiamato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1217 "2:2 pulldown", ma non è usanza abituale.) Il film a 24 fps viene
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1218 semplicemente riprodotto a 25 fps. Il risultato è che il filmato è leggermente
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1219 più veloce, ma a meno che tu non sia un alieno, probabilmente non noterai la
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1220 differenza.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1221 La maggior parte dei DVD PAL hanno audio corretto ai picchi, in modo che quando
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1222 siano riprodotti a 25 fps le cose suonino giuste, anche se la traccia audio
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1223 (e quindi tutto il filmato) ha un tempo di riproduzione che è il 4% inferiore
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1224 ai DVD NTSC.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1225 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1226
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1227 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1228 A causa del fatto che il video nei DVD PAL non è stato alterato, non dovrai
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1229 preoccuperti molto della frequenza fotogrammi. La sorgente è 25 fps, e il tuo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1230 rip sarà a 25 fps. Tuttavia, se stai codificando un film da DVD NTSC,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1231 potresti dover applicare il telecine inverso.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1232 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1233
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1234 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1235 Per film ripresi a 24 fps, il video sul DVD NTSC è o con telecine a 30000/1001,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1236 oppure è progressivo a 24000/1001 fps e destinato a subire il telecine al volo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1237 da un lettore DVD. D'altro canto le serie TV sono solitamente solo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1238 interlacciate, senza telecine. Questa non è una regola ferrea: alcune serie TV
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1239 sono interlacciate (come Buffy the Vampire Slayer) mentre alcune sono un misto
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1240 di progressivo e interlacciato (come Angel, o 24).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1241 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1242
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1243 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1244 Si consiglia vivamente di leggere la sezione su
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1245 <link linkend="menc-feat-telecine">Come trattare il telecine e l'interlacciamento nei DVD NTSC</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1246 per imparare come gestire le varie possibilità.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1247 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1248
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1249 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1250 Ciononostante, se stai principalmente rippando solo film, solitamente ti
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1251 troverai di fronte a video a 24 fps progressivo o con telecine, nel qual caso
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1252 puoi usare il filtro <option>pullup</option> <option>-vf
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1253 pullup,softskip</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1254 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1255 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1256
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1257 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1258
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1259 <sect2 id="menc-feat-dvd-mpeg4-encoding-interlaced">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1260 <title>Codificare video interlacciato</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1261
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1262 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1263 Se il film che vuoi codificare è interlacciato (video NTSC o PAL) dovrai
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1264 scegliere se vuoi de-interlacciare o no.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1265 Se da un lato de-interlacciare renderà il tuo filmato utilizzabile su
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1266 schermi a scansione progressiva come monitor di computer o proiettori, porta
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1267 con sé un costo: la frequenza dei campi di 50 o 60000/1001 campi al secondo
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1268 viene dimezzata a 25 o 30000/1001 fotogrammi al secondo, e circa la metà delle
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1269 informazioni nel tuo film saranno perdute, in scene con movimento significativo.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1270 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1271
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1272 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1273 Per di più, se stai codificando puntando ad alta qualità di archiviazione.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1274 si consiglia di non de-interlacciare.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1275 Puoi sempre de-interlacciare il film durante la riproduzione attraverso
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1276 dispositivi a scansione progressiva.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1277 La potenza dei computer attuali forza per i riproduttori l'utilizzo di un filtro
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1278 di de-interlacciamento, che porta un leggero degrado dell'immagine.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1279 Ma i lettori del futuro saranno in grado di simulare lo schermo di una TV,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1280 de-interlacciando a piena frequenza di campi e interpolando 50 o 60000/1001
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1281 fotogrammi interi al secondo dal video interlacciato
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1282 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1283
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1284 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1285 Bisogna porre speciale attenzione quando si lavora con video interlacciato:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1286 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1287
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1288 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1289 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1290 Altezza e scostamento del taglio devono essere multipli di 4.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1291 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1292 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1293 Qualsiasi ridimensionamento verticale va fatto in modalità interlacciata.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1294 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1295 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1296 I filtri di post elaborazione e di rimozione disturbo potrebbero non
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1297 funzionare come ci si aspetta a meno che tu non ponga particolare attenzione
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1298 per farli lavorare su un campo per volta, e possono rovinare il video quando
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1299 usati in modo non corretto.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1300 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1301 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1302
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1303 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1304 Tenendo a mente queste cose, ecco il nostro primo esempio:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1305 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1306 mencoder <replaceable>capture.avi</replaceable> -mc 0 -oac lavc -ovc lavc -lavcopts \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1307 vcodec=mpeg2video:vbitrate=6000:ilme:ildct:acodec=mp2:abitrate=224
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1308 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1309 Nota le opzioni <option>ilme</option> e <option>ildct</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1310 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1311 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1312
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1313 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1314
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1315 <sect2 id="menc-feat-dvd-mpeg4-av-sync">
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1316 <title>Note sulla sincronizzazione Audio/Video</title>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1317
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1318 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1319 Gli algoritmi di sincronizzazione audio/video di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1320 <application>MEncoder</application> sono stati progettati con l'intento di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1321 recuperare file con sincronia danneggiata.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1322 In alcuni casi tuttavia, possono generare inutili duplicazioni o scarti di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1323 fotogrammi, e possibilmente leggera desincronia A/V quando vengono usati con
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1324 sorgenti buone (i problemi di sincronizzazione A/V accadono solo se elabori o
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1325 copi la traccia audio mentre transcodifichi il video, il che è decisamente
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1326 consigliato).
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1327 Perciò potresti dover passare ad una sincronizzazione di base con l'opzione
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1328 <option>-mc 0</option>, o metterla nel tuo file di configurazione
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1329 <systemitem>~/.mplayer/mencoder</systemitem>, sempre che tu stia lavorando con
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1330 buone sorgenti (DVD, acquisizione TV, rip MPEG-4 ad alta qualità, etc) e non
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1331 con file ASF/RM/MOV rovinati.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1332 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1333
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1334 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1335 Se vuoi proteggerti ulteriormente da strani salti e duplicazioni di fotogrammi,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1336 puoi usare sia <option>-mc 0</option> che <option>-noskip</option>.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1337 Questo disabiliterà <emphasis>tutte</emphasis> le sincronizzazioni A/V, e
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1338 copierà i fotogrammi uno ad uno, perciò è inutilizzabile se stai usando dei
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1339 filtri che aggiungono o rimuovono arbitrariamente fotogrammi, ovvero se il
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1340 tuo file sorgente ha una frequenza fotogrammi non costante!
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1341 Quindi l'utilizzo di <option>-noskip</option> in linea di massima si sconsiglia.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1342 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1343
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1344 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1345 Si sa che la cosiddetta codifica audio in "tre passi", che
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1346 <application>MEncoder</application> gestisce, può causare desincronizzazione
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1347 A/V.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1348 Il che capiterà prontamente se viene usata insieme con alcuni filtri, per cui
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1349 si consiglia di <emphasis>non</emphasis> usare la modalità audio a tre passi.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1350 Questa caratteristica viene lasciata solo per finalità di compatibilità e
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1351 per utenti esperti che sanno quando sia adeguato usarla e quando no.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1352 Se non hai mai sentito parlar prima della modalità a tre passi, dimenticati
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1353 di averla anche solo sentita nominare!
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1354 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1355
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1356 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1357 Ci sono anche stati rapporti di desincronia A/V codificando con
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1358 <application>MEncoder</application> da stdin.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1359 Non farlo! Usa sempre come ingresso un file o un dispositivo CD/DVD/etc.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1360 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1361 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1362
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1363 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1364
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1365 <sect2 id="menc-feat-dvd-mpeg4-codec">
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1366 <title>Scegliere il codec video</title>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1367
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1368 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1369 Quale possa esere il miglior codec video dipende da molti fattori, come
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1370 dimensione, qualità, possibilita di farne lo streaming, usabilit, diffusione,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1371 alcuni dei quali dipendono fortemente dai gusti personali e dalle variabili
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1372 tecniche in gioco.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1373 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1374 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1375 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1376 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1377 E' abbastanza facile da capire che i codec più recenti sono fatti per
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1378 aumentare qualità e compressione.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1379 Quindi gli autori di questa guida e moltra altra gente suggeriscono che non
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1380 potete sbagliare
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1381 <footnote id='fn-menc-feat-dvd-mpeg4-codec-cpu'><para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1382 Fai comunque attenzione: la decodifica di video MPEG-4 AVC a risoluzione DVD
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1383 richiede una macchina veloce (per es. un Pentium 4 oltre 1.5GHz o un Pentium
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1384 M superiore a 1GHz).
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1385 </para></footnote>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1386 quando scegliete un qualche codec MPEG-4 AVC come
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1387 <systemitem class="library">x264</systemitem> piuttosto che un codec MPEG-4
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1388 ASP come l'MPEG-4 di <systemitem class="library">libavcodec</systemitem> o
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1389 <systemitem class="library">Xvid</systemitem>.
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1390 (Per sviluppatori avenzati di codec potrebbe essere interessante leggere
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1391 l'opinione di Michael Niedermayer sul
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1392 "<ulink url="http://guru.multimedia.cx/?p=10">perché MPEG-4 ASP faccia schifo</ulink>"
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1393 (in inglese).)
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1394 Analogamente dovresti ottenere una miglior qualità usando MPEG-4 ASP rispetto
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1395 a quella ottenuta con codec MPEG-2.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1396 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1397
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1398 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1399 Tuttavia, i codec più recenti che sono sotto pesante sviluppo possono avere
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1400 problemi che non sono ancora stati scoperti, e che possono rovinare una
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1401 codifica.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1402 Questo è semplicemente il contrappasso per usare la tecnologia di punta.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1403 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1404
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1405 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1406 Inoltre iniziare ad utilizzare un codec nuovo richiede l'utilizzo di un po'
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1407 di tempo per familiarizzare con le sue opzioni, affinché tu sappia cosa
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1408 impostare per ottenere la qualità dell'immagine voluta.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1409 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1410 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1411
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1412 <listitem><para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1413 <emphasis role="bold">Compatibilità Hardware</emphasis>:
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1414 Solitamente ci va un po' di tempo prima che i lettori da tavolo incomincino ad
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1415 includere il supporto per il video codec più recente.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1416 Il risultato è che la maggior parte legge MPEG-1 (come i VCD, XVCD e KVCD),
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1417 MPEG-2 (come DVD, SVCD e KVCD) e MPEG-4 ASP (come DivX,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1418 LMP4 di <systemitem class="library">libavcodec</systemitem> e
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1419 <systemitem class="library">Xvid</systemitem>)
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1420 (attenzione: solitamente non sono gestite tutte le caratteristiche
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1421 MPEG-4 ASP).
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1422 Fai per favore riferimento alle specifiche tecniche del tuo lettore (ove
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1423 disponibili) o cerca su internet per ulteriori informazioni.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1424 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1425
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1426 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1427 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1428 <emphasis role="bold">Miglior qualità per tempo di codifica</emphasis>:
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1429 Codec che sono in giro da parecchio tempo (come MPEG-4 di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1430 <systemitem class="library">libavcodec</systemitem> e
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1431 <systemitem class="library">Xvid</systemitem>) sono spesso molto ottimizzati
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1432 con ogni tipo di algoritmo furbo e codice SIMD in assembly.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1433 Per questo tendono a fornire il miglior rapporto tra qualità e tempo di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1434 codifica. Tuttavia, possono avere delle opzioni avanzate che, quando
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1435 abilitate, rendono la codifica molto lenta fornendo poco guadagno.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1436 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1437
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1438 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1439 Se stai cercando di incrementare la velocità dovresti cercare di non
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1440 modificare troppo le impostazioni di default del codec video (anche se
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1441 dovresti comunque provare le altre opzioni che sono citate in altre sezioni
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1442 di questa guida).
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1443 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1444
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1445 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1446 Puoi tenere in considerazione anche la scelta di un codec che possa eseguire
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1447 elaborazioni multi-thread, anche se ciò è utile solo per utenti di macchine
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1448 con più di una CPU.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1449 MPEG-4 di <systemitem class="library">libavcodec</systemitem> lo permette,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1450 ma il guadagno in velocità è limitato, e c'è un leggere effetto negativo
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1451 sulla qualità dell'immagine.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1452 La codifica multi-thread di <systemitem class="library">Xvid</systemitem>,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1453 attivata dall'opzione <option>threads</option>, può essere usata per
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1454 accelerare la velocità di codifica &mdash; tipicamente di circa il 40-60%
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1455 &mdash; con poco se non nessun degrado dell'immagine.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1456 Anche <systemitem class="library">x264</systemitem> permette la codifica in
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1457 multi-thread, la quale attualmente velocizza la codifica del 94% per core di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1458 CPU mentre abbassa il PSNR tra 0.005dB e 0.01dB, con impostazioni tipiche.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1459 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1460 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1461
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1462 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1463 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1464 <emphasis role="bold">Gusto personale</emphasis>:
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1465 Qui è dove capita l'irrazionale: per la stessa ragione per cui alcuni
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1466 restano attaccati a DivX&nbsp;3 per anni, mentre nuovi codec stanno
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1467 facendo meraviglie, alcuni personaggi preferiranno
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1468 <systemitem class="library">Xvid</systemitem> o MPEG-4 di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1469 <systemitem class="library">libavcodec</systemitem> a
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1470 <systemitem class="library">x264</systemitem>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1471 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1472 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1473 Dovresti prendere le tue decisioni; non prendere consigli da gente che
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1474 fanno giuramenti su un codec.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1475 Prendi alcuni pezzi di esempio da sorgenti grezze e compara le diverse
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1476 opzioni di codifica e di codec per trovare quello che ti garba di più.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1477 Il miglior codec è quello che riesci a gestire al meglio, e quello che ai
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1478 tuoi occhi e sul tuo schermo si vede meglio.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1479 <footnote id='fn-menc-feat-dvd-mpeg4-codec-playback'><para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1480 La stessa codifica potrebbe non apparire uguale sullo schermo di qualcun
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1481 altro o se riprodotta con un decodificatore differente, perciò controlla
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1482 i tuoi risultati riproducendoli in diverse condizioni.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1483 </para></footnote>!
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1484 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1485 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1486 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1487
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1488 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1489 Fai per favore riferimento alla sezione
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1490 <link linkend="menc-feat-selecting-codec">selezionare codec e formati contenitore</link>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1491 per avere un elenco dei codec usabili.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1492 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1493 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1494
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1495 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1496
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1497 <sect2 id="menc-feat-dvd-mpeg4-audio">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1498 <title>Audio</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1499
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1500 <para>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1501 L'audio è un problema di decisamente più facile soluzione: se ti interessa la
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1502 qualità, lascialo semplicemente com'è.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1503 Anche i flussi AC-3 5.1 sono al massimo a 448Kbit/s, e ne valgono ogni bit.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1504 Potresti esser tentato di trascodificare l'audio in Vorbis ad alta qualità, ma
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1505 solo perché a tutt'oggi non hai un decodificatore AC-3 pass-through ciò non
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1506 significa che non ne avrai uno in futuro. Assicura un futuro ai tuoi rip da DVD
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1507 preservando il flusso in AC-3.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1508 Puoi mantenere il flusso AC-3 anche copiandolo direttamente nel flusso video
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1509 <link linkend="menc-feat-mpeg4">durante la codifica</link>.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1510 Puoi anche estrarre il flusso AC-3 al fine di farne il mux in contenitori come
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1511 NUT o Matroska.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1512 <screen>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1513 mplayer <replaceable>file_sorgente.vob</replaceable> -aid 129 -dumpaudio -dumpfile <replaceable>suono.ac3</replaceable>
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1514 </screen>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1515 effettuerà il dump della traccia audio numero 129 dal file
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1516 <replaceable>file_sorgente.vob</replaceable> nel file
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1517 <replaceable>suono.ac3</replaceable> (NB: i file VOB da DVD spesso usano una
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1518 numerazione dell'audio diversa, il che significa che la traccia audio 129 è la
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1519 seconda traccia del file).
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1520 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1521
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1522 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1523 Alcune volte invece, non hai davvero altra scelta se non comprimere
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1524 ulteriormente il suono per poter usare più bit per il video.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1525 La maggior parte delle persone sceglie di comprimere l'audio con i codec MP3
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1526 ovvero Vorbis.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1527 Mentre quest'ultimo è un codec decisamente efficiente per lo spazio, MP3 è
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1528 meglio supportato dai lettori da tavolo, anche se la situazione sta cambiando.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1529 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1530
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1531 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1532 <emphasis>Non</emphasis> usare <option>-nosound</option> mentre codifichi un
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1533 file con dell'audio, anche se farai la codifica e il mux dell'audio
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1534 separatamente in seguito.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1535 Anche se potesse andar bene in casi ideali, facilmente usare
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1536 <option>-nosound</option> nasconderà alcuni problemi nelle tue impostazioni di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1537 codifica sulla riga comando.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1538 In altre parole mantenere la colonna sonora durante la codifica ti assicura,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1539 a patto che tu non veda messaggi del tipo
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1540 <quote>Troppi pacchetti audio nel buffer</quote>, di ottenere un'adeguata
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1541 sincronizzazione.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1542 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1543
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1544 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1545 Devi fare in modo che <application>MEncoder</application> processi il suono.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1546 Puoi per esempio copiare la colonna sonora originaria durante la codifica con
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1547 <option>-oac copy</option>, o convertirla in un "leggero" PCM WAV mono a 4 kHz
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1548 con <option>-oac pcm -channels 1 -srate 4000</option>.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1549 In caso contrario in alcuni casi verrà generato un file video che sarà
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1550 desincronizzato con l'audio.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1551 Casi del genere sono quelli in cui il numero dei fotogrammi video nel file di
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1552 origine non corrisponde alla lunghezza totale dei fotogrammi audio oppure
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1553 ogniqualvolta vi siano delle discontinuità/splice in cui mancano o ci sono
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1554 fotogrammi audio in più.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1555 Il modo giusto di gestire questo tipo di problemi è inserire del silenzio o
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1556 tagliare l'audio in quei punti.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1557 Tuttavia <application>MPlayer</application> non è in grado di farlo, per cui se
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1558 fai il demux dell'audio AC-3 e lo codifichi con un'altro programma (o ne fai il
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1559 dump in PCM con <application>MPlayer</application>), gli splice rimarranno
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1560 sbagliati e l'unico modo per correggerli è scartare/duplicare fotogrammi video
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1561 nel punto di splice.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1562 Fintantochè <application>MEncoder</application> vede l'audio mentre codifica il
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1563 video, può eseguire questo scarto/duplicazione (che solitamente è OK, dato che
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1564 capita con scene nere o cambi scena), ma se <application>MEncoder</application>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1565 non vede l'audio, processerà i fotogrammi così come sono e alla fine non
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1566 corrisponderanno al flusso audio finale quando per esempio inserirai i flussi
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1567 audio e video dentro a un file Matroska.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1568 </para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1569
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1570 <para>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1571 Prima di tutto dovrai convertire l'audio DVD in un file WAV che il codec audio
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1572 possa usare come ingresso.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1573 Per esempio:
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1574 <screen>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1575 mplayer <replaceable>file_sorgente.vob</replaceable> -ao pcm:file=<replaceable>suono_destinazione.wav</replaceable> \
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1576 -vc dummy -aid 1 -vo null
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1577 </screen>
25449
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1578 eseguirà il dump della seconda traccia audio dal file
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1579 <replaceable>file_sorgente.vob</replaceable> sul file
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1580 <replaceable>suono_destinazione.wav</replaceable>.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1581 Potresti voler normalizzare il suono prima della codifica, visto che le tracce
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1582 audio dei DVD spesso sono registrate a volumi bassi.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1583 Puoi usare per esempio lo strumento <application>normalize</application>, che
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1584 è disponibile nella maggior parte delle distribuzioni.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1585 Se stai usando Windows, lo stesso mestiere lo può fare uno strumento tipo
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1586 <application>BeSweet</application>.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1587 Effettuerai la compressione in Vorbis ovvero in MP3.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1588
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1589 Per esempio:
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1590 <screen>oggenc -q1 <replaceable>suono_destinazione.wav</replaceable></screen>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1591 codificherà <replaceable>suono_destinazione.wav</replaceable> con qualità
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1592 di codifica 1, che equivale circa a 80Kb/s, ed è la qualità minima in cui
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1593 dovresti codificare se ti interessa la qualità.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1594 Fai per favore attenzione che attualmente <application>MEncoder</application>
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1595 non è in grado di fare il mux di tracce audio Vorbis nel file di uscita,
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1596 perché gestisce solo contenitori AVI e MPEG in uscita, ognuno dei quali può
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1597 portare a problemi di sincronizzazione audio/video durante la riproduzione con
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1598 alcuni lettori quando il file AVI contiene flussi audio VBR come Vorbis.
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1599 Non preoccuparti, questa documentazione ti mostrerà come tu possa farlo
136ee4a91f00 30% synced with r22753
ptt
parents: 25279
diff changeset
1600 comunque con programmi di terze parti.
25279
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1601 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1602 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1603
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1604 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1605
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1606 <sect2 id="menc-feat-dvd-mpeg4-muxing">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1607 <title>Muxing</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1608
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1609 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1610 Now that you have encoded your video, you will most likely want
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1611 to mux it with one or more audio tracks into a movie container, such
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1612 as AVI, MPEG, Matroska or NUT.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1613 <application>MEncoder</application> is currently only able to natively output
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1614 audio and video into MPEG and AVI container formats.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1615 for example:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1616 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1617 mencoder -oac copy -ovc copy -o <replaceable>output_movie.avi</replaceable> \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1618 -audiofile <replaceable>input_audio.mp2</replaceable> <replaceable>input_video.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1619 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1620 This would merge the video file <replaceable>input_video.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1621 and the audio file <replaceable>input_audio.mp2</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1622 into the AVI file <replaceable>output_movie.avi</replaceable>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1623 This command works with MPEG-1 layer I, II and III (more commonly known
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1624 as MP3) audio, WAV and a few other audio formats too.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1625 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1626
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1627 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1628 <application>MEncoder</application> features experimental support for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1629 <systemitem class="library">libavformat</systemitem>, which is a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1630 library from the FFmpeg project that supports muxing and demuxing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1631 a variety of containers.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1632 For example:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1633 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1634 mencoder -oac copy -ovc copy -o <replaceable>output_movie.asf</replaceable> -audiofile <replaceable>input_audio.mp2</replaceable> \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1635 <replaceable>input_video.avi</replaceable> -of lavf -lavfopts format=asf
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1636 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1637 This will do the same thing as the previous example, except that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1638 the output container will be ASF.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1639 Please note that this support is highly experimental (but getting
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1640 better every day), and will only work if you compiled
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1641 <application>MPlayer</application> with the support for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1642 <systemitem class="library">libavformat</systemitem> enabled (which
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1643 means that a pre-packaged binary version will not work in most cases).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1644 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1645
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1646
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1647 <sect3 id="menc-feat-dvd-mpeg4-muxing-filter-issues">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1648 <title>Improving muxing and A/V sync reliability</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1649
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1650 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1651 You may experience some serious A/V sync problems while trying to mux
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1652 your video and some audio tracks, where no matter how you adjust the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1653 audio delay, you will never get proper sync.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1654 That may happen when you use some video filters that will drop or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1655 duplicate some frames, like the inverse telecine filters.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1656 It is strongly encouraged to append the <option>harddup</option> video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1657 filter at the end of the filter chain to avoid this kind of problem.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1658 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1659
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1660 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1661 Without <option>harddup</option>, if <application>MEncoder</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1662 wants to duplicate a frame, it relies on the muxer to put a mark on the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1663 container so that the last frame will be displayed again to maintain
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1664 sync while writing no actual frame.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1665 With <option>harddup</option>, <application>MEncoder</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1666 will instead just push the last frame displayed again into the filter
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1667 chain.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1668 This means that the encoder receives the <emphasis>exact</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1669 same frame twice, and compresses it.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1670 This will result in a slightly bigger file, but will not cause problems
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1671 when demuxing or remuxing into other container formats.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1672 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1673
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1674 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1675 You may also have no choice but to use <option>harddup</option> with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1676 container formats that are not too tightly linked with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1677 <application>MEncoder</application> such as the ones supported through
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1678 <systemitem class="library">libavformat</systemitem>, which may not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1679 support frame duplication at the container level.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1680 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1681 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1682
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1683
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1684 <sect3 id="menc-feat-dvd-mpeg4-muxing-avi-limitations">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1685 <title>Limitations of the AVI container</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1686
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1687 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1688 Although it is the most widely-supported container format after MPEG-1,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1689 AVI also has some major drawbacks.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1690 Perhaps the most obvious is the overhead.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1691 For each chunk of the AVI file, 24 bytes are wasted on headers and index.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1692 This translates into a little over 5 MB per hour, or 1-2.5%
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1693 overhead for a 700 MB movie. This may not seem like much, but it could
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1694 mean the difference between being able to use 700 kbit/sec video or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1695 714 kbit/sec, and every bit of quality counts.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1696 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1697
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1698 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1699 In addition this gross inefficiency, AVI also has the following major
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1700 limitations:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1701 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1702
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1703 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1704 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1705 Only fixed-fps content can be stored. This is particularly limiting
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1706 if the original material you want to encode is mixed content, for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1707 example a mix of NTSC video and film material.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1708 Actually there are hacks that can be used to store mixed-framerate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1709 content in AVI, but they increase the (already huge) overhead
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1710 fivefold or more and so are not practical.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1711 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1712 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1713 Audio in AVI files must be either constant-bitrate (CBR) or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1714 constant-framesize (i.e. all frames decode to the same number of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1715 samples).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1716 Unfortunately, the most efficient codec, Vorbis, does not meet
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1717 either of these requirements.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1718 Therefore, if you plan to store your movie in AVI, you will have to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1719 use a less efficient codec such as MP3 or AC-3.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1720 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1721 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1722
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1723 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1724 Having said all that, <application>MEncoder</application> does not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1725 currently support variable-fps output or Vorbis encoding.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1726 Therefore, you may not see these as limitations if
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1727 <application>MEncoder</application> is the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1728 only tool you will be using to produce your encodes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1729 However, it is possible to use <application>MEncoder</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1730 only for video encoding, and then use external tools to encode
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1731 audio and mux it into another container format.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1732 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1733 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1734
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1735
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1736 <sect3 id="menc-feat-dvd-mpeg4-muxing-matroska">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1737 <title>Muxing into the Matroska container</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1738
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1739 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1740 Matroska is a free, open standard container format, aiming
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1741 to offer a lot of advanced features, which older containers
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1742 like AVI cannot handle.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1743 For example, Matroska supports variable bitrate audio content
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1744 (VBR), variable framerates (VFR), chapters, file attachments,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1745 error detection code (EDC) and modern A/V Codecs like "Advanced Audio
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1746 Coding" (AAC), "Vorbis" or "MPEG-4 AVC" (H.264), next to nothing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1747 handled by AVI.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1748 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1749
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1750 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1751 The tools required to create Matroska files are collectively called
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1752 <application>mkvtoolnix</application>, and are available for most
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1753 Unix platforms as well as <application>Windows</application>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1754 Because Matroska is an open standard you may find other
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1755 tools that suit you better, but since mkvtoolnix is the most
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1756 common, and is supported by the Matroska team itself, we will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1757 only cover its usage.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1758 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1759
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1760 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1761 Probably the easiest way to get started with Matroska is to use
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1762 <application>MMG</application>, the graphical frontend shipped with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1763 <application>mkvtoolnix</application>, and follow the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1764 <ulink url="http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge-gui.html">guide to mkvmerge GUI (mmg)</ulink>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1765 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1766
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1767 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1768 You may also mux audio and video files using the command line:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1769 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1770 mkvmerge -o <replaceable>output.mkv</replaceable> <replaceable>input_video.avi</replaceable> <replaceable>input_audio1.mp3</replaceable> <replaceable>input_audio2.ac3</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1771 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1772 This would merge the video file <replaceable>input_video.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1773 and the two audio files <replaceable>input_audio1.mp3</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1774 and <replaceable>input_audio2.ac3</replaceable> into the Matroska
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1775 file <replaceable>output.mkv</replaceable>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1776 Matroska, as mentioned earlier, is able to do much more than that, like
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1777 multiple audio tracks (including fine-tuning of audio/video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1778 synchronization), chapters, subtitles, splitting, etc...
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1779 Please refer to the documentation of those applications for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1780 more details.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1781 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1782 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1783 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1784 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1785
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1786
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1787 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1788
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1789
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1790 <sect1 id="menc-feat-telecine">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1791 <title>How to deal with telecine and interlacing within NTSC DVDs</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1792
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1793 <sect2 id="menc-feat-telecine-intro">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1794 <title>Introduction</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1795
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1796 <formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1797 <title>What is telecine?</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1798 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1799 If you do not understand much of what is written in this document, read the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1800 <ulink url="http://en.wikipedia.org/wiki/Telecine">Wikipedia entry on telecine</ulink>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1801 It is an understandable and reasonably comprehensive
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1802 description of what telecine is.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1803 </para></formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1804
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1805 <formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1806 <title>A note about the numbers.</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1807 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1808 Many documents, including the guide linked above, refer to the fields
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1809 per second value of NTSC video as 59.94 and the corresponding frames
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1810 per second values as 29.97 (for telecined and interlaced) and 23.976
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1811 (for progressive). For simplicity, some documents even round these
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1812 numbers to 60, 30, and 24.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1813 </para></formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1814
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1815 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1816 Strictly speaking, all those numbers are approximations. Black and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1817 white NTSC video was exactly 60 fields per second, but 60000/1001
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1818 was later chosen to accomodate color data while remaining compatible
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1819 with contemporary black and white televisions. Digital NTSC video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1820 (such as on a DVD) is also 60000/1001 fields per second. From this,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1821 interlaced and telecined video are derived to be 30000/1001 frames
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1822 per second; progressive video is 24000/1001 frames per second.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1823 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1824
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1825 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1826 Older versions of the <application>MEncoder</application> documentation
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1827 and many archived mailing list posts refer to 59.94, 29.97, and 23.976.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1828 All <application>MEncoder</application> documentation has been updated
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1829 to use the fractional values, and you should use them too.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1830 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1831
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1832 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1833 <option>-ofps 23.976</option> is incorrect.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1834 <option>-ofps 24000/1001</option> should be used instead.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1835 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1836
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1837 <formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1838 <title>How telecine is used.</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1839 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1840 All video intended to be displayed on an NTSC
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1841 television set must be 60000/1001 fields per second. Made-for-TV movies
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1842 and shows are often filmed directly at 60000/1001 fields per second, but
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1843 the majority of cinema is filmed at 24 or 24000/1001 frames per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1844 second. When cinematic movie DVDs are mastered, the video is then
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1845 converted for television using a process called telecine.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1846 </para></formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1847
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1848 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1849 On a DVD, the video is never actually stored as 60000/1001 fields per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1850 second. For video that was originally 60000/1001, each pair of fields is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1851 combined to form a frame, resulting in 30000/1001 frames per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1852 second. Hardware DVD players then read a flag embedded in the video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1853 stream to determine whether the odd- or even-numbered lines should
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1854 form the first field.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1855 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1856
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1857 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1858 Usually, 24000/1001 frames per second content stays as it is when
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1859 encoded for a DVD, and the DVD player must perform telecining
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1860 on-the-fly. Sometimes, however, the video is telecined
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1861 <emphasis>before</emphasis> being stored on the DVD; even though it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1862 was originally 24000/1001 frames per second, it becomes 60000/1001 fields per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1863 second. When it is stored on the DVD, pairs of fields are combined to form
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1864 30000/1001 frames per second.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1865 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1866
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1867 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1868 When looking at individual frames formed from 60000/1001 fields per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1869 second video, telecined or otherwise, interlacing is clearly visible
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1870 wherever there is any motion, because one field (say, the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1871 even-numbered lines) represents a moment in time 1/(60000/1001)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1872 seconds later than the other. Playing interlaced video on a computer
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1873 looks ugly both because the monitor is higher resolution and because
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1874 the video is shown frame-after-frame instead of field-after-field.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1875 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1876
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1877 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1878 <title>Notes:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1879 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1880 This section only applies to NTSC DVDs, and not PAL.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1881 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1882 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1883 The example <application>MEncoder</application> lines throughout the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1884 document are <emphasis role="bold">not</emphasis> intended for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1885 actual use. They are simply the bare minimum required to encode the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1886 pertaining video category. How to make good DVD rips or fine-tune
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1887 <systemitem class="library">libavcodec</systemitem> for maximal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1888 quality is not within the scope of this document.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1889 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1890 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1891 There are a couple footnotes specific to this guide, linked like this:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1892 <link linkend="menc-feat-telecine-footnotes">[1]</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1893 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1894 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1895 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1896
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1897 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1898
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1899 <sect2 id="menc-feat-telecine-ident">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1900 <title>How to tell what type of video you have</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1901
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1902 <sect3 id="menc-feat-telecine-ident-progressive">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1903 <title>Progressive</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1904
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1905 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1906 Progressive video was originally filmed at 24000/1001 fps, and stored
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1907 on the DVD without alteration.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1908 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1909
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1910 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1911 When you play a progressive DVD in <application>MPlayer</application>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1912 <application>MPlayer</application> will print the following line as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1913 soon as the movie begins to play:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1914 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1915 demux_mpg: 24000/1001 fps progressive NTSC content detected, switching framerate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1916 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1917 From this point forward, demux_mpg should never say it finds
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1918 "30000/1001 fps NTSC content."
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1919 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1920
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1921 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1922 When you watch progressive video, you should never see any
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1923 interlacing. Beware, however, because sometimes there is a tiny bit
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1924 of telecine mixed in where you would not expect. I have encountered TV
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1925 show DVDs that have one second of telecine at every scene change, or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1926 at seemingly random places. I once watched a DVD that had a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1927 progressive first half, and the second half was telecined. If you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1928 want to be <emphasis>really</emphasis> thorough, you can scan the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1929 entire movie:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1930 <screen>mplayer dvd://1 -nosound -vo null -benchmark</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1931 Using <option>-benchmark</option> makes
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1932 <application>MPlayer</application> play the movie as quickly as it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1933 possibly can; still, depending on your hardware, it can take a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1934 while. Every time demux_mpg reports a framerate change, the line
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1935 immediately above will show you the time at which the change
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1936 occurred.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1937 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1938
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1939 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1940 Sometimes progressive video on DVDs is referred to as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1941 "soft-telecine" because it is intended to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1942 be telecined by the DVD player.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1943 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1944 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1945
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1946
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1947 <sect3 id="menc-feat-telecine-ident-telecined">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1948 <title>Telecined</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1949
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1950 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1951 Telecined video was originally filmed at 24000/1001, but was telecined
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1952 <emphasis>before</emphasis> it was written to the DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1953 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1954
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1955 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1956 <application>MPlayer</application> does not (ever) report any
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1957 framerate changes when it plays telecined video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1958 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1959
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1960 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1961 Watching a telecined video, you will see interlacing artifacts that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1962 seem to "blink": they repeatedly appear and disappear.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1963 You can look closely at this by
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1964 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1965 <listitem><screen>mplayer dvd://1</screen></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1966 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1967 Seek to a part with motion.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1968 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1969 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1970 Use the <keycap>.</keycap> key to step forward one frame at a time.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1971 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1972 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1973 Look at the pattern of interlaced-looking and progressive-looking
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1974 frames. If the pattern you see is PPPII,PPPII,PPPII,... then the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1975 video is telecined. If you see some other pattern, then the video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1976 may have been telecined using some non-standard method;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1977 <application>MEncoder</application> cannot losslessly convert
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1978 non-standard telecine to progressive. If you do not see any
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1979 pattern at all, then it is most likely interlaced.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1980 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1981 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1982 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1983
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1984 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1985 Sometimes telecined video on DVDs is referred to as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1986 "hard-telecine". Since hard-telecine is already 60000/1001 fields
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1987 per second, the DVD player plays the video without any manipulation.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1988 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1989
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1990 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1991 Another way to tell if your source is telecined or not is to play
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1992 the source with the <option>-vf pullup</option> and <option>-v</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1993 command line options to see how <option>pullup</option> matches frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1994 If the source is telecined, you should see on the console a 3:2 pattern
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1995 with <systemitem>0+.1.+2</systemitem> and <systemitem>0++1</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1996 alternating.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1997 This technique has the advantage that you do not need to watch the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1998 source to identify it, which could be useful if you wish to automate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
1999 the encoding procedure, or to carry out said procedure remotely via
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2000 a slow connection.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2001 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2002 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2003
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2004
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2005 <sect3 id="menc-feat-telecine-ident-interlaced">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2006 <title>Interlaced</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2007
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2008 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2009 Interlaced video was originally filmed at 60000/1001 fields per second,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2010 and stored on the DVD as 30000/1001 frames per second. The interlacing effect
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2011 (often called "combing") is a result of combining pairs of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2012 fields into frames. Each field is supposed to be 1/(60000/1001) seconds apart,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2013 and when they are displayed simultaneously the difference is apparent.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2014 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2015
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2016 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2017 As with telecined video, <application>MPlayer</application> should
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2018 not ever report any framerate changes when playing interlaced content.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2019 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2020
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2021 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2022 When you view an interlaced video closely by frame-stepping with the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2023 <keycap>.</keycap> key, you will see that every single frame is interlaced.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2024 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2025 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2026
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2027
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2028 <sect3 id="menc-feat-telecine-ident-mixedpt">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2029 <title>Mixed progressive and telecine</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2030
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2031 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2032 All of a "mixed progressive and telecine" video was originally
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2033 24000/1001 frames per second, but some parts of it ended up being telecined.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2034 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2035
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2036 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2037 When <application>MPlayer</application> plays this category, it will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2038 (often repeatedly) switch back and forth between "30000/1001 fps NTSC"
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2039 and "24000/1001 fps progressive NTSC". Watch the bottom of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2040 <application>MPlayer</application>'s output to see these messages.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2041 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2042
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2043 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2044 You should check the "30000/1001 fps NTSC" sections to make sure
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2045 they are actually telecine, and not just interlaced.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2046 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2047 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2048
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2049
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2050 <sect3 id="menc-feat-telecine-ident-mixedpi">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2051 <title>Mixed progressive and interlaced</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2052
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2053 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2054 In "mixed progressive and interlaced" content, progressive
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2055 and interlaced video have been spliced together.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2056 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2057
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2058 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2059 This category looks just like "mixed progressive and telecine",
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2060 until you examine the 30000/1001 fps sections and see that they do not have the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2061 telecine pattern.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2062 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2063 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2064 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2065
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2066 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2067
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2068 <sect2 id="menc-feat-telecine-encode">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2069 <title>How to encode each category</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2070 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2071 As I mentioned in the beginning, example <application>MEncoder</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2072 lines below are <emphasis role="bold">not</emphasis> meant to actually be used;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2073 they only demonstrate the minimum parameters to properly encode each category.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2074 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2075
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2076
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2077 <sect3 id="menc-feat-telecine-encode-progressive">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2078 <title>Progressive</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2079 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2080 Progressive video requires no special filtering to encode. The only
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2081 parameter you need to be sure to use is <option>-ofps 24000/1001</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2082 Otherwise, <application>MEncoder</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2083 will try to encode at 30000/1001 fps and will duplicate frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2084 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2085
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2086 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2087 <screen>mencoder dvd://1 -oac copy -ovc lavc -ofps 24000/1001</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2088 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2089
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2090 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2091 It is often the case, however, that a video that looks progressive
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2092 actually has very short parts of telecine mixed in. Unless you are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2093 sure, it is safest to treat the video as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2094 <link linkend="menc-feat-telecine-encode-mixedpt">mixed progressive and telecine</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2095 The performance loss is small
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2096 <link linkend="menc-feat-telecine-footnotes">[3]</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2097 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2098 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2099
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2100
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2101 <sect3 id="menc-feat-telecine-encode-telecined">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2102 <title>Telecined</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2103
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2104 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2105 Telecine can be reversed to retrieve the original 24000/1001 content,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2106 using a process called inverse-telecine.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2107 <application>MPlayer</application> contains several filters to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2108 accomplish this; the best filter, <option>pullup</option>, is described
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2109 in the <link linkend="menc-feat-telecine-encode-mixedpt">mixed
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2110 progressive and telecine</link> section.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2111 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2112 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2113
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2114
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2115 <sect3 id="menc-feat-telecine-encode-interlaced">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2116 <title>Interlaced</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2117
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2118 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2119 For most practical cases it is not possible to retrieve a complete
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2120 progressive video from interlaced content. The only way to do so
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2121 without losing half of the vertical resolution is to double the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2122 framerate and try to "guess" what ought to make up the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2123 corresponding lines for each field (this has drawbacks - see method 3).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2124 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2125
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2126 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2127 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2128 Encode the video in interlaced form. Normally, interlacing wreaks
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2129 havoc with the encoder's ability to compress well, but
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2130 <systemitem class="library">libavcodec</systemitem> has two
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2131 parameters specifically for dealing with storing interlaced video a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2132 bit better: <option> ildct</option> and <option>ilme</option>. Also,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2133 using <option>mbd=2</option> is strongly recommended
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2134 <link linkend="menc-feat-telecine-footnotes">[2] </link> because it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2135 will encode macroblocks as non-interlaced in places where there is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2136 no motion. Note that <option>-ofps</option> is NOT needed here.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2137 <screen>mencoder dvd://1 -oac copy -ovc lavc -lavcopts ildct:ilme:mbd=2</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2138 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2139 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2140 Use a deinterlacing filter before encoding. There are several of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2141 these filters available to choose from, each with its own advantages
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2142 and disadvantages. Consult <option>mplayer -pphelp</option> and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2143 <option>mplayer -vf help</option> to see what is available
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2144 (grep for "deint"), read Michael's Niedermayer
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2145 <ulink url="http://guru.multimedia.cx/deinterlacing-filters/">Deinterlacing filters comparison</ulink>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2146 and search the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2147 <ulink url="http://www.mplayerhq.hu/design7/mailing_lists.html">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2148 MPlayer mailing lists</ulink> to find many discussions about the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2149 various filters.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2150 Again, the framerate is not changing, so no
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2151 <option>-ofps</option>. Also, deinterlacing should be done after
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2152 cropping <link linkend="menc-feat-telecine-footnotes">[1]</link> and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2153 before scaling.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2154 <screen>mencoder dvd://1 -oac copy -vf yadif -ovc lavc</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2155 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2156 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2157 Unfortunately, this option is buggy with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2158 <application>MEncoder</application>; it ought to work well with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2159 <application>MEncoder G2</application>, but that is not here yet. You
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2160 might experience crahes. Anyway, the purpose of <option> -vf
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2161 tfields</option> is to create a full frame out of each field, which
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2162 makes the framerate 60000/1001. The advantage of this approach is that no
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2163 data is ever lost; however, since each frame comes from only one
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2164 field, the missing lines have to be interpolated somehow. There are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2165 no very good methods of generating the missing data, and so the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2166 result will look a bit similar to when using some deinterlacing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2167 filters. Generating the missing lines creates other issues, as well,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2168 simply because the amount of data doubles. So, higher encoding
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2169 bitrates are required to maintain quality, and more CPU power is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2170 used for both encoding and decoding. tfields has several different
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2171 options for how to create the missing lines of each frame. If you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2172 use this method, then Reference the manual, and chose whichever
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2173 option looks best for your material. Note that when using
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2174 <option>tfields</option> you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2175 <emphasis role="bold">have to</emphasis> specify both
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2176 <option>-fps</option> and <option>-ofps</option> to be twice the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2177 framerate of your original source.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2178 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2179 mencoder dvd://1 -oac copy -vf tfields=2 -ovc lavc \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2180 -fps 60000/1001 -ofps 60000/1001<!--
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2181 --></screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2182 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2183 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2184 If you plan on downscaling dramatically, you can extract and encode
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2185 only one of the two fields. Of course, you will lose half the vertical
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2186 resolution, but if you plan on downscaling to at most 1/2 of the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2187 original, the loss will not matter much. The result will be a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2188 progressive 30000/1001 frames per second file. The procedure is to use
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2189 <option>-vf field</option>, then crop
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2190 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2191 appropriately. Remember that you will have to adjust the scale to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2192 compensate for the vertical resolution being halved.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2193 <screen>mencoder dvd://1 -oac copy -vf field=0 -ovc lavc</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2194 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2195 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2196 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2197
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2198
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2199 <sect3 id="menc-feat-telecine-encode-mixedpt">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2200 <title>Mixed progressive and telecine</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2201
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2202 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2203 In order to turn mixed progressive and telecine video into entirely
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2204 progressive video, the telecined parts have to be
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2205 inverse-telecined. There are three ways to accomplish this,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2206 described below. Note that you should
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2207 <emphasis role="bold">always</emphasis> inverse-telecine before any
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2208 rescaling; unless you really know what you are doing,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2209 inverse-telecine before cropping, too
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2210 <link linkend="menc-feat-telecine-footnotes">[1]</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2211 <option>-ofps 24000/1001</option> is needed here because the output video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2212 will be 24000/1001 frames per second.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2213 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2214
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2215 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2216 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2217 <option>-vf pullup</option> is designed to inverse-telecine
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2218 telecined material while leaving progressive data alone. In order to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2219 work properly, <option>pullup</option> <emphasis role="bold">must</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2220 be followed by the <option>softskip</option> filter or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2221 else <application>MEncoder</application> will crash.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2222 <option>pullup</option> is, however, the cleanest and most
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2223 accurate method available for encoding both telecine and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2224 "mixed progressive and telecine".
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2225 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2226 mencoder dvd://1 -oac copy -vf pullup,softskip
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2227 -ovc lavc -ofps 24000/1001<!--
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2228 --></screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2229 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2230 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2231 An older method
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2232 is to, rather than inverse-telecine the telecined parts, telecine
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2233 the non-telecined parts and then inverse-telecine the whole
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2234 video. Sound confusing? softpulldown is a filter that goes through
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2235 a video and makes the entire file telecined. If we follow
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2236 softpulldown with either <option>detc</option> or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2237 <option>ivtc</option>, the final result will be entirely
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2238 progressive. <option>-ofps 24000/1001</option> is needed.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2239 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2240 mencoder dvd://1 -oac copy -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2241 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2242 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2243
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2244 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2245 I have not used <option>-vf filmdint</option> myself, but here is what
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2246 D Richard Felker III has to say:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2247
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2248 <blockquote><para>It is OK, but IMO it tries to deinterlace rather
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2249 than doing inverse telecine too often (much like settop DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2250 players &amp; progressive TVs) which gives ugly flickering and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2251 other artifacts. If you are going to use it, you at least need to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2252 spend some time tuning the options and watching the output first
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2253 to make sure it is not messing up.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2254 </para></blockquote>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2255 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2256 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2257 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2258
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2259
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2260 <sect3 id="menc-feat-telecine-encode-mixedpi">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2261 <title>Mixed progressive and interlaced</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2262
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2263 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2264 There are two options for dealing with this category, each of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2265 which is a compromise. You should decide based on the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2266 duration/location of each type.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2267 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2268
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2269 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2270 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2271 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2272 Treat it as progressive. The interlaced parts will look interlaced,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2273 and some of the interlaced fields will have to be dropped, resulting
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2274 in a bit of uneven jumpiness. You can use a postprocessing filter if
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2275 you want to, but it may slightly degrade the progressive parts.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2276 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2277
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2278 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2279 This option should definitely not be used if you want to eventually
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2280 display the video on an interlaced device (with a TV card, for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2281 example). If you have interlaced frames in a 24000/1001 frames per
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2282 second video, they will be telecined along with the progressive
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2283 frames. Half of the interlaced "frames" will be displayed for three
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2284 fields' duration (3/(60000/1001) seconds), resulting in a flicking
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2285 "jump back in time" effect that looks quite bad. If you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2286 even attempt this, you <emphasis role="bold">must</emphasis> use a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2287 deinterlacing filter like <option>lb</option> or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2288 <option>l5</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2289 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2290
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2291 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2292 It may also be a bad idea for progressive display, too. It will drop
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2293 pairs of consecutive interlaced fields, resulting in a discontinuity
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2294 that can be more visible than with the second method, which shows
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2295 some progressive frames twice. 30000/1001 frames per second interlaced
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2296 video is already a bit choppy because it really should be shown at
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2297 60000/1001 fields per second, so the duplicate frames do not stand out as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2298 much.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2299 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2300
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2301 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2302 Either way, it is best to consider your content and how you intend to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2303 display it. If your video is 90% progressive and you never intend to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2304 show it on a TV, you should favor a progressive approach. If it is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2305 only half progressive, you probably want to encode it as if it is all
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2306 interlaced.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2307 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2308 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2309
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2310 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2311 Treat it as interlaced. Some frames of the progressive parts will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2312 need to be duplicated, resulting in uneven jumpiness. Again,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2313 deinterlacing filters may slightly degrade the progressive parts.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2314 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2315 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2316 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2317 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2318
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2319 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2320
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2321 <sect2 id="menc-feat-telecine-footnotes">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2322 <title>Footnotes</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2323
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2324 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2325 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2326 <formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2327 <title>About cropping:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2328 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2329 Video data on DVDs are stored in a format called YUV 4:2:0. In YUV
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2330 video, luma ("brightness") and chroma ("color")
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2331 are stored separately. Because the human eye is somewhat less
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2332 sensitive to color than it is to brightness, in a YUV 4:2:0 picture
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2333 there is only one chroma pixel for every four luma pixels. In a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2334 progressive picture, each square of four luma pixels (two on each
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2335 side) has one common chroma pixel. You must crop progressive YUV
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2336 4:2:0 to even resolutions, and use even offsets. For example,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2337 <option>crop=716:380:2:26</option> is OK but
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2338 <option>crop=716:380:3:26 </option> is not.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2339 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2340 </formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2341
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2342 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2343 When you are dealing with interlaced YUV 4:2:0, the situation is a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2344 bit more complicated. Instead of every four luma pixels in the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2345 <emphasis>frame</emphasis> sharing a chroma pixel, every four luma
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2346 pixels in each <emphasis> field</emphasis> share a chroma
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2347 pixel. When fields are interlaced to form a frame, each scanline is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2348 one pixel high. Now, instead of all four luma pixels being in a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2349 square, there are two pixels side-by-side, and the other two pixels
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2350 are side-by-side two scanlines down. The two luma pixels in the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2351 intermediate scanline are from the other field, and so share a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2352 different chroma pixel with two luma pixels two scanlines away. All
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2353 this confusion makes it necessary to have vertical crop dimensions
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2354 and offsets be multiples of four. Horizontal can stay even.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2355 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2356
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2357 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2358 For telecined video, I recommend that cropping take place after
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2359 inverse telecining. Once the video is progressive you only need to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2360 crop by even numbers. If you really want to gain the slight speedup
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2361 that cropping first may offer, you must crop vertically by multiples
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2362 of four or else the inverse-telecine filter will not have proper data.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2363 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2364
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2365 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2366 For interlaced (not telecined) video, you must always crop
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2367 vertically by multiples of four unless you use <option>-vf
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2368 field</option> before cropping.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2369 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2370 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2371
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2372 <listitem><formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2373 <title>About encoding parameters and quality:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2374 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2375 Just because I recommend <option>mbd=2</option> here does not mean it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2376 should not be used elsewhere. Along with <option>trell</option>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2377 <option>mbd=2</option> is one of the two
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2378 <systemitem class="library">libavcodec</systemitem> options that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2379 increases quality the most, and you should always use at least those
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2380 two unless the drop in encoding speed is prohibitive (e.g. realtime
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2381 encoding). There are many other options to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2382 <systemitem class="library">libavcodec</systemitem> that increase
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2383 encoding quality (and decrease encoding speed) but that is beyond
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2384 the scope of this document.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2385 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2386 </formalpara></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2387
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2388 <listitem><formalpara>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2389 <title>About the performance of pullup:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2390 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2391 It is safe to use <option>pullup</option> (along with <option>softskip
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2392 </option>) on progressive video, and is usually a good idea unless
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2393 the source has been definitively verified to be entirely progressive.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2394 The performace loss is small for most cases. On a bare-minimum encode,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2395 <option>pullup</option> causes <application>MEncoder</application> to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2396 be 50% slower. Adding sound processing and advanced <option>lavcopts
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2397 </option> overshadows that difference, bringing the performance
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2398 decrease of using <option>pullup</option> down to 2%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2399 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2400 </formalpara></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2401 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2402 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2403 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2404
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2405
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2406 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2407
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2408
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2409 <sect1 id="menc-feat-enc-libavcodec">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2410 <title>Encoding with the <systemitem class="library">libavcodec</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2411 codec family</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2412
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2413 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2414 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2415 provides simple encoding to a lot of interesting video and audio formats.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2416 You can encode to the following codecs (more or less up to date):
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2417 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2418
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2419 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2420
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2421 <sect2 id="menc-feat-enc-libavcodec-video-codecs">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2422 <title><systemitem class="library">libavcodec</systemitem>'s
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2423 video codecs</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2424
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2425 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2426 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2427 <tgroup cols="2">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2428 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2429 <row><entry>Video codec name</entry><entry>Description</entry></row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2430 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2431 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2432 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2433 <entry>mjpeg</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2434 <entry>Motion JPEG</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2435 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2436 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2437 <entry>ljpeg</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2438 <entry>lossless JPEG</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2439 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2440 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2441 <entry>jpegls</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2442 <entry>JPEG LS</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2443 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2444 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2445 <entry>targa</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2446 <entry>Targa image</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2447 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2448 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2449 <entry>gif</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2450 <entry>GIF image</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2451 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2452 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2453 <entry>bmp</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2454 <entry>BMP image</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2455 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2456 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2457 <entry>png</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2458 <entry>PNG image</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2459 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2460 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2461 <entry>h261</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2462 <entry>H.261</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2463 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2464 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2465 <entry>h263</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2466 <entry>H.263 </entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2467 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2468 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2469 <entry>h263p</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2470 <entry>H.263+</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2471 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2472 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2473 <entry>mpeg4</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2474 <entry>ISO standard MPEG-4 (DivX, Xvid compatible)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2475 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2476 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2477 <entry>msmpeg4</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2478 <entry>pre-standard MPEG-4 variant by MS, v3 (AKA DivX3)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2479 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2480 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2481 <entry>msmpeg4v2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2482 <entry>pre-standard MPEG-4 by MS, v2 (used in old ASF files)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2483 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2484 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2485 <entry>wmv1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2486 <entry>Windows Media Video, version 1 (AKA WMV7)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2487 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2488 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2489 <entry>wmv2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2490 <entry>Windows Media Video, version 2 (AKA WMV8)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2491 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2492 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2493 <entry>rv10</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2494 <entry>RealVideo 1.0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2495 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2496 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2497 <entry>rv20</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2498 <entry>RealVideo 2.0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2499 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2500 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2501 <entry>mpeg1video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2502 <entry>MPEG-1 video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2503 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2504 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2505 <entry>mpeg2video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2506 <entry>MPEG-2 video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2507 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2508 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2509 <entry>huffyuv</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2510 <entry>lossless compression</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2511 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2512 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2513 <entry>ffvhuff</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2514 <entry>FFmpeg modified huffyuv lossless</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2515 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2516 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2517 <entry>asv1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2518 <entry>ASUS Video v1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2519 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2520 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2521 <entry>asv2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2522 <entry>ASUS Video v2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2523 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2524 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2525 <entry>ffv1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2526 <entry>FFmpeg's lossless video codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2527 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2528 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2529 <entry>svq1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2530 <entry>Sorenson video 1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2531 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2532 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2533 <entry>flv</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2534 <entry>Sorenson H.263 used in Flash Video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2535 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2536 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2537 <entry>flashsv</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2538 <entry>Flash Screen Video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2539 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2540 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2541 <entry>dvvideo</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2542 <entry>Sony Digital Video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2543 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2544 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2545 <entry>snow</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2546 <entry>FFmpeg's experimental wavelet-based codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2547 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2548 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2549 <entry>zbmv</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2550 <entry>Zip Blocks Motion Video</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2551 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2552 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2553 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2554 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2555
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2556 The first column contains the codec names that should be passed after the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2557 <literal>vcodec</literal> config,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2558 like: <option>-lavcopts vcodec=msmpeg4</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2559 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2560
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2561 <informalexample><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2562 An example with MJPEG compression:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2563 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2564 mencoder dvd://2 -o <replaceable>title2.avi</replaceable> -ovc lavc -lavcopts vcodec=mjpeg -oac copy
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2565 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2566 </para></informalexample>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2567 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2568
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2569 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2570
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2571 <sect2 id="menc-feat-enc-libavcodec-audio-codecs">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2572 <title><systemitem class="library">libavcodec</systemitem>'s
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2573 audio codecs</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2574
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2575 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2576 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2577 <tgroup cols="2">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2578 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2579 <row><entry>Audio codec name</entry><entry>Description</entry></row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2580 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2581 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2582 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2583 <entry>mp2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2584 <entry>MPEG Layer 2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2585 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2586 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2587 <entry>ac3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2588 <entry>AC-3, AKA Dolby Digital</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2589 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2590 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2591 <entry>adpcm_ima_wav</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2592 <entry>IMA adaptive PCM (4 bits per sample, 4:1 compression)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2593 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2594 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2595 <entry>sonic</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2596 <entry>experimental FFmpeg lossy codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2597 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2598 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2599 <entry>sonicls</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2600 <entry>experimental FFmpeg lossless codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2601 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2602 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2603 <entry>vorbis</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2604 <entry>Xiph Ogg Vorbis codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2605 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2606 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2607 <entry>wmav1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2608 <entry>Windows Media Audio v1 codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2609 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2610 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2611 <entry>wmav2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2612 <entry>Windows Media Audio v2 codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2613 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2614 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2615 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2616 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2617
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2618 The first column contains the codec names that should be passed after the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2619 <literal>acodec</literal> option, like: <option>-lavcopts acodec=ac3</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2620 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2621
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2622 <informalexample><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2623 An example with AC-3 compression:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2624 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2625 mencoder dvd://2 -o <replaceable>title2.avi</replaceable> -oac lavc -lavcopts acodec=ac3 -ovc copy
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2626 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2627 </para></informalexample>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2628
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2629 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2630 Contrary to <systemitem class="library">libavcodec</systemitem>'s video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2631 codecs, its audio codecs do not make a wise usage of the bits they are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2632 given as they lack some minimal psychoacoustic model (if at all)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2633 which most other codec implementations feature.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2634 However, note that all these audio codecs are very fast and work
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2635 out-of-the-box everywhere <application>MEncoder</application> has been
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2636 compiled with <systemitem class="library">libavcodec</systemitem> (which
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2637 is the case most of time), and do not depend on external libraries.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2638 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2639 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2640
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2641 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2642
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2643 <sect2 id="menc-feat-dvd-mpeg4-lavc-encoding-options">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2644 <title>Encoding options of libavcodec</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2645
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2646 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2647 Ideally, you would probably want to be able to just tell the encoder to switch
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2648 into "high quality" mode and move on.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2649 That would probably be nice, but unfortunately hard to implement as different
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2650 encoding options yield different quality results depending on the source
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2651 material. That is because compression depends on the visual properties of the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2652 video in question.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2653 For example, anime and live action have very different properties and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2654 thus require different options to obtain optimum encoding.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2655 The good news is that some options should never be left out, like
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2656 <option>mbd=2</option>, <option>trell</option>, and <option>v4mv</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2657 See below for a detailed description of common encoding options.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2658 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2659
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2660 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2661 <title>Options to adjust:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2662 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2663 <emphasis role="bold">vmax_b_frames</emphasis>: 1 or 2 is good, depending on
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2664 the movie.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2665 Note that if you need to have your encode be decodable by DivX5, you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2666 need to activate closed GOP support, using
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2667 <systemitem class="library">libavcodec</systemitem>'s <option>cgop</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2668 option, but you need to deactivate scene detection, which
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2669 is not a good idea as it will hurt encode efficiency a bit.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2670 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2671 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2672 <emphasis role="bold">vb_strategy=1</emphasis>: helps in high-motion scenes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2673 On some videos, vmax_b_frames may hurt quality, but vmax_b_frames=2 along
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2674 with vb_strategy=1 helps.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2675 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2676 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2677 <emphasis role="bold">dia</emphasis>: motion search range. Bigger is better
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2678 and slower.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2679 Negative values are a completely different scale.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2680 Good values are -1 for a fast encode, or 2-4 for slower.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2681 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2682 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2683 <emphasis role="bold">predia</emphasis>: motion search pre-pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2684 Not as important as dia. Good values are 1 (default) to 4. Requires preme=2
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2685 to really be useful.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2686 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2687 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2688 <emphasis role="bold">cmp, subcmp, precmp</emphasis>: Comparison function for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2689 motion estimation.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2690 Experiment with values of 0 (default), 2 (hadamard), 3 (dct), and 6 (rate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2691 distortion).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2692 0 is fastest, and sufficient for precmp.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2693 For cmp and subcmp, 2 is good for anime, and 3 is good for live action.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2694 6 may or may not be slightly better, but is slow.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2695 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2696 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2697 <emphasis role="bold">last_pred</emphasis>: Number of motion predictors to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2698 take from the previous frame.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2699 1-3 or so help at little speed cost.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2700 Higher values are slow for no extra gain.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2701 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2702 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2703 <emphasis role="bold">cbp, mv0</emphasis>: Controls the selection of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2704 macroblocks. Small speed cost for small quality gain.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2705 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2706 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2707 <emphasis role="bold">qprd</emphasis>: adaptive quantization based on the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2708 macroblock's complexity.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2709 May help or hurt depending on the video and other options.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2710 This can cause artifacts unless you set vqmax to some reasonably small value
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2711 (6 is good, maybe as low as 4); vqmin=1 should also help.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2712 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2713 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2714 <emphasis role="bold">qns</emphasis>: very slow, especially when combined
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2715 with qprd.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2716 This option will make the encoder minimize noise due to compression
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2717 artifacts instead of making the encoded video strictly match the source.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2718 Do not use this unless you have already tweaked everything else as far as it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2719 will go and the results still are not good enough.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2720 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2721 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2722 <emphasis role="bold">vqcomp</emphasis>: Tweak ratecontrol.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2723 What values are good depends on the movie.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2724 You can safely leave this alone if you want.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2725 Reducing vqcomp puts more bits on low-complexity scenes, increasing it puts
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2726 them on high-complexity scenes (default: 0.5, range: 0-1. recommended range:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2727 0.5-0.7).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2728 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2729 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2730 <emphasis role="bold">vlelim, vcelim</emphasis>: Sets the single coefficient
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2731 elimination threshold for luminance and chroma planes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2732 These are encoded separately in all MPEG-like algorithms.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2733 The idea behind these options is to use some good heuristics to determine
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2734 when the change in a block is less than the threshold you specify, and in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2735 such a case, to just encode the block as "no change".
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2736 This saves bits and perhaps speeds up encoding. vlelim=-4 and vcelim=9
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2737 seem to be good for live movies, but seem not to help with anime;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2738 when encoding animation, you should probably leave them unchanged.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2739 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2740 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2741 <emphasis role="bold">qpel</emphasis>: Quarter pixel motion estimation.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2742 MPEG-4 uses half pixel precision for its motion search by default,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2743 therefore this option comes with an overhead as more information will be
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2744 stored in the encoded file.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2745 The compression gain/loss depends on the movie, but it is usually not very
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2746 effective on anime.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2747 qpel always incurs a significant cost in CPU decode time (+25% in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2748 practice).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2749 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2750 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2751 <emphasis role="bold">psnr</emphasis>: does not affect the actual encoding,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2752 but writes a log file giving the type/size/quality of each frame, and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2753 prints a summary of PSNR (Peak Signal to Noise Ratio) at the end.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2754 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2755 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2756
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2757 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2758 <title>Options not recommended to play with:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2759 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2760 <emphasis role="bold">vme</emphasis>: The default is best.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2761 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2762 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2763 <emphasis role="bold">lumi_mask, dark_mask</emphasis>: Psychovisual adaptive
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2764 quantization.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2765 You do not want to play with those options if you care about quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2766 Reasonable values may be effective in your case, but be warned this is very
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2767 subjective.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2768 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2769 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2770 <emphasis role="bold">scplx_mask</emphasis>: Tries to prevent blocky
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2771 artifacts, but postprocessing is better.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2772 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2773 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2774 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2775
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2776 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2777
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2778 <sect2 id="menc-feat-mpeg4-lavc-example-settings">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2779 <title>Encoding setting examples</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2780
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2781 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2782 The following settings are examples of different encoding
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2783 option combinations that affect the speed vs quality tradeoff
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2784 at the same target bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2785 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2786
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2787 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2788 All the encoding settings were tested on a 720x448 @30000/1001 fps
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2789 video sample, the target bitrate was 900kbps, and the machine was an
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2790 AMD-64 3400+ at 2400 MHz in 64 bits mode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2791 Each encoding setting features the measured encoding speed (in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2792 frames per second) and the PSNR loss (in dB) compared to the "very
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2793 high quality" setting.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2794 Please understand that depending on your source, your machine type
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2795 and development advancements, you may get very different results.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2796 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2797
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2798 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2799 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2800 <tgroup cols="4">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2801 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2802 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2803 <entry>Description</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2804 <entry>Encoding options</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2805 <entry>speed (in fps)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2806 <entry>Relative PSNR loss (in dB)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2807 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2808 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2809 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2810 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2811 <entry>Very high quality</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2812 <entry><option>vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2813 <entry>6fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2814 <entry>0dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2815 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2816 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2817 <entry>High quality</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2818 <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2819 <entry>15fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2820 <entry>-0.5dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2821 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2822 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2823 <entry>Fast</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2824 <entry><option>vcodec=mpeg4:mbd=2:trell:v4mv:turbo</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2825 <entry>42fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2826 <entry>-0.74dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2827 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2828 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2829 <entry>Realtime</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2830 <entry><option>vcodec=mpeg4:mbd=2:turbo</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2831 <entry>54fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2832 <entry>-1.21dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2833 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2834 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2835 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2836 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2837 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2838 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2839
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2840 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2841
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2842 <sect2 id="custommatrices">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2843 <title>Custom inter/intra matrices</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2844
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2845 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2846 With this feature of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2847 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2848 you are able to set custom inter (I-frames/keyframes) and intra
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2849 (P-frames/predicted frames) matrices. It is supported by many of the codecs:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2850 <systemitem>mpeg1video</systemitem> and <systemitem>mpeg2video</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2851 are reported as working.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2852 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2853
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2854 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2855 A typical usage of this feature is to set the matrices preferred by the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2856 <ulink url="http://www.kvcd.net/">KVCD</ulink> specifications.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2857 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2858
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2859 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2860 The <emphasis role="bold">KVCD "Notch" Quantization Matrix:</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2861 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2862
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2863 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2864 Intra:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2865 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2866 8 9 12 22 26 27 29 34
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2867 9 10 14 26 27 29 34 37
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2868 12 14 18 27 29 34 37 38
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2869 22 26 27 31 36 37 38 40
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2870 26 27 29 36 39 38 40 48
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2871 27 29 34 37 38 40 48 58
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2872 29 34 37 38 40 48 58 69
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2873 34 37 38 40 48 58 69 79
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2874 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2875
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2876 Inter:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2877 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2878 16 18 20 22 24 26 28 30
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2879 18 20 22 24 26 28 30 32
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2880 20 22 24 26 28 30 32 34
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2881 22 24 26 30 32 32 34 36
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2882 24 26 28 32 34 34 36 38
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2883 26 28 30 32 34 36 38 40
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2884 28 30 32 34 36 38 42 42
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2885 30 32 34 36 38 40 42 44
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2886 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2887 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2888
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2889 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2890 Usage:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2891 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2892 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.avi</replaceable> -oac copy -ovc lavc \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2893 -lavcopts inter_matrix=...:intra_matrix=...
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2894 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2895 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2896
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2897 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2898 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2899 mencoder <replaceable>input.avi</replaceable> -ovc lavc -lavcopts \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2900 vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2901 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,\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2902 29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2903 :inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2904 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,\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2905 36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44 -oac copy -o svcd.mpg
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2906 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2907 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2908 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2909
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2910 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2911
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2912 <sect2 id="menc-feat-dvd-mpeg4-example">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2913 <title>Example</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2914
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2915 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2916 So, you have just bought your shiny new copy of Harry Potter and the Chamber
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2917 of Secrets (widescreen edition, of course), and you want to rip this DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2918 so that you can add it to your Home Theatre PC. This is a region 1 DVD,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2919 so it is NTSC. The example below will still apply to PAL, except you will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2920 omit <option>-ofps 24000/1001</option> (because the output framerate is the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2921 same as the input framerate), and of course the crop dimensions will be
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2922 different.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2923 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2924
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2925 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2926 After running <option>mplayer dvd://1</option>, we follow the process
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2927 detailed in the section <link linkend="menc-feat-telecine">How to deal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2928 with telecine and interlacing in NTSC DVDs</link> and discover that it is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2929 24000/1001 fps progressive video, which means that we need not use an inverse
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2930 telecine filter, such as <option>pullup</option> or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2931 <option>filmdint</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2932 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2933
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2934 <para id="menc-feat-dvd-mpeg4-example-crop">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2935 Next, we want to determine the appropriate crop rectangle, so we use the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2936 cropdetect filter:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2937 <screen>mplayer dvd://1 -vf cropdetect</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2938 Make sure you seek to a fully filled frame (such as a bright scene,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2939 past the opening credits and logos), and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2940 you will see in <application>MPlayer</application>'s console output:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2941 <screen>crop area: X: 0..719 Y: 57..419 (-vf crop=720:362:0:58)</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2942 We then play the movie back with this filter to test its correctness:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2943 <screen>mplayer dvd://1 -vf crop=720:362:0:58</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2944 And we see that it looks perfectly fine. Next, we ensure the width and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2945 height are a multiple of 16. The width is fine, however the height is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2946 not. Since we did not fail 7th grade math, we know that the nearest
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2947 multiple of 16 lower than 362 is 352.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2948 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2949
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2950 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2951 We could just use <option>crop=720:352:0:58</option>, but it would be nice
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2952 to take a little off the top and a little off the bottom so that we
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2953 retain the center. We have shrunk the height by 10 pixels, but we do not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2954 want to increase the y-offset by 5-pixels since that is an odd number and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2955 will adversely affect quality. Instead, we will increase the y-offset by
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2956 4 pixels:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2957 <screen>mplayer dvd://1 -vf crop=720:352:0:62</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2958 Another reason to shave pixels from both the top and the bottom is that we
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2959 ensure we have eliminated any half-black pixels if they exist. Note that if
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2960 your video is telecined, make sure the <option>pullup</option> filter (or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2961 whichever inverse telecine filter you decide to use) appears in the filter
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2962 chain before you crop. If it is interlaced, deinterlace before cropping.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2963 (If you choose to preserve the interlaced video, then make sure your
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2964 vertical crop offset is a multiple of 4.)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2965 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2966
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2967 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2968 If you are really concerned about losing those 10 pixels, you might
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2969 prefer instead to scale the dimensions down to the nearest multiple of 16.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2970 The filter chain would look like:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2971 <screen>-vf crop=720:362:0:58,scale=720:352</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2972 Scaling the video down like this will mean that some small amount of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2973 detail is lost, though it probably will not be perceptible. Scaling up will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2974 result in lower quality (unless you increase the bitrate). Cropping
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2975 discards those pixels altogether. It is a tradeoff that you will want to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2976 consider for each circumstance. For example, if the DVD video was made
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2977 for television, you might want to avoid vertical scaling, since the line
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2978 sampling corresponds to the way the content was originally recorded.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2979 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2980
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2981 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2982 On inspection, we see that our movie has a fair bit of action and high
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2983 amounts of detail, so we pick 2400Kbit for our bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2984 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2985
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2986 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2987 We are now ready to do the two pass encode. Pass one:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2988 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2989 mencoder dvd://1 -ofps 24000/1001 -oac copy -o <replaceable>Harry_Potter_2.avi</replaceable> -ovc lavc \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2990 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:autoaspect:vpass=1 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2991 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2992 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2993 And pass two is the same, except that we specify <option>vpass=2</option>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2994 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2995 mencoder dvd://1 -ofps 24000/1001 -oac copy -o <replaceable>Harry_Potter_2.avi</replaceable> -ovc lavc \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2996 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:autoaspect:vpass=2 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2997 -vf pullup,softskip,crop=720:352:0:62,hqdn3d=2:1:2
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2998 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
2999 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3000
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3001 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3002 The options <option>v4mv:mbd=2:trell</option> will greatly increase the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3003 quality at the expense of encoding time. There is little reason to leave
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3004 these options out when the primary goal is quality. The options
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3005 <option>cmp=3:subcmp=3</option> select a comparison function that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3006 yields higher quality than the defaults. You might try experimenting with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3007 this parameter (refer to the man page for the possible values) as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3008 different functions can have a large impact on quality depending on the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3009 source material. For example, if you find
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3010 <systemitem class="library">libavcodec</systemitem> produces too much
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3011 blocky artifacting, you could try selecting the experimental NSSE as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3012 comparison function via <option>*cmp=10</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3013 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3014
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3015 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3016 For this movie, the resulting AVI will be 138 minutes long and nearly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3017 3GB. And because you said that file size does not matter, this is a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3018 perfectly acceptable size. However, if you had wanted it smaller, you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3019 could try a lower bitrate. Increasing bitrates have diminishing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3020 returns, so while we might clearly see an improvement from 1800Kbit to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3021 2000Kbit, it might not be so noticeable above 2000Kbit. Feel
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3022 free to experiment until you are happy.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3023 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3024
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3025 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3026 Because we passed the source video through a denoise filter, you may want
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3027 to add some of it back during playback. This, along with the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3028 <option>spp</option> post-processing filter, drastically improves the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3029 perception of quality and helps eliminate blocky artifacts in the video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3030 With <application>MPlayer</application>'s <option>autoq</option> option,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3031 you can vary the amount of post-processing done by the spp filter
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3032 depending on available CPU. Also, at this point, you may want to apply
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3033 gamma and/or color correction to best suit your display. For example:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3034 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3035 mplayer <replaceable>Harry_Potter_2.avi</replaceable> -vf spp,noise=9ah:5ah,eq2=1.2 -autoq 3
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3036 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3037 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3038 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3039 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3040
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3041
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3042 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3043
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3044
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3045 <sect1 id="menc-feat-xvid">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3046 <title>Encoding with the <systemitem class="library">Xvid</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3047 codec</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3048
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3049 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3050 <systemitem class="library">Xvid</systemitem> is a free library for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3051 encoding MPEG-4 ASP video streams.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3052 Before starting to encode, you need to <link linkend="xvid">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3053 set up <application>MEncoder</application> to support it</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3054 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3055
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3056 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3057 This guide mainly aims at featuring the same kind of information
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3058 as x264's encoding guide.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3059 Therefore, please begin by reading
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3060 <link linkend="menc-feat-x264-encoding-options-intro">the first part</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3061 of that guide.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3062 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3063
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3064 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3065
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3066 <sect2 id="menc-feat-xvid-intro">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3067 <title>What options should I use to get the best results?</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3068
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3069 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3070 Please begin by reviewing the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3071 <systemitem class="library">Xvid</systemitem> section of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3072 <application>MPlayer</application>'s man page.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3073 This section is intended to be a supplement to the man page.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3074 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3075
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3076 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3077 The Xvid default settings are already a good tradeoff between
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3078 speed and quality, therefore you can safely stick to them if
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3079 the following section puzzles you.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3080 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3081 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3082
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3083 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3084
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3085 <sect2 id="menc-feat-xvid-encoding-options">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3086 <title>Encoding options of <systemitem class="library">Xvid</systemitem></title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3087
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3088 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3089 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3090 <emphasis role="bold">vhq</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3091 This setting affects the macroblock decision algorithm, where the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3092 higher the setting, the wiser the decision.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3093 The default setting may be safely used for every encode, while
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3094 higher settings always help PSNR but are significantly slower.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3095 Please note that a better PSNR does not necessarily mean
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3096 that the picture will look better, but tells you that it is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3097 closer to the original.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3098 Turning it off will noticeably speed up encoding; if speed is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3099 critical for you, the tradeoff may be worth it.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3100 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3101 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3102 <emphasis role="bold">bvhq</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3103 This does the same job as vhq, but does it on B-frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3104 It has a negligible impact on speed, and slightly improves quality
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3105 (around +0.1dB PSNR).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3106 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3107 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3108 <emphasis role="bold">max_bframes</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3109 A higher number of consecutive allowed B-frames usually improves
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3110 compressibility, although it may also lead to more blocking artifacts.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3111 The default setting is a good tradeoff between compressibility and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3112 quality, but you may increase it up to 3 if you are bitrate-starved.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3113 You may also decrease it to 1 or 0 if you are aiming at perfect
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3114 quality, though in that case you should make sure your
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3115 target bitrate is high enough to ensure that the encoder does not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3116 have to increase quantizers to reach it.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3117 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3118 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3119 <emphasis role="bold">bf_threshold</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3120 This controls the B-frame sensitivity of the encoder, where a higher
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3121 value leads to more B-frames being used (and vice versa).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3122 This setting is to be used together with <option>max_bframes</option>;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3123 if you are bitrate-starved, you should increase both
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3124 <option>max_bframes</option> and <option>bf_threshold</option>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3125 while you may increase <option>max_bframes</option> and reduce
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3126 <option>bf_threshold</option> so that the encoder may use more
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3127 B-frames in places that only <emphasis role="bold">really</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3128 need them.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3129 A low number of <option>max_bframes</option> and a high value of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3130 <option>bf_threshold</option> is probably not a wise choice as it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3131 will force the encoder to put B-frames in places that would not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3132 benefit from them, therefore reducing visual quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3133 However, if you need to be compatible with standalone players that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3134 only support old DivX profiles (which only supports up to 1
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3135 consecutive B-frame), this would be your only way to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3136 increase compressibility through using B-frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3137 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3138 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3139 <emphasis role="bold">trellis</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3140 Optimizes the quantization process to get an optimal tradeoff
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3141 between PSNR and bitrate, which allows significant bit saving.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3142 These bits will in return be spent elsewhere on the video,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3143 raising overall visual quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3144 You should always leave it on as its impact on quality is huge.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3145 Even if you are looking for speed, do not disable it until you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3146 have turned down <option>vhq</option> and all other more
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3147 CPU-hungry options to the minimum.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3148 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3149 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3150 <emphasis role="bold">hq_ac</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3151 Activates a better coefficient cost estimation method, which slightly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3152 reduces filesize by around 0.15 to 0.19% (which corresponds to less
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3153 than 0.01dB PSNR increase), while having a negligible impact on speed.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3154 It is therefore recommended to always leave it on.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3155 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3156 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3157 <emphasis role="bold">cartoon</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3158 Designed to better encode cartoon content, and has no impact on
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3159 speed as it just tunes the mode decision heuristics for this type
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3160 of content.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3161 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3162 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3163 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3164 <emphasis role="bold">me_quality</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3165 This setting is to control the precision of the motion estimation.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3166 The higher <option>me_quality</option>, the more
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3167 precise the estimation of the original motion will be, and the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3168 better the resulting clip will capture the original motion.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3169 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3170 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3171 The default setting is best in all cases;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3172 thus it is not recommended to turn it down unless you are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3173 really looking for speed, as all the bits saved by a good motion
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3174 estimation would be spent elsewhere, raising overall quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3175 Therefore, do not go any lower than 5, and even that only as a last
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3176 resort.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3177 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3178 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3179 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3180 <emphasis role="bold">chroma_me</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3181 Improves motion estimation by also taking the chroma (color)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3182 information into account, whereas <option>me_quality</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3183 alone only uses luma (grayscale).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3184 This slows down encoding by 5-10% but improves visual quality
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3185 quite a bit by reducing blocking effects and reduces filesize by
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3186 around 1.3%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3187 If you are looking for speed, you should disable this option before
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3188 starting to consider reducing <option>me_quality</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3189 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3190 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3191 <emphasis role="bold">chroma_opt</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3192 Is intended to increase chroma image quality around pure
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3193 white/black edges, rather than improving compression.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3194 This can help to reduce the "red stairs" effect.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3195 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3196 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3197 <emphasis role="bold">lumi_mask</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3198 Tries to give less bitrate to part of the picture that the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3199 human eye cannot see very well, which should allow the encoder
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3200 to spend the saved bits on more important parts of the picture.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3201 The quality of the encode yielded by this option highly depends
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3202 on personal preferences and on the type and monitor settings
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3203 used to watch it (typically, it will not look as good if it is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3204 bright or if it is a TFT monitor).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3205 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3206 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3207 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3208 <emphasis role="bold">qpel</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3209 Raise the number of candidate motion vectors by increasing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3210 the precision of the motion estimation from halfpel to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3211 quarterpel.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3212 The idea is to find better motion vectors which will in return
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3213 reduce bitrate (hence increasing quality).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3214 However, motion vectors with quarterpel precision require a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3215 few extra bits to code, but the candidate vectors do not always
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3216 give (much) better results.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3217 Quite often, the codec still spends bits on the extra precision,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3218 but little or no extra quality is gained in return.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3219 Unfortunately, there is no way to foresee the possible gains of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3220 <option>qpel</option>, so you need to actually encode with and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3221 without it to know for sure.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3222 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3223 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3224 <option>qpel</option> can be almost double encoding time, and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3225 requires as much as 25% more processing power to decode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3226 It is not supported by all standalone players.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3227 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3228 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3229 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3230 <emphasis role="bold">gmc</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3231 Tries to save bits on panning scenes by using a single motion
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3232 vector for the whole frame.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3233 This almost always raises PSNR, but significantly slows down
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3234 encoding (as well as decoding).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3235 Therefore, you should only use it when you have turned
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3236 <option>vhq</option> to the maximum.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3237 <systemitem class="library">Xvid</systemitem>'s GMC is more
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3238 sophisticated than DivX's, but is only supported by few
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3239 standalone players.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3240 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3241 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3242 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3243
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3244 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3245
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3246 <sect2 id="menc-feat-xvid-encoding-profiles">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3247 <title>Encoding profiles</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3248
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3249 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3250 Xvid supports encoding profiles through the <option>profile</option> option,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3251 which are used to impose restrictions on the properties of the Xvid video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3252 stream such that it will be playable on anything which supports the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3253 chosen profile.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3254 The restrictions relate to resolutions, bitrates and certain MPEG-4
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3255 features.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3256 The following table shows what each profile supports.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3257 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3258
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3259 <informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3260 <tgroup cols="16" align="center">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3261 <colspec colnum="1" colname="col1"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3262 <colspec colnum="2" colname="col2"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3263 <colspec colnum="3" colname="col3"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3264 <colspec colnum="4" colname="col4"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3265 <colspec colnum="5" colname="col5"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3266 <colspec colnum="6" colname="col6"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3267 <colspec colnum="7" colname="col7"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3268 <colspec colnum="8" colname="col8"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3269 <colspec colnum="9" colname="col9"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3270 <colspec colnum="10" colname="col10"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3271 <colspec colnum="11" colname="col11"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3272 <colspec colnum="12" colname="col12"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3273 <colspec colnum="13" colname="col13"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3274 <colspec colnum="14" colname="col14"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3275 <colspec colnum="15" colname="col15"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3276 <colspec colnum="16" colname="col16"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3277 <colspec colnum="17" colname="col17"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3278 <spanspec spanname="spa2-5" namest="col2" nameend="col5"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3279 <spanspec spanname="spa6-11" namest="col6" nameend="col11"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3280 <spanspec spanname="spa12-17" namest="col12" nameend="col17"/>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3281 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3282 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3283 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3284 <entry spanname="spa2-5">Simple</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3285 <entry spanname="spa6-11">Advanced Simple</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3286 <entry spanname="spa12-17">DivX</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3287 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3288 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3289 <entry>Profile name</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3290 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3291 <entry>1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3292 <entry>2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3293 <entry>3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3294 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3295 <entry>1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3296 <entry>2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3297 <entry>3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3298 <entry>4</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3299 <entry>5</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3300 <entry>Handheld</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3301 <entry>Portable NTSC</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3302 <entry>Portable PAL</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3303 <entry>Home Theater NTSC</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3304 <entry>Home Theater PAL</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3305 <entry>HDTV</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3306 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3307 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3308 <entry>Width [pixels]</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3309 <entry>176</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3310 <entry>176</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3311 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3312 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3313 <entry>176</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3314 <entry>176</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3315 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3316 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3317 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3318 <entry>720</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3319 <entry>176</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3320 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3321 <entry>352</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3322 <entry>720</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3323 <entry>720</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3324 <entry>1280</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3325 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3326 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3327 <entry>Height [pixels]</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3328 <entry>144</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3329 <entry>144</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3330 <entry>288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3331 <entry>288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3332 <entry>144</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3333 <entry>144</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3334 <entry>288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3335 <entry>288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3336 <entry>576</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3337 <entry>576</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3338 <entry>144</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3339 <entry>240</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3340 <entry>288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3341 <entry>480</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3342 <entry>576</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3343 <entry>720</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3344 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3345 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3346 <entry>Frame rate [fps]</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3347 <entry>15</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3348 <entry>15</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3349 <entry>15</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3350 <entry>15</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3351 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3352 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3353 <entry>15</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3354 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3355 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3356 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3357 <entry>15</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3358 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3359 <entry>25</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3360 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3361 <entry>25</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3362 <entry>30</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3363 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3364 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3365 <entry>Max average bitrate [kbps]</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3366 <entry>64</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3367 <entry>64</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3368 <entry>128</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3369 <entry>384</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3370 <entry>128</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3371 <entry>128</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3372 <entry>384</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3373 <entry>768</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3374 <entry>3000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3375 <entry>8000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3376 <entry>537.6</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3377 <entry>4854</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3378 <entry>4854</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3379 <entry>4854</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3380 <entry>4854</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3381 <entry>9708.4</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3382 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3383 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3384 <entry>Peak average bitrate over 3 secs [kbps]</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3385 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3386 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3387 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3388 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3389 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3390 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3391 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3392 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3393 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3394 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3395 <entry>800</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3396 <entry>8000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3397 <entry>8000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3398 <entry>8000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3399 <entry>8000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3400 <entry>16000</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3401 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3402 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3403 <entry>Max. B-frames</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3404 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3405 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3406 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3407 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3408 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3409 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3410 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3411 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3412 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3413 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3414 <entry>0</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3415 <entry>1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3416 <entry>1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3417 <entry>1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3418 <entry>1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3419 <entry>2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3420 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3421 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3422 <entry>MPEG quantization</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3423 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3424 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3425 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3426 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3427 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3428 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3429 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3430 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3431 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3432 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3433 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3434 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3435 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3436 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3437 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3438 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3439 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3440 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3441 <entry>Adaptive quantization</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3442 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3443 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3444 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3445 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3446 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3447 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3448 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3449 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3450 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3451 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3452 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3453 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3454 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3455 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3456 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3457 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3458 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3459 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3460 <entry>Interlaced encoding</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3461 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3462 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3463 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3464 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3465 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3466 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3467 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3468 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3469 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3470 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3471 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3472 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3473 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3474 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3475 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3476 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3477 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3478 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3479 <entry>Quaterpixel</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3480 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3481 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3482 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3483 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3484 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3485 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3486 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3487 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3488 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3489 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3490 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3491 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3492 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3493 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3494 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3495 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3496 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3497 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3498 <entry>Global motion compensation</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3499 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3500 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3501 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3502 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3503 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3504 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3505 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3506 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3507 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3508 <entry>X</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3509 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3510 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3511 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3512 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3513 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3514 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3515 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3516 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3517 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3518 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3519 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3520
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3521 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3522
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3523 <sect2 id="menc-feat-xvid-example-settings">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3524 <title>Encoding setting examples</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3525
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3526 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3527 The following settings are examples of different encoding
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3528 option combinations that affect the speed vs quality tradeoff
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3529 at the same target bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3530 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3531
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3532 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3533 All the encoding settings were tested on a 720x448 @30000/1001 fps
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3534 video sample, the target bitrate was 900kbps, and the machine was an
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3535 AMD-64 3400+ at 2400 MHz in 64 bits mode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3536 Each encoding setting features the measured encoding speed (in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3537 frames per second) and the PSNR loss (in dB) compared to the "very
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3538 high quality" setting.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3539 Please understand that depending on your source, your machine type
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3540 and development advancements, you may get very different results.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3541 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3542
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3543 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3544 <tgroup cols="4">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3545 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3546 <row><entry>Description</entry><entry>Encoding options</entry><entry>speed (in fps)</entry><entry>Relative PSNR loss (in dB)</entry></row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3547 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3548 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3549 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3550 <entry>Very high quality</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3551 <entry><option>chroma_opt:vhq=4:bvhq=1:quant_type=mpeg</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3552 <entry>16fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3553 <entry>0dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3554 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3555 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3556 <entry>High quality</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3557 <entry><option>vhq=2:bvhq=1:chroma_opt:quant_type=mpeg</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3558 <entry>18fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3559 <entry>-0.1dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3560 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3561 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3562 <entry>Fast</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3563 <entry><option>turbo:vhq=0</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3564 <entry>28fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3565 <entry>-0.69dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3566 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3567 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3568 <entry>Realtime</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3569 <entry><option>turbo:nochroma_me:notrellis:max_bframes=0:vhq=0</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3570 <entry>38fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3571 <entry>-1.48dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3572 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3573 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3574 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3575 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3576 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3577 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3578
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3579
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3580 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3581
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3582
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3583 <sect1 id="menc-feat-x264">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3584 <title>Encoding with the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3585 <systemitem class="library">x264</systemitem> codec</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3586
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3587 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3588 <systemitem class="library">x264</systemitem> is a free library for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3589 encoding H.264/AVC video streams.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3590 Before starting to encode, you need to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3591 <link linkend="codec-x264-encode">set up <application>MEncoder</application> to support it</link>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3592 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3593
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3594 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3595
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3596 <sect2 id="menc-feat-x264-encoding-options">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3597 <title>Encoding options of x264</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3598
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3599 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3600 Please begin by reviewing the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3601 <systemitem class="library">x264</systemitem> section of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3602 <application>MPlayer</application>'s man page.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3603 This section is intended to be a supplement to the man page.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3604 Here you will find quick hints about which options are most
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3605 likely to interest most people. The man page is more terse,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3606 but also more exhaustive, and it sometimes offers much better
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3607 technical detail.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3608 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3609
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3610
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3611 <sect3 id="menc-feat-x264-encoding-options-intro">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3612 <title>Introduction</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3613
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3614 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3615 This guide considers two major categories of encoding options:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3616 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3617
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3618 <orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3619 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3620 Options which mainly trade off encoding time vs. quality
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3621 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3622 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3623 Options which may be useful for fulfilling various personal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3624 preferences and special requirements
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3625 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3626 </orderedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3627
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3628 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3629 Ultimately, only you can decide which options are best for your
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3630 purposes. The decision for the first class of options is the simplest:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3631 you only have to decide whether you think the quality differences
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3632 justify the speed differences. For the second class of options,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3633 preferences may be far more subjective, and more factors may be
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3634 involved. Note that some of the "personal preferences and special
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3635 requirements" options can still have large impacts on speed or quality,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3636 but that is not what they are primarily useful for. A couple of the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3637 "personal preference" options may even cause changes that look better
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3638 to some people, but look worse to others.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3639 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3640
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3641 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3642 Before continuing, you need to understand that this guide uses only one
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3643 quality metric: global PSNR.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3644 For a brief explanation of what PSNR is, see
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3645 <ulink url="http://en.wikipedia.org/wiki/PSNR">the Wikipedia article on PSNR</ulink>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3646 Global PSNR is the last PSNR number reported when you include
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3647 the <option>psnr</option> option in <option>x264encopts</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3648 Any time you read a claim about PSNR, one of the assumptions
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3649 behind the claim is that equal bitrates are used.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3650 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3651
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3652 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3653 Nearly all of this guide's comments assume you are using two pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3654 When comparing options, there are two major reasons for using
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3655 two pass encoding.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3656 First, using two pass often gains around 1dB PSNR, which is a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3657 very big difference.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3658 Secondly, testing options by doing direct quality comparisons
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3659 with one pass encodes introduces a major confounding
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3660 factor: bitrate often varies significantly with each encode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3661 It is not always easy to tell whether quality changes are due
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3662 mainly to changed options, or if they mostly reflect essentially
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3663 random differences in the achieved bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3664 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3665 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3666
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3667
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3668 <sect3 id="menc-feat-x264-encoding-options-speedvquality">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3669 <title>Options which primarily affect speed and quality</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3670
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3671 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3672 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3673 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3674 <emphasis role="bold">subq</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3675 Of the options which allow you to trade off speed for quality,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3676 <option>subq</option> and <option>frameref</option> (see below) are usually
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3677 by far the most important.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3678 If you are interested in tweaking either speed or quality, these
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3679 are the first options you should consider.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3680 On the speed dimension, the <option>frameref</option> and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3681 <option>subq</option> options interact with each other fairly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3682 strongly.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3683 Experience shows that, with one reference frame,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3684 <option>subq=5</option> (the default setting) takes about 35% more time than
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3685 <option>subq=1</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3686 With 6 reference frames, the penalty grows to over 60%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3687 <option>subq</option>'s effect on PSNR seems fairly constant
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3688 regardless of the number of reference frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3689 Typically, <option>subq=5</option> achieves 0.2-0.5 dB higher global
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3690 PSNR in comparison <option>subq=1</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3691 This is usually enough to be visible.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3692 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3693 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3694 <option>subq=6</option> is slower and yields better quality at a reasonable
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3695 cost.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3696 In comparison to <option>subq=5</option>, it usually gains 0.1-0.4 dB
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3697 global PSNR with speed costs varying from 25%-100%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3698 Unlike other levels of <option>subq</option>, the behavior of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3699 <option>subq=6</option> does not depend much on <option>frameref</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3700 and <option>me</option>. Instead, the effectiveness of <option>subq=6
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3701 </option> depends mostly upon the number of B-frames used. In normal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3702 usage, this means <option>subq=6</option> has a large impact on both speed
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3703 and quality in complex, high motion scenes, but it may not have much effect
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3704 in low-motion scenes. Note that it is still recommended to always set
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3705 <option>bframes</option> to something other than zero (see below).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3706 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3707 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3708 <option>subq=7</option> is the slowest, highest quality mode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3709 In comparison to <option>subq=6</option>, it usually gains 0.01-0.05 dB
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3710 global PSNR with speed costs varying from 15%-33%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3711 Since the tradeoff encoding time vs. quality is quite low, you should
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3712 only use it if you are after every bit saving and if encoding time is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3713 not an issue.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3714 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3715 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3716 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3717 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3718 <emphasis role="bold">frameref</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3719 <option>frameref</option> is set to 1 by default, but this
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3720 should not be taken to imply that it is reasonable to set it to 1.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3721 Merely raising <option>frameref</option> to 2 gains around
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3722 0.15dB PSNR with a 5-10% speed penalty; this seems like a good tradeoff.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3723 <option>frameref=3</option> gains around 0.25dB PSNR over
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3724 <option>frameref=1</option>, which should be a visible difference.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3725 <option>frameref=3</option> is around 15% slower than
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3726 <option>frameref=1</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3727 Unfortunately, diminishing returns set in rapidly.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3728 <option>frameref=6</option> can be expected to gain only
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3729 0.05-0.1 dB over <option>frameref=3</option> at an additional
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3730 15% speed penalty.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3731 Above <option>frameref=6</option>, the quality gains are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3732 usually very small (although you should keep in mind throughout
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3733 this whole discussion that it can vary quite a lot depending on your source).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3734 In a fairly typical case, <option>frameref=12</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3735 will improve global PSNR by a tiny 0.02dB over
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3736 <option>frameref=6</option>, at a speed cost of 15%-20%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3737 At such high <option>frameref</option> values, the only really
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3738 good thing that can be said is that increasing it even further will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3739 almost certainly never <emphasis role="bold">harm</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3740 PSNR, but the additional quality benefits are barely even
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3741 measurable, let alone perceptible.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3742 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3743 <note><title>Note:</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3744 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3745 Raising <option>frameref</option> to unnecessarily high values
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3746 <emphasis role="bold">can</emphasis> and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3747 <emphasis role="bold">usually does</emphasis>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3748 hurt coding efficiency if you turn CABAC off.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3749 With CABAC on (the default behavior), the possibility of setting
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3750 <option>frameref</option> "too high" currently seems too remote
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3751 to even worry about, and in the future, optimizations may remove
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3752 the possibility altogether.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3753 </para></note>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3754 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3755 If you care about speed, a reasonable compromise is to use low
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3756 <option>subq</option> and <option>frameref</option> values on
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3757 the first pass, and then raise them on the second pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3758 Typically, this has a negligible negative effect on the final
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3759 quality: You will probably lose well under 0.1dB PSNR, which
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3760 should be much too small of a difference to see.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3761 However, different values of <option>frameref</option> can
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3762 occasionally affect frametype decision.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3763 Most likely, these are rare outlying cases, but if you want to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3764 be pretty sure, consider whether your video has either
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3765 fullscreen repetitive flashing patterns or very large temporary
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3766 occlusions which might force an I-frame.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3767 Adjust the first-pass <option>frameref</option> so it is large
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3768 enough to contain the duration of the flashing cycle (or occlusion).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3769 For example, if the scene flashes back and forth between two images
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3770 over a duration of three frames, set the first pass
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3771 <option>frameref</option> to 3 or higher.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3772 This issue is probably extremely rare in live action video material,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3773 but it does sometimes come up in video game captures.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3774 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3775 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3776 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3777 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3778 <emphasis role="bold">me</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3779 This option is for choosing the motion estimation search method.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3780 Altering this option provides a straightforward quality-vs-speed
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3781 tradeoff. <option>me=dia</option> is only a few percent faster than
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3782 the default search, at a cost of under 0.1dB global PSNR. The
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3783 default setting (<option>me=hex</option>) is a reasonable tradeoff
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3784 between speed and quality. <option>me=umh</option> gains a little under
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3785 0.1dB global PSNR, with a speed penalty that varies depending on
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3786 <option>frameref</option>. At high values of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3787 <option>frameref</option> (e.g. 12 or so), <option>me=umh</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3788 is about 40% slower than the default <option> me=hex</option>. With
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3789 <option>frameref=3</option>, the speed penalty incurred drops to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3790 25%-30%.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3791 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3792 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3793 <option>me=esa</option> uses an exhaustive search that is too slow for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3794 practical use.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3795 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3796 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3797 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3798 <emphasis role="bold">partitions=all</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3799 This option enables the use of 8x4, 4x8 and 4x4 subpartitions in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3800 predicted macroblocks (in addition to the default partitions).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3801 Enabling it results in a fairly consistent
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3802 10%-15% loss of speed. This option is rather useless in source
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3803 containing only low motion, however in some high-motion source,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3804 particularly source with lots of small moving objects, gains of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3805 about 0.1dB can be expected.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3806 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3807 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3808 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3809 <emphasis role="bold">bframes</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3810 If you are used to encoding with other codecs, you may have found
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3811 that B-frames are not always useful.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3812 In H.264, this has changed: there are new techniques and block
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3813 types that are possible in B-frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3814 Usually, even a naive B-frame choice algorithm can have a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3815 significant PSNR benefit.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3816 It is interesting to note that using B-frames usually speeds up
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3817 the second pass somewhat, and may also speed up a single
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3818 pass encode if adaptive B-frame decision is turned off.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3819 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3820 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3821 With adaptive B-frame decision turned off
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3822 (<option>x264encopts</option>'s <option>nob_adapt</option>),
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3823 the optimal value for this setting is usually no more than
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3824 <option>bframes=1</option>, or else high-motion scenes can suffer.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3825 With adaptive B-frame decision on (the default behavior), it is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3826 safe to use higher values; the encoder will reduce the use of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3827 B-frames in scenes where they would hurt compression.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3828 The encoder rarely chooses to use more than 3 or 4 B-frames;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3829 setting this option any higher will have little effect.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3830 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3831 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3832 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3833 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3834 <emphasis role="bold">b_adapt</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3835 Note: This is on by default.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3836 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3837 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3838 With this option enabled, the encoder will use a reasonably fast
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3839 decision process to reduce the number of B-frames used in scenes that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3840 might not benefit from them as much.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3841 You can use <option>b_bias</option> to tweak how B-frame-happy
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3842 the encoder is.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3843 The speed penalty of adaptive B-frames is currently rather modest,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3844 but so is the potential quality gain.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3845 It usually does not hurt, however.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3846 Note that this only affects speed and frametype decision on the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3847 first pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3848 <option>b_adapt</option> and <option>b_bias</option> have no
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3849 effect on subsequent passes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3850 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3851 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3852 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3853 <emphasis role="bold">b_pyramid</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3854 You might as well enable this option if you are using >=2 B-frames;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3855 as the man page says, you get a little quality improvement at no
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3856 speed cost.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3857 Note that these videos cannot be read by libavcodec-based decoders
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3858 older than about March 5, 2005.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3859 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3860 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3861 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3862 <emphasis role="bold">weight_b</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3863 In typical cases, there is not much gain with this option.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3864 However, in crossfades or fade-to-black scenes, weighted
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3865 prediction gives rather large bitrate savings.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3866 In MPEG-4 ASP, a fade-to-black is usually best coded as a series
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3867 of expensive I-frames; using weighted prediction in B-frames
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3868 makes it possible to turn at least some of these into much smaller
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3869 B-frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3870 Encoding time cost is minimal, as no extra decisions need to be made.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3871 Also, contrary to what some people seem to guess, the decoder
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3872 CPU requirements are not much affected by weighted prediction,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3873 all else being equal.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3874 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3875 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3876 Unfortunately, the current adaptive B-frame decision algorithm
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3877 has a strong tendency to avoid B-frames during fades.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3878 Until this changes, it may be a good idea to add
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3879 <option>nob_adapt</option> to your x264encopts, if you expect
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3880 fades to have a large effect in your particular video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3881 clip.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3882 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3883 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3884 <listitem id="menc-feat-x264-encoding-options-speedvquality-threads">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3885 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3886 <emphasis role="bold">threads</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3887 This option allows to spawn threads to encode in parallel on multiple CPUs.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3888 You can manually select the number of threads to be created or, better, set
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3889 <option>threads=auto</option> and let
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3890 <systemitem class="library">x264</systemitem> detect how many CPUs are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3891 available and pick an appropriate number of threads.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3892 If you have a multi-processor machine, you should really consider using it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3893 as it can to increase encoding speed linearly with the number of CPU cores
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3894 (about 94% per CPU core), with very little quality reduction (about 0.005dB
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3895 for dual processor, about 0.01dB for a quad processor machine).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3896 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3897 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3898 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3899 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3900
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3901
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3902 <sect3 id="menc-feat-x264-encoding-options-misc-preferences">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3903 <title>Options pertaining to miscellaneous preferences</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3904
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3905 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3906 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3907 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3908 <emphasis role="bold">Two pass encoding</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3909 Above, it was suggested to always use two pass encoding, but there
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3910 are still reasons for not using it. For instance, if you are capturing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3911 live TV and encoding in realtime, you are forced to use single-pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3912 Also, one pass is obviously faster than two passes; if you use the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3913 exact same set of options on both passes, two pass encoding is almost
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3914 twice as slow.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3915 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3916 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3917 Still, there are very good reasons for using two pass encoding. For
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3918 one thing, single pass ratecontrol is not psychic, and it often makes
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3919 unreasonable choices because it cannot see the big picture. For example,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3920 suppose you have a two minute long video consisting of two distinct
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3921 halves. The first half is a very high-motion scene lasting 60 seconds
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3922 which, in isolation, requires about 2500kbps in order to look decent.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3923 Immediately following it is a much less demanding 60-second scene
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3924 that looks good at 300kbps. Suppose you ask for 1400kbps on the theory
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3925 that this is enough to accomodate both scenes. Single pass ratecontrol
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3926 will make a couple of "mistakes" in such a case. First of all, it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3927 will target 1400kbps in both segments. The first segment may end up
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3928 heavily overquantized, causing it to look unacceptably and unreasonably
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3929 blocky. The second segment will be heavily underquantized; it may look
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3930 perfect, but the bitrate cost of that perfection will be completely
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3931 unreasonable. What is even harder to avoid is the problem at the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3932 transition between the two scenes. The first seconds of the low motion
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3933 half will be hugely over-quantized, because the ratecontrol is still
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3934 expecting the kind of bitrate requirements it met in the first half
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3935 of the video. This "error period" of heavily over-quantized low motion
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3936 will look jarringly bad, and will actually use less than the 300kbps
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3937 it would have taken to make it look decent. There are ways to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3938 mitigate the pitfalls of single-pass encoding, but they may tend to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3939 increase bitrate misprediction.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3940 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3941 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3942 Multipass ratecontrol can offer huge advantages over a single pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3943 Using the statistics gathered from the first pass encode, the encoder
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3944 can estimate, with reasonable accuracy, the "cost" (in bits) of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3945 encoding any given frame, at any given quantizer. This allows for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3946 a much more rational, better planned allocation of bits between the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3947 expensive (high-motion) and cheap (low-motion) scenes. See
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3948 <option>qcomp</option> below for some ideas on how to tweak this
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3949 allocation to your liking.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3950 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3951 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3952 Moreover, two passes need not take twice as long as one pass. You can
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3953 tweak the options in the first pass for higher speed and lower quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3954 If you choose your options well, you can get a very fast first pass.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3955 The resulting quality in the second pass will be slightly lower because size
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3956 prediction is less accurate, but the quality difference is normally much
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3957 too small to be visible. Try, for example, adding
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3958 <option>subq=1:frameref=1</option> to the first pass
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3959 <option>x264encopts</option>. Then, on the second pass, use slower,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3960 higher-quality options:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3961 <option>subq=6:frameref=15:partitions=all:me=umh</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3962 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3963 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3964 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3965 <emphasis role="bold">Three pass encoding</emphasis>?
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3966 x264 offers the ability to make an arbitrary number of consecutive
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3967 passes. If you specify <option>pass=1</option> on the first pass,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3968 then use <option>pass=3</option> on a subsequent pass, the subsequent
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3969 pass will both read the statistics from the previous pass, and write
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3970 its own statistics. An additional pass following this one will have
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3971 a very good base from which to make highly accurate predictions of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3972 framesizes at a chosen quantizer. In practice, the overall quality
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3973 gain from this is usually close to zero, and quite possibly a third
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3974 pass will result in slightly worse global PSNR than the pass before
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3975 it. In typical usage, three passes help if you get either bad bitrate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3976 prediction or bad looking scene transitions when using only two passes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3977 This is somewhat likely to happen on extremely short clips. There are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3978 also a few special cases in which three (or more) passes are handy
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3979 for advanced users, but for brevity, this guide omits discussing those
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3980 special cases.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3981 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3982 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3983 <emphasis role="bold">qcomp</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3984 <option>qcomp</option> trades off the number of bits allocated
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3985 to "expensive" high-motion versus "cheap" low-motion frames. At
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3986 one extreme, <option>qcomp=0</option> aims for true constant
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3987 bitrate. Typically this would make high-motion scenes look completely
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3988 awful, while low-motion scenes would probably look absolutely
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3989 perfect, but would also use many times more bitrate than they
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3990 would need in order to look merely excellent. At the other extreme,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3991 <option>qcomp=1</option> achieves nearly constant quantization parameter
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3992 (QP). Constant QP does not look bad, but most people think it is more
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3993 reasonable to shave some bitrate off of the extremely expensive scenes
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3994 (where the loss of quality is not as noticeable) and reallocate it to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3995 the scenes that are easier to encode at excellent quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3996 <option>qcomp</option> is set to 0.6 by default, which may be slightly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3997 low for many peoples' taste (0.7-0.8 are also commonly used).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3998 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
3999 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4000 <emphasis role="bold">keyint</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4001 <option>keyint</option> is solely for trading off file seekability against
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4002 coding efficiency. By default, <option>keyint</option> is set to 250. In
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4003 25fps material, this guarantees the ability to seek to within 10 seconds
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4004 precision. If you think it would be important and useful to be able to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4005 seek within 5 seconds of precision, set <option>keyint=125</option>;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4006 this will hurt quality/bitrate slightly. If you care only about quality
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4007 and not about seekability, you can set it to much higher values
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4008 (understanding that there are diminishing returns which may become
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4009 vanishingly low, or even zero). The video stream will still have seekable
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4010 points as long as there are some scene changes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4011 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4012 <listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4013 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4014 <emphasis role="bold">deblock</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4015 This topic is going to be a bit controversial.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4016 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4017 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4018 H.264 defines a simple deblocking procedure on I-blocks that uses
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4019 pre-set strengths and thresholds depending on the QP of the block
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4020 in question.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4021 By default, high QP blocks are filtered heavily, and low QP blocks
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4022 are not deblocked at all.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4023 The pre-set strengths defined by the standard are well-chosen and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4024 the odds are very good that they are PSNR-optimal for whatever
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4025 video you are trying to encode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4026 The <option>deblock</option> allow you to specify offsets to the preset
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4027 deblocking thresholds.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4028 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4029 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4030 Many people seem to think it is a good idea to lower the deblocking
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4031 filter strength by large amounts (say, -3).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4032 This is however almost never a good idea, and in most cases,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4033 people who are doing this do not understand very well how
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4034 deblocking works by default.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4035 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4036 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4037 The first and most important thing to know about the in-loop
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4038 deblocking filter is that the default thresholds are almost always
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4039 PSNR-optimal.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4040 In the rare cases that they are not optimal, the ideal offset is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4041 plus or minus 1.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4042 Adjusting deblocking parameters by a larger amount is almost
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4043 guaranteed to hurt PSNR.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4044 Strengthening the filter will smear more details; weakening the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4045 filter will increase the appearance of blockiness.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4046 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4047 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4048 It is definitely a bad idea to lower the deblocking thresholds if
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4049 your source is mainly low in spacial complexity (i.e., not a lot
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4050 of detail or noise).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4051 The in-loop filter does a rather excellent job of concealing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4052 the artifacts that occur.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4053 If the source is high in spacial complexity, however, artifacts
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4054 are less noticeable.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4055 This is because the ringing tends to look like detail or noise.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4056 Human visual perception easily notices when detail is removed,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4057 but it does not so easily notice when the noise is wrongly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4058 represented.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4059 When it comes to subjective quality, noise and detail are somewhat
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4060 interchangeable.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4061 By lowering the deblocking filter strength, you are most likely
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4062 increasing error by adding ringing artifacts, but the eye does
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4063 not notice because it confuses the artifacts with detail.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4064 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4065 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4066 This <emphasis role="bold">still</emphasis> does not justify
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4067 lowering the deblocking filter strength, however.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4068 You can generally get better quality noise from postprocessing.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4069 If your H.264 encodes look too blurry or smeared, try playing with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4070 <option>-vf noise</option> when you play your encoded movie.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4071 <option>-vf noise=8a:4a</option> should conceal most mild
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4072 artifacting.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4073 It will almost certainly look better than the results you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4074 would have gotten just by fiddling with the deblocking filter.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4075 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4076 </listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4077 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4078 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4079 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4080
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4081 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4082
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4083 <sect2 id="menc-feat-x264-example-settings">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4084 <title>Encoding setting examples</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4085
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4086 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4087 The following settings are examples of different encoding
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4088 option combinations that affect the speed vs quality tradeoff
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4089 at the same target bitrate.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4090 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4091
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4092 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4093 All the encoding settings were tested on a 720x448 @30000/1001 fps
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4094 video sample, the target bitrate was 900kbps, and the machine was an
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4095 AMD-64 3400+ at 2400 MHz in 64 bits mode.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4096 Each encoding setting features the measured encoding speed (in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4097 frames per second) and the PSNR loss (in dB) compared to the "very
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4098 high quality" setting.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4099 Please understand that depending on your source, your machine type
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4100 and development advancements, you may get very different results.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4101 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4102
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4103 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4104 <tgroup cols="4">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4105 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4106 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4107 <entry>Description</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4108 <entry>Encoding options</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4109 <entry>speed (in fps)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4110 <entry>Relative PSNR loss (in dB)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4111 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4112 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4113 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4114 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4115 <entry>Very high quality</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4116 <entry><option>subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4117 <entry>6fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4118 <entry>0dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4119 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4120 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4121 <entry>High quality</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4122 <entry><option>subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4123 <entry>13fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4124 <entry>-0.89dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4125 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4126 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4127 <entry>Fast</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4128 <entry><option>subq=4:bframes=2:b_pyramid:weight_b</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4129 <entry>17fps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4130 <entry>-1.48dB</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4131 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4132 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4133 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4134 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4135 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4136 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4137
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4138
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4139 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4140
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4141
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4142 <sect1 id="menc-feat-video-for-windows">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4143 <title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4144 Encoding with the <systemitem class="library">Video For Windows</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4145 codec family
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4146 </title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4147
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4148 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4149 Video for Windows provides simple encoding by means of binary video codecs.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4150 You can encode with the following codecs (if you have more, please tell us!)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4151 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4152
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4153 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4154 Note that support for this is very experimental and some codecs may not work
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4155 correctly. Some codecs will only work in certain colorspaces, try
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4156 <option>-vf format=bgr24</option> and <option>-vf format=yuy2</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4157 if a codec fails or gives wrong output.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4158 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4159
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4160 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4161
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4162 <sect2 id="menc-feat-enc-vfw-video-codecs">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4163 <title>Video for Windows supported codecs</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4164
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4165 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4166 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4167 <tgroup cols="4">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4168 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4169 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4170 <entry>Video codec file name</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4171 <entry>Description (FourCC)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4172 <entry>md5sum</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4173 <entry>Comment</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4174 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4175 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4176 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4177 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4178 <entry>aslcodec_vfw.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4179 <entry>Alparysoft lossless codec vfw (ASLC)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4180 <entry>608af234a6ea4d90cdc7246af5f3f29a</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4181 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4182 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4183 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4184 <entry>avimszh.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4185 <entry>AVImszh (MSZH)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4186 <entry>253118fe1eedea04a95ed6e5f4c28878</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4187 <entry>needs <option>-vf format</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4188 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4189 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4190 <entry>avizlib.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4191 <entry>AVIzlib (ZLIB)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4192 <entry>2f1cc76bbcf6d77d40d0e23392fa8eda</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4193 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4194 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4195 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4196 <entry>divx.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4197 <entry>DivX4Windows-VFW</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4198 <entry>acf35b2fc004a89c829531555d73f1e6</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4199 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4200 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4201 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4202 <entry>huffyuv.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4203 <entry>HuffYUV (lossless) (HFYU)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4204 <entry>b74695b50230be4a6ef2c4293a58ac3b</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4205 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4206 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4207 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4208 <entry>iccvid.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4209 <entry>Cinepak Video (cvid)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4210 <entry>cb3b7ee47ba7dbb3d23d34e274895133</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4211 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4212 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4213 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4214 <entry>icmw_32.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4215 <entry>Motion Wavelets (MWV1)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4216 <entry>c9618a8fc73ce219ba918e3e09e227f2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4217 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4218 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4219 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4220 <entry>jp2avi.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4221 <entry>ImagePower MJPEG2000 (IPJ2)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4222 <entry>d860a11766da0d0ea064672c6833768b</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4223 <entry><option>-vf flip</option></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4224 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4225 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4226 <entry>m3jp2k32.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4227 <entry>Morgan MJPEG2000 (MJ2C)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4228 <entry>f3c174edcbaef7cb947d6357cdfde7ff</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4229 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4230 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4231 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4232 <entry>m3jpeg32.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4233 <entry>Morgan Motion JPEG Codec (MJPG)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4234 <entry>1cd13fff5960aa2aae43790242c323b1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4235 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4236 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4237 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4238 <entry>mpg4c32.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4239 <entry>Microsoft MPEG-4 v1/v2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4240 <entry>b5791ea23f33010d37ab8314681f1256</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4241 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4242 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4243 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4244 <entry>tsccvid.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4245 <entry>TechSmith Camtasia Screen Codec (TSCC)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4246 <entry>8230d8560c41d444f249802a2700d1d5</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4247 <entry>shareware error on windows</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4248 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4249 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4250 <entry>vp31vfw.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4251 <entry>On2 Open Source VP3 Codec (VP31)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4252 <entry>845f3590ea489e2e45e876ab107ee7d2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4253 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4254 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4255 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4256 <entry>vp4vfw.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4257 <entry>On2 VP4 Personal Codec (VP40)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4258 <entry>fc5480a482ccc594c2898dcc4188b58f</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4259 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4260 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4261 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4262 <entry>vp6vfw.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4263 <entry>On2 VP6 Personal Codec (VP60)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4264 <entry>04d635a364243013898fd09484f913fb</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4265 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4266 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4267 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4268 <entry>vp7vfw.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4269 <entry>On2 VP7 Personal Codec (VP70)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4270 <entry>cb4cc3d4ea7c94a35f1d81c3d750bc8d</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4271 <entry>wrong FourCC?</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4272 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4273 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4274 <entry>ViVD2.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4275 <entry>SoftMedia ViVD V2 codec VfW (GXVE)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4276 <entry>a7b4bf5cac630bb9262c3f80d8a773a1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4277 <entry></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4278 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4279 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4280 <entry>msulvc06.DLL</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4281 <entry>MSU Lossless codec (MSUD)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4282 <entry>294bf9288f2f127bb86f00bfcc9ccdda</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4283 <entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4284 Decodable by <application>Window Media Player</application>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4285 not <application>MPlayer</application> (yet).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4286 </entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4287 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4288 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4289 <entry>camcodec.dll</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4290 <entry>CamStudio lossless video codec (CSCD)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4291 <entry>0efe97ce08bb0e40162ab15ef3b45615</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4292 <entry>sf.net/projects/camstudio</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4293 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4294 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4295 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4296 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4297
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4298 The first column contains the codec names that should be passed after the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4299 <literal>codec</literal> parameter,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4300 like: <option>-xvfwopts codec=divx.dll</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4301 The FourCC code used by each codec is given in the parentheses.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4302 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4303
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4304 <informalexample>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4305 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4306 An example to convert an ISO DVD trailer to a VP6 flash video file
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4307 using compdata bitrate settings:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4308 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4309 mencoder -dvd-device <replaceable>zeiram.iso</replaceable> dvd://7 -o <replaceable>trailer.flv</replaceable> \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4310 -ovc vfw -xvfwopts codec=vp6vfw.dll:compdata=onepass.mcf -oac mp3lame \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4311 -lameopts cbr:br=64 -af lavcresample=22050 -vf yadif,scale=320:240,flip \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4312 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4313 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4314 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4315 </informalexample>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4316 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4317
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4318 <sect2 id="menc-feat-video-for-windows-bitrate-settings">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4319 <title>Using vfw2menc to create a codec settings file.</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4320
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4321 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4322 To encode with the Video for Windows codecs, you will need to set bitrate
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4323 and other options. This is known to work on x86 on both *NIX and Windows.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4324 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4325 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4326 First you must build the <application>vfw2menc</application> program.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4327 It is located in the <filename class="directory">TOOLS</filename> subdirectory
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4328 of the MPlayer source tree.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4329 To build on Linux, this can be done using <application>Wine</application>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4330 <screen>winegcc vfw2menc.c -o vfw2menc -lwinmm -lole32</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4331
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4332 To build on Windows in <application>MinGW</application> or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4333 <application>Cygwin</application> use:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4334 <screen>gcc vfw2menc.c -o vfw2menc.exe -lwinmm -lole32</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4335
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4336 To build on <application>MSVC</application> you will need getopt.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4337 Getopt can be found in the original <application>vfw2menc</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4338 archive available at:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4339 The <ulink url="http://oss.netfarm.it/mplayer-win32.php">MPlayer on win32</ulink> project.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4340 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4341 <informalexample>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4342 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4343 Below is an example with the VP6 codec.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4344 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4345 vfw2menc -f VP62 -d vp6vfw.dll -s firstpass.mcf
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4346 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4347 This will open the VP6 codec dialog window.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4348 Repeat this step for the second pass
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4349 and use <option>-s <replaceable>secondpass.mcf</replaceable></option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4350 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4351 </informalexample>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4352 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4353 Windows users can use
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4354 <option>-xvfwopts codec=vp6vfw.dll:compdata=dialog</option> to have
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4355 the codec dialog display before encoding starts.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4356 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4357 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4358 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4359
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4360
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4361 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4362
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4363
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4364 <sect1 id="menc-feat-quicktime-7">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4365 <title>Using <application>MEncoder</application> to create
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4366 <application>QuickTime</application>-compatible files</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4367
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4368
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4369 <sect2 id="menc-feat-quicktime-7-why-use-it">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4370 <title>Why would one want to produce <application>QuickTime</application>-compatible Files?</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4371
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4372 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4373 There are several reasons why producing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4374 <application>QuickTime</application>-compatible files can be desirable.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4375 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4376 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4377 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4378 You want any computer illiterate to be able to watch your encode on
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4379 any major platform (Windows, Mac OS X, Unices &hellip;).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4380 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4381 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4382 <application>QuickTime</application> is able to take advantage of more
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4383 hardware and software acceleration features of Mac OS X than
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4384 platform-independent players like <application>MPlayer</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4385 or <application>VLC</application>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4386 That means that your encodes have a chance to be played smoothly by older
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4387 G4-powered machines.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4388 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4389 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4390 <application>QuickTime</application> 7 supports the next-generation codec H.264,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4391 which yields significantly better picture quality than previous codec
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4392 generations (MPEG-2, MPEG-4 &hellip;).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4393 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4394 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4395 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4396
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4397 <sect2 id="menc-feat-quicktime-7-constraints">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4398 <title><application>QuickTime</application> 7 limitations</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4399
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4400 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4401 <application>QuickTime</application> 7 supports H.264 video and AAC audio,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4402 but it does not support them muxed in the AVI container format.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4403 However, you can use <application>MEncoder</application> to encode
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4404 the video and audio, and then use an external program such as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4405 <application>mp4creator</application> (part of the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4406 <ulink url="http://mpeg4ip.sourceforge.net/">MPEG4IP suite</ulink>)
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4407 to remux the video and audio tracks into an MP4 container.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4408 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4409
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4410 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4411 <application>QuickTime</application>'s support for H.264 is limited,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4412 so you will need to drop some advanced features.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4413 If you encode your video with features that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4414 <application>QuickTime</application> 7 does not support,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4415 <application>QuickTime</application>-based players will show you a pretty
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4416 white screen instead of your expected video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4417 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4418
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4419 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4420 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4421 <emphasis role="bold">B-frames</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4422 <application>QuickTime</application> 7 supports a maximum of 1 B-frame, i.e.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4423 <option>-x264encopts bframes=1</option>. This means that
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4424 <option>b_pyramid</option> and <option>weight_b</option> will have no
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4425 effect, since they require <option>bframes</option> to be greater than 1.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4426 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4427 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4428 <emphasis role="bold">Macroblocks</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4429 <application>QuickTime</application> 7 does not support 8x8 DCT macroblocks.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4430 This option (<option>8x8dct</option>) is off by default, so just be sure
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4431 not to explicitly enable it. This also means that the <option>i8x8</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4432 option will have no effect, since it requires <option>8x8dct</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4433 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4434 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4435 <emphasis role="bold">Aspect ratio</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4436 <application>QuickTime</application> 7 does not support SAR (sample
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4437 aspect ratio) information in MPEG-4 files; it assumes that SAR=1. Read
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4438 <link linkend="menc-feat-quicktime-7-scale">the section on scaling</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4439 for a workaround.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4440 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4441 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4442
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4443 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4444
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4445 <sect2 id="menc-feat-quicktime-7-crop">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4446 <title>Cropping</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4447 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4448 Suppose you want to rip your freshly bought copy of "The Chronicles of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4449 Narnia". Your DVD is region 1,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4450 which means it is NTSC. The example below would still apply to PAL,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4451 except you would omit <option>-ofps 24000/1001</option> and use slightly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4452 different <option>crop</option> and <option>scale</option> dimensions.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4453 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4454
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4455 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4456 After running <option>mplayer dvd://1</option>, you follow the process
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4457 detailed in the section <link linkend="menc-feat-telecine">How to deal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4458 with telecine and interlacing in NTSC DVDs</link> and discover that it is
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4459 24000/1001 fps progressive video. This simplifies the process somewhat,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4460 since you do not need to use an inverse telecine filter such as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4461 <option>pullup</option> or a deinterlacing filter such as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4462 <option>yadif</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4463 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4464
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4465 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4466 Next, you need to crop out the black bars from the top and bottom of the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4467 video, as detailed in <link linkend="menc-feat-dvd-mpeg4-example-crop">this</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4468 previous section.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4469 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4470
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4471 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4472
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4473 <sect2 id="menc-feat-quicktime-7-scale">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4474 <title>Scaling</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4475
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4476 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4477 The next step is truly heartbreaking.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4478 <application>QuickTime</application> 7 does not support MPEG-4 videos
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4479 with a sample aspect ratio other than 1, so you will need to upscale
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4480 (which wastes a lot of disk space) or downscale (which loses some
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4481 details of the source) the video to square pixels.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4482 Either way you do it, this is highly inefficient, but simply cannot
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4483 be avoided if you want your video to be playable by
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4484 <application>QuickTime</application> 7.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4485 <application>MEncoder</application> can apply the appropriate upscaling
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4486 or downscaling by specifying respectively <option>-vf scale=-10:-1</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4487 or <option>-vf scale=-1:-10</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4488 This will scale your video to the correct width for the cropped height,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4489 rounded to the closest multiple of 16 for optimal compression.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4490 Remember that if you are cropping, you should crop first, then scale:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4491
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4492 <screen>-vf crop=720:352:0:62,scale=-10:-1</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4493 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4494
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4495 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4496
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4497 <sect2 id="menc-feat-quicktime-7-avsync">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4498 <title>A/V sync</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4499
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4500 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4501 Because you will be remuxing into a different container, you should
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4502 always use the <option>harddup</option> option to ensure that duplicated
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4503 frames are actually duplicated in the video output. Without this option,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4504 <application>MEncoder</application> will simply put a marker in the video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4505 stream that a frame was duplicated, and rely on the client software to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4506 show the same frame twice. Unfortunately, this "soft duplication" does
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4507 not survive remuxing, so the audio would slowly lose sync with the video.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4508 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4509
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4510 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4511 The final filter chain looks like this:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4512 <screen>-vf crop=720:352:0:62,scale=-10:-1,harddup</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4513 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4514
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4515 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4516
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4517 <sect2 id="menc-feat-quicktime-7-bitrate">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4518 <title>Bitrate</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4519
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4520 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4521 As always, the selection of bitrate is a matter of the technical properties
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4522 of the source, as explained
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4523 <link linkend="menc-feat-dvd-mpeg4-resolution-bitrate">here</link>, as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4524 well as a matter of taste.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4525 This movie has a fair bit of action and lots of detail, but H.264 video
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4526 looks good at much lower bitrates than XviD or other MPEG-4 codecs.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4527 After much experimentation, the author of this guide chose to encode
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4528 this movie at 900kbps, and thought that it looked very good.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4529 You may decrease bitrate if you need to save more space, or increase
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4530 it if you need to improve quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4531 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4532
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4533 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4534
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4535 <sect2 id="menc-feat-quicktime-7-example">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4536 <title>Encoding example</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4537
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4538 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4539 You are now ready to encode the video. Since you care about
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4540 quality, of course you will be doing a two-pass encode. To shave off
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4541 some encoding time, you can specify the <option>turbo</option> option
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4542 on the first pass; this reduces <option>subq</option> and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4543 <option>frameref</option> to 1. To save some disk space, you can
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4544 use the <option>ss</option> option to strip off the first few seconds
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4545 of the video. (I found that this particular movie has 32 seconds of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4546 credits and logos.) <option>bframes</option> can be 0 or 1.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4547 The other options are documented in <link
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4548 linkend="menc-feat-x264-encoding-options-speedvquality">Encoding with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4549 the <systemitem class="library">x264</systemitem> codec</link> and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4550 the man page.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4551
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4552 <screen>mencoder dvd://1 -o /dev/null -ss 32 -ovc x264 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4553 -x264encopts pass=1:turbo:bitrate=900:bframes=1:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4554 me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4555 -vf crop=720:352:0:62,scale=-10:-1,harddup \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4556 -oac faac -faacopts br=192:mpeg=4:object=1 -channels 2 -srate 48000 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4557 -ofps 24000/1001</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4558
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4559 If you have a multi-processor machine, don't miss the opportunity to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4560 dramatically speed-up encoding by enabling
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4561 <link linkend="menc-feat-x264-encoding-options-speedvquality-threads">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4562 <systemitem class="library">x264</systemitem>'s multi-threading mode</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4563 by adding <option>threads=auto</option> to your <option>x264encopts</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4564 command-line.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4565 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4566
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4567 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4568 The second pass is the same, except that you specify the output file
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4569 and set <option>pass=2</option>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4570
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4571 <screen>mencoder dvd://1 <emphasis role="bold">-o narnia.avi</emphasis> -ss 32 -ovc x264 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4572 -x264encopts <emphasis role="bold">pass=2</emphasis>:turbo:bitrate=900:frameref=5:bframes=1:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4573 me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4574 -vf crop=720:352:0:62,scale=-10:-1,harddup \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4575 -oac faac -faacopts br=192:mpeg=4:object=1 -channels 2 -srate 48000 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4576 -ofps 24000/1001</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4577 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4578
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4579 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4580 The resulting AVI should play perfectly in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4581 <application>MPlayer</application>, but of course
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4582 <application>QuickTime</application> can not play it because it does
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4583 not support H.264 muxed in AVI.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4584 So the next step is to remux the video into an MP4 container.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4585 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4586 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4587
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4588 <sect2 id="menc-feat-quicktime-7-remux">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4589 <title>Remuxing as MP4</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4590
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4591 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4592 There are several ways to remux AVI files to MP4. You can use
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4593 <application>mp4creator</application>, which is part of the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4594 <ulink url="http://mpeg4ip.sourceforge.net/">MPEG4IP suite</ulink>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4595 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4596
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4597 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4598 First, demux the AVI into separate audio and video streams using
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4599 <application>MPlayer</application>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4600
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4601 <screen>mplayer narnia.avi -dumpaudio -dumpfile narnia.aac
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4602 mplayer narnia.avi -dumpvideo -dumpfile narnia.h264</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4603
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4604 The filenames are important; <application>mp4creator</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4605 requires that AAC audio streams be named <systemitem>.aac</systemitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4606 and H.264 video streams be named <systemitem>.h264</systemitem>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4607 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4608
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4609 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4610 Now use <application>mp4creator</application> to create a new
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4611 MP4 file out of the audio and video streams.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4612
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4613 <screen>mp4creator -create=narnia.aac narnia.mp4
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4614 mp4creator -create=narnia.h264 -rate=23.976 narnia.mp4</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4615
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4616 Unlike the encoding step, you must specify the framerate as a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4617 decimal (such as 23.976), not a fraction (such as 24000/1001).
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4618 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4619
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4620 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4621 This <systemitem>narnia.mp4</systemitem> file should now be playable
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4622 with any <application>QuickTime</application> 7 application, such as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4623 <application>QuickTime Player</application> or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4624 <application>iTunes</application>. If you are planning to view the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4625 video in a web browser with the <application>QuickTime</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4626 plugin, you should also hint the movie so that the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4627 <application>QuickTime</application> plugin can start playing it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4628 while it is still downloading. <application>mp4creator</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4629 can create these hint tracks:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4630
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4631 <screen>mp4creator -hint=1 narnia.mp4
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4632 mp4creator -hint=2 narnia.mp4
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4633 mp4creator -optimize narnia.mp4</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4634
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4635 You can check the final result to ensure that the hint tracks were
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4636 created successfully:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4637
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4638 <screen>mp4creator -list narnia.mp4</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4639
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4640 You should see a list of tracks: 1 audio, 1 video, and 2 hint tracks.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4641
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4642 <screen>Track Type Info
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4643 1 audio MPEG-4 AAC LC, 8548.714 secs, 190 kbps, 48000 Hz
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4644 2 video H264 Main@5.1, 8549.132 secs, 899 kbps, 848x352 @ 23.976001 fps
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4645 3 hint Payload mpeg4-generic for track 1
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4646 4 hint Payload H264 for track 2
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4647 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4648 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4649
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4650 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4651
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4652 <sect2 id="menc-feat-quicktime-7-metadata">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4653 <title>Adding metadata tags</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4654
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4655 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4656 If you want to add tags to your video that show up in iTunes, you can use
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4657 <ulink url="http://atomicparsley.sourceforge.net/">AtomicParsley</ulink>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4658
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4659 <screen>AtomicParsley narnia.mp4 --metaEnema --title "The Chronicles of Narnia" --year 2005 --stik Movie --freefree --overWrite</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4660
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4661 The <option>--metaEnema</option> option removes any existing metadata
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4662 (<application>mp4creator</application> inserts its name in the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4663 "encoding tool" tag), and <option>--freefree</option> reclaims the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4664 space from the deleted metadata.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4665 The <option>--stik</option> option sets the type of video (such as Movie
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4666 or TV Show), which iTunes uses to group related video files.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4667 The <option>--overWrite</option> option overwrites the original file;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4668 without it, <application>AtomicParsley</application> creates a new
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4669 auto-named file in the same directory and leaves the original file
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4670 untouched.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4671 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4672
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4673 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4674
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4675 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4676
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4677
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4678 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4679
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4680
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4681 <sect1 id="menc-feat-vcd-dvd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4682 <title>Using <application>MEncoder</application>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4683 to create VCD/SVCD/DVD-compliant files</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4684
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4685 <sect2 id="menc-feat-vcd-dvd-constraints">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4686 <title>Format Constraints</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4687
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4688 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4689 <application>MEncoder</application> is capable of creating VCD, SCVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4690 and DVD format MPEG files using the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4691 <systemitem class="library">libavcodec</systemitem> library.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4692 These files can then be used in conjunction with
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4693 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4694 or
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4695 <ulink url="http://dvdauthor.sourceforge.net/">dvdauthor</ulink>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4696 to create discs that will play on a standard set-top player.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4697 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4698
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4699 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4700 The DVD, SVCD, and VCD formats are subject to heavy constraints.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4701 Only a small selection of encoded picture sizes and aspect ratios are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4702 available.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4703 If your movie does not already meet these requirements, you may have
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4704 to scale, crop or add black borders to the picture to make it
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4705 compliant.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4706 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4707
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4708
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4709 <sect3 id="menc-feat-vcd-dvd-constraints-resolution">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4710 <title>Format Constraints</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4711
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4712 <informaltable frame="all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4713 <tgroup cols="9">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4714 <thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4715 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4716 <entry>Format</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4717 <entry>Resolution</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4718 <entry>V. Codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4719 <entry>V. Bitrate</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4720 <entry>Sample Rate</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4721 <entry>A. Codec</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4722 <entry>A. Bitrate</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4723 <entry>FPS</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4724 <entry>Aspect</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4725 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4726 </thead>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4727 <tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4728 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4729 <entry>NTSC DVD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4730 <entry>720x480, 704x480, 352x480, 352x240</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4731 <entry>MPEG-2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4732 <entry>9800 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4733 <entry>48000 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4734 <entry>AC-3,PCM</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4735 <entry>1536 kbps (max)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4736 <entry>30000/1001, 24000/1001</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4737 <entry>4:3, 16:9 (only for 720x480)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4738 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4739 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4740 <entry>NTSC DVD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4741 <entry>352x240<footnote id='fn-rare-resolutions'><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4742 These resolutions are rarely used for DVDs because
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4743 they are fairly low quality.</para></footnote></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4744 <entry>MPEG-1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4745 <entry>1856 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4746 <entry>48000 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4747 <entry>AC-3,PCM</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4748 <entry>1536 kbps (max)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4749 <entry>30000/1001, 24000/1001</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4750 <entry>4:3, 16:9</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4751 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4752 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4753 <entry>NTSC SVCD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4754 <entry>480x480</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4755 <entry>MPEG-2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4756 <entry>2600 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4757 <entry>44100 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4758 <entry>MP2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4759 <entry>384 kbps (max)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4760 <entry>30000/1001</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4761 <entry>4:3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4762 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4763 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4764 <entry>NTSC VCD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4765 <entry>352x240</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4766 <entry>MPEG-1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4767 <entry>1150 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4768 <entry>44100 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4769 <entry>MP2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4770 <entry>224 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4771 <entry>24000/1001, 30000/1001</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4772 <entry>4:3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4773 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4774 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4775 <entry>PAL DVD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4776 <entry>720x576, 704x576, 352x576, 352x288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4777 <entry>MPEG-2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4778 <entry>9800 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4779 <entry>48000 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4780 <entry>MP2,AC-3,PCM</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4781 <entry>1536 kbps (max)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4782 <entry>25</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4783 <entry>4:3, 16:9 (only for 720x576)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4784 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4785 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4786 <entry>PAL DVD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4787 <entry>352x288<footnoteref linkend='fn-rare-resolutions'/></entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4788 <entry>MPEG-1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4789 <entry>1856 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4790 <entry>48000 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4791 <entry>MP2,AC-3,PCM</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4792 <entry>1536 kbps (max)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4793 <entry>25</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4794 <entry>4:3, 16:9</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4795 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4796 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4797 <entry>PAL SVCD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4798 <entry>480x576</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4799 <entry>MPEG-2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4800 <entry>2600 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4801 <entry>44100 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4802 <entry>MP2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4803 <entry>384 kbps (max)</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4804 <entry>25</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4805 <entry>4:3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4806 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4807 <row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4808 <entry>PAL VCD</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4809 <entry>352x288</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4810 <entry>MPEG-1</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4811 <entry>1152 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4812 <entry>44100 Hz</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4813 <entry>MP2</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4814 <entry>224 kbps</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4815 <entry>25</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4816 <entry>4:3</entry>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4817 </row>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4818 </tbody>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4819 </tgroup>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4820 </informaltable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4821
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4822 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4823 If your movie has 2.35:1 aspect (most recent action movies), you will
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4824 have to add black borders or crop the movie down to 16:9 to make a DVD or VCD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4825 If you add black borders, try to align them at 16-pixel boundaries in
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4826 order to minimize the impact on encoding performance.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4827 Thankfully DVD has sufficiently excessive bitrate that you do not have
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4828 to worry too much about encoding efficiency, but SVCD and VCD are
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4829 highly bitrate-starved and require effort to obtain acceptable quality.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4830 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4831 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4832
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4833
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4834 <sect3 id="menc-feat-vcd-dvd-constraints-gop">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4835 <title>GOP Size Constraints</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4836
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4837 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4838 DVD, VCD, and SVCD also constrain you to relatively low
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4839 GOP (Group of Pictures) sizes.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4840 For 30 fps material the largest allowed GOP size is 18.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4841 For 25 or 24 fps, the maximum is 15.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4842 The GOP size is set using the <option>keyint</option> option.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4843 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4844 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4845
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4846
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4847 <sect3 id="menc-feat-vcd-dvd-constraints-bitrate">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4848 <title>Bitrate Constraints</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4849
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4850 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4851 VCD video is required to be CBR at 1152 kbps.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4852 This highly limiting constraint also comes along with an extremly low vbv
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4853 buffer size of 327 kilobits.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4854 SVCD allows varying video bitrates up to 2500 kbps, and a somewhat less
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4855 restrictive vbv buffer size of 917 kilobits is allowed.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4856 DVD video bitrates may range anywhere up to 9800 kbps (though typical
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4857 bitrates are about half that), and the vbv buffer size is 1835 kilobits.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4858 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4859 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4860 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4861
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4862 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4863
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4864 <sect2 id="menc-feat-vcd-dvd-output">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4865 <title>Output Options</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4866
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4867 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4868 <application>MEncoder</application> has options to control the output
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4869 format.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4870 Using these options we can instruct it to create the correct type of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4871 file.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4872 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4873
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4874 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4875 The options for VCD and SVCD are called xvcd and xsvcd, because they
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4876 are extended formats.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4877 They are not strictly compliant, mainly because the output does not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4878 contain scan offsets.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4879 If you need to generate an SVCD image, you should pass the output file to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4880 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4881 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4882
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4883 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4884 VCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4885 <screen>-of mpeg -mpegopts format=xvcd</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4886 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4887
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4888 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4889 SVCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4890 <screen>-of mpeg -mpegopts format=xsvcd</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4891 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4892
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4893 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4894 DVD (with timestamps on every frame, if possible):
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4895 <screen>-of mpeg -mpegopts format=dvd:tsaf</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4896 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4897
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4898 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4899 DVD with NTSC Pullup:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4900 <screen>-of mpeg -mpegopts format=dvd:tsaf:telecine -ofps 24000/1001</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4901 This allows 24000/1001 fps progressive content to be encoded at 30000/1001
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4902 fps whilst maintaing DVD-compliance.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4903 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4904
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4905
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4906 <sect3 id="menc-feat-vcd-dvd-output-aspect">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4907 <title>Aspect Ratio</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4908
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4909 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4910 The aspect argument of <option>-lavcopts</option> is used to encode
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4911 the aspect ratio of the file.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4912 During playback the aspect ratio is used to restore the video to the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4913 correct size.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4914 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4915
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4916 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4917 16:9 or "Widescreen"
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4918 <screen>-lavcopts aspect=16/9</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4919 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4920
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4921 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4922 4:3 or "Fullscreen"
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4923 <screen>-lavcopts aspect=4/3</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4924 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4925
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4926 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4927 2.35:1 or "Cinemascope" NTSC
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4928 <screen>-vf scale=720:368,expand=720:480 -lavcopts aspect=16/9</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4929 To calculate the correct scaling size, use the expanded NTSC width of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4930 854/2.35 = 368
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4931 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4932
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4933 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4934 2.35:1 or "Cinemascope" PAL
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4935 <screen>-vf scale=720:432,expand=720:576 -lavcopts aspect=16/9</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4936 To calculate the correct scaling size, use the expanded PAL width of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4937 1024/2.35 = 432
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4938 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4939 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4940
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4941
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4942 <sect3 id="menc-feat-vcd-dvd-a-v-sync">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4943 <title>Maintaining A/V sync</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4944
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4945 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4946 In order to maintain audio/video synchronization throughout the encode,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4947 <application>MEncoder</application> has to drop or duplicate frames.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4948 This works rather well when muxing into an AVI file, but is almost
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4949 guaranteed to fail to maintain A/V sync with other muxers such as MPEG.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4950 This is why it is necessary to append the
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4951 <option>harddup</option> video filter at the end of the filter chain
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4952 to avoid this kind of problem.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4953 You can find more technical information about <option>harddup</option>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4954 in the section
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4955 <link linkend="menc-feat-dvd-mpeg4-muxing-filter-issues">Improving muxing and A/V sync reliability</link>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4956 or in the manual page.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4957 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4958 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4959
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4960
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4961 <sect3 id="menc-feat-vcd-dvd-output-srate">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4962 <title>Sample Rate Conversion</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4963
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4964 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4965 If the audio sample rate in the original file is not the same as
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4966 required by the target format, sample rate conversion is required.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4967 This is achieved using the <option>-srate</option> option and
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4968 the <option>-af lavcresample</option> audio filter together.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4969 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4970
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4971 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4972 DVD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4973 <screen>-srate 48000 -af lavcresample=48000</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4974 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4975
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4976 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4977 VCD and SVCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4978 <screen>-srate 44100 -af lavcresample=44100</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4979 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4980 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4981 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4982
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4983 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4984
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4985 <sect2 id="menc-feat-vcd-dvd-lavc">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4986 <title>Using libavcodec for VCD/SVCD/DVD Encoding</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4987
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4988 <sect3 id="menc-feat-vcd-dvd-lavc-intro">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4989 <title>Introduction</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4990
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4991 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4992 <systemitem class="library">libavcodec</systemitem> can be used to
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4993 create VCD/SVCD/DVD compliant video by using the appropriate options.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4994 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4995 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4996
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4997
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4998 <sect3 id="menc-feat-vcd-dvd-lavc-options">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
4999 <title>lavcopts</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5000
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5001 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5002 This is a list of fields in <option>-lavcopts</option> that you may
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5003 be required to change in order to make a complaint movie for VCD, SVCD,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5004 or DVD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5005 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5006
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5007 <itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5008 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5009 <emphasis role="bold">acodec</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5010 <option>mp2</option> for VCD, SVCD, or PAL DVD;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5011 <option>ac3</option> is most commonly used for DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5012 PCM audio may also be used for DVD, but this is mostly a big waste of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5013 space.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5014 Note that MP3 audio is not compliant for any of these formats, but
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5015 players often have no problem playing it anyway.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5016 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5017 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5018 <emphasis role="bold">abitrate</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5019 224 for VCD; up to 384 for SVCD; up to 1536 for DVD, but commonly
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5020 used values range from 192 kbps for stereo to 384 kbps for 5.1 channel
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5021 sound.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5022 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5023 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5024 <emphasis role="bold">vcodec</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5025 <option>mpeg1video</option> for VCD;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5026 <option>mpeg2video</option> for SVCD;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5027 <option>mpeg2video</option> is usually used for DVD but you may also use
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5028 <option>mpeg1video</option> for CIF resolutions.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5029 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5030 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5031 <emphasis role="bold">keyint</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5032 Used to set the GOP size.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5033 18 for 30fps material, or 15 for 25/24 fps material.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5034 Commercial producers seem to prefer keyframe intervals of 12.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5035 It is possible to make this much larger and still retain compatibility
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5036 with most players.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5037 A <option>keyint</option> of 25 should never cause any problems.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5038 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5039 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5040 <emphasis role="bold">vrc_buf_size</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5041 327 for VCD, 917 for SVCD, and 1835 for DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5042 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5043 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5044 <emphasis role="bold">vrc_minrate</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5045 1152, for VCD. May be left alone for SVCD and DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5046 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5047 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5048 <emphasis role="bold">vrc_maxrate</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5049 1152 for VCD; 2500 for SVCD; 9800 for DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5050 For SVCD and DVD, you might wish to use lower values depending on your
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5051 own personal preferences and requirements.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5052 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5053 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5054 <emphasis role="bold">vbitrate</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5055 1152 for VCD;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5056 up to 2500 for SVCD;
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5057 up to 9800 for DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5058 For the latter two formats, vbitrate should be set based on personal
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5059 preference.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5060 For instance, if you insist on fitting 20 or so hours on a DVD, you
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5061 could use vbitrate=400.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5062 The resulting video quality would probably be quite bad.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5063 If you are trying to squeeze out the maximum possible quality on a DVD,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5064 use vbitrate=9800, but be warned that this could constrain you to less
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5065 than an hour of video on a single-layer DVD.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5066 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5067 <listitem><para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5068 <emphasis role="bold">vstrict</emphasis>:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5069 <option>vstrict</option>=0 should be used to create DVDs.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5070 Without this option, <application>MEncoder</application> creates a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5071 stream that cannot be correctly decoded by some standalone DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5072 players.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5073 </para></listitem>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5074 </itemizedlist>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5075 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5076
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5077
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5078 <sect3 id="menc-feat-vcd-dvd-lavc-examples">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5079 <title>Examples</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5080
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5081 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5082 This is a typical minimum set of <option>-lavcopts</option> for
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5083 encoding video:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5084 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5085 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5086 VCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5087 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5088 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:vrc_minrate=1152:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5089 vrc_maxrate=1152:vbitrate=1152:keyint=15:acodec=mp2
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5090 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5091 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5092
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5093 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5094 SVCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5095 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5096 -lavcopts vcodec=mpeg2video:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=1800:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5097 keyint=15:acodec=mp2
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5098 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5099 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5100
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5101 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5102 DVD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5103 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5104 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5105 keyint=15:vstrict=0:acodec=ac3
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5106 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5107 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5108 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5109
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5110
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5111 <sect3 id="menc-feat-vcd-dvd-lavc-advanced">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5112 <title>Advanced Options</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5113
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5114 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5115 For higher quality encoding, you may also wish to add quality-enhancing
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5116 options to lavcopts, such as <option>trell</option>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5117 <option>mbd=2</option>, and others.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5118 Note that <option>qpel</option> and <option>v4mv</option>, while often
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5119 useful with MPEG-4, are not usable with MPEG-1 or MPEG-2.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5120 Also, if you are trying to make a very high quality DVD encode, it may
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5121 be useful to add <option>dc=10</option> to lavcopts.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5122 Doing so may help reduce the appearance of blocks in flat-colored areas.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5123 Putting it all together, this is an example of a set of lavcopts for a
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5124 higher quality DVD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5125 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5126
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5127 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5128 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5129 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5130 keyint=15:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5131 vqmin=1:lmin=1:dc=10:vstrict=0
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5132 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5133 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5134 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5135 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5136
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5137 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5138
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5139 <sect2 id="menc-feat-vcd-dvd-audio">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5140 <title>Encoding Audio</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5141
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5142 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5143 VCD and SVCD support MPEG-1 layer II audio, using one of
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5144 <systemitem class="library">toolame</systemitem>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5145 <systemitem class="library">twolame</systemitem>,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5146 or <systemitem class="library">libavcodec</systemitem>'s MP2 encoder.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5147 The libavcodec MP2 is far from being as good as the other two libraries,
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5148 however it should always be available to use.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5149 VCD only supports constant bitrate audio (CBR) whereas SVCD supports
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5150 variable bitrate (VBR), too.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5151 Be careful when using VBR because some bad standalone players might not
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5152 support it too well.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5153 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5154
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5155 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5156 For DVD audio, <systemitem class="library">libavcodec</systemitem>'s
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5157 AC-3 codec is used.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5158 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5159
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5160
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5161 <sect3 id="menc-feat-vcd-dvd-audio-toolame">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5162 <title>toolame</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5163
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5164 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5165 For VCD and SVCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5166 <screen>-oac toolame -toolameopts br=224</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5167 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5168 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5169
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5170
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5171 <sect3 id="menc-feat-vcd-dvd-audio-twolame">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5172 <title>twolame</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5173
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5174 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5175 For VCD and SVCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5176 <screen>-oac twolame -twolameopts br=224</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5177 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5178 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5179
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5180
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5181 <sect3 id="menc-feat-vcd-dvd-audio-lavc">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5182 <title>libavcodec</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5183
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5184 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5185 For DVD with 2 channel sound:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5186 <screen>-oac lavc -lavcopts acodec=ac3:abitrate=192</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5187 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5188
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5189 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5190 For DVD with 5.1 channel sound:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5191 <screen>-channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=384</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5192 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5193
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5194 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5195 For VCD and SVCD:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5196 <screen>-oac lavc -lavcopts acodec=mp2:abitrate=224</screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5197 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5198 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5199 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5200
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5201 <!-- ********** -->
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5202
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5203 <sect2 id="menc-feat-vcd-dvd-all">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5204 <title>Putting it all Together</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5205
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5206 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5207 This section shows some complete commands for creating VCD/SVCD/DVD
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5208 compliant videos.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5209 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5210
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5211
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5212 <sect3 id="menc-feat-vcd-dvd-all-pal-dvd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5213 <title>PAL DVD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5214
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5215 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5216 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5217 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5218 -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5219 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5220 keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5221 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5222 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5223 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5224 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5225
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5226
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5227 <sect3 id="menc-feat-vcd-dvd-all-ntsc-dvd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5228 <title>NTSC DVD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5229
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5230 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5231 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5232 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5233 -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5234 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5235 keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5236 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5237 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5238 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5239 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5240
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5241
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5242 <sect3 id="menc-feat-vcd-dvd-all-pal-ac3-copy">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5243 <title>PAL AVI Containing AC-3 Audio to DVD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5244
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5245 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5246 If the source already has AC-3 audio, use -oac copy instead of re-encoding it.
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5247 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5248 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5249 -vf scale=720:576,harddup -ofps 25 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5250 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5251 keyint=15:vstrict=0:aspect=16/9 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5252 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5253 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5254 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5255
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5256
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5257 <sect3 id="menc-feat-vcd-dvd-all-ntsc-ac3-copy">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5258 <title>NTSC AVI Containing AC-3 Audio to DVD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5259
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5260 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5261 If the source already has AC-3 audio, and is NTSC @ 24000/1001 fps:
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5262 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5263 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5264 -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5265 vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5266 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5267 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5268 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5269 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5270
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5271
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5272 <sect3 id="menc-feat-vcd-dvd-all-pal-svcd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5273 <title>PAL SVCD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5274
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5275 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5276 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5277 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5278 scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5279 vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5280 vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5281 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5282 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5283 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5284 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5285
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5286
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5287 <sect3 id="menc-feat-vcd-dvd-all-ntsc-svcd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5288 <title>NTSC SVCD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5289
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5290 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5291 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5292 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5293 scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5294 vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5295 vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5296 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5297 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5298 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5299 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5300
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5301
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5302 <sect3 id="menc-feat-vcd-dvd-all-pal-vcd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5303 <title>PAL VCD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5304
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5305 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5306 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5307 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5308 scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5309 vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5310 vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5311 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5312 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5313 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5314 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5315
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5316
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5317 <sect3 id="menc-feat-vcd-dvd-all-ntsc-vcd">
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5318 <title>NTSC VCD</title>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5319
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5320 <para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5321 <screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5322 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5323 scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5324 vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:\
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5325 vbitrate=1152:vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5326 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5327 </screen>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5328 </para>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5329 </sect3>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5330 </sect2>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5331 </sect1>
2838dc7a68f3 initial submit for revision... 24% synced with r22753
ptt
parents:
diff changeset
5332 </chapter>