annotate DOCS/xml/en/mencoder.xml @ 16017:41ca23f65baa

lacv supports cgop, you can use '.' to watch a video frame-by frame to identify which type it is, and not short forms in the docs. ... now the question is, how many commits to fix this one ? :-)
author gpoirier
date Tue, 19 Jul 2005 22:03:15 +0000
parents d7a8675c2fe1
children 048b7c9b198b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 <?xml version="1.0" encoding="iso-8859-1"?>
10913
49b1a67e7381 Add revision keyword to english xml files, to ease translation synchronization
lumag
parents: 10869
diff changeset
2 <!-- $Revision$ -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <chapter id="mencoder">
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
4 <title>Encoding with <application>MEncoder</application></title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 For the complete list of available <application>MEncoder</application> options
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 and examples, please see the man page. For a series of hands-on examples and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 detailed guides on using several encoding parameters, read the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 <ulink url="../../tech/encoding-tips.txt">encoding-tips</ulink> that were
15029
b0dd473ed38a correct spelling for mailing list names
diego
parents: 15010
diff changeset
11 collected from several mailing list threads on MPlayer-users. Search the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 <ulink url="http://mplayerhq.hu/pipermail/mplayer-users/">archives</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 for a wealth of discussions about all aspects of and problems related to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 encoding with <application>MEncoder</application>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
17 <sect1 id="menc-feat-mpeg4">
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
18 <title>Encoding two pass MPEG-4 (&quot;DivX&quot;)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 The name comes from the fact that this method encodes the file <emphasis>twice</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 The first encoding (dubbed pass) creates some temporary files
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 (<filename>*.log</filename>) with a size of few megabytes, do not delete
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
24 them yet (you can delete the AVI). In the second pass, the two pass output
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 file is created, using the bitrate data from the temporary files. The
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 resulting file will have much better image quality. If this is the first
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 time you heard about this, you should consult some guides available on the
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
28 net.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
31 <example>
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
32 <title>copy audio track</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 <para>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
34 Two pass encode of a DVD to an MPEG-4 (&quot;DivX&quot;) AVI while copying
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
35 the audio track.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
37 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o <replaceable>movie.avi</replaceable>
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
38 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o <replaceable>movie.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
39 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 </para>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
41 </example>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
42
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 <example>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
44 <title>encode audio track</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 <para>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
46 Two pass encode of a DVD to an MPEG-4 (&quot;DivX&quot;) AVI while encoding
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
47 the audio track to MP3.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 <screen>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
49 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o <replaceable>movie.avi</replaceable>
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
50 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o <replaceable>movie.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 <sect1 id="menc-feat-mpeg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 <title>Encoding to MPEG format</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 <application>MEncoder</application> can create MPEG (MPEG-PS) format output
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
60 files. It is probably useful only with
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
61 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
62 <emphasis>mpeg1video</emphasis> codec, because players - except
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
63 <application>MPlayer</application> - expect MPEG-1 video, and MPEG-1 layer 2 (MP2)
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
64 audio streams in MPEG files.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 <para>
11680
f2f7c22847b3 added capital letter at the beginning of the sentence
paszczi
parents: 11540
diff changeset
68 This feature is not very useful right now, aside that it probably has many bugs,
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
69 but the more importantly because <application>MEncoder</application> currently
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
70 cannot encode MPEG-1 layer 2 (MP2) audio, which all other players expect in MPEG files.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 <para>
12578
3f543ec01d1e 's should be outside of <application> tags.
diego
parents: 12484
diff changeset
74 To change <application>MEncoder</application>'s output file format,
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
75 use the <option>-of mpeg</option> option.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
81 mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other_options</replaceable> <replaceable>media.avi</replaceable> -o <replaceable>output.mpg</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 <sect1 id="menc-feat-rescale">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 <title>Rescaling movies</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 Often the need to resize movie images' size emerges. Its reasons can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92 many: decreasing file size, network bandwidth,etc. Most people even do
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
93 rescaling when converting DVDs or SVCDs to DivX AVI. If you wish to rescale,
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
94 read the <link linkend="aspect">Preserving aspect ratio</link> section.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
96
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
97 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 The scaling process is handled by the <literal>scale</literal> video filter:
9677
142c42fa0986 sync with HTML
nicolas
parents: 9675
diff changeset
99 <option>-vf scale=<replaceable>width</replaceable>:<replaceable>height</replaceable></option>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 Its quality can be set with the <option>-sws</option> option.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
101 If it is not specified, <application>MEncoder</application> will use 2: bicubic.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 <screen>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
107 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480 -o <replaceable>output.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 <sect1 id="menc-feat-streamcopy">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 <title>Stream copying</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
115
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
116 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 <application>MEncoder</application> can handle input streams in two ways:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 them. This section is about <emphasis role="bold">copying</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
121
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
126 MPEG-1 video into an AVI file! Of course only
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 <application>MPlayer</application> can play such files :) And it probably
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128 has no real life value at all. Rationally: video stream copying can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 useful for example when only the audio stream has to be encoded (like,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 uncompressed PCM to MP3).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133 <emphasis role="bold">Audio stream</emphasis> (option <option>-oac copy</option>):
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
134 straightforward. It is possible to take an external audio file (MP3,
10429
diego
parents: 10184
diff changeset
135 WAV) and mux it into the output stream. Use the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 <option>-audiofile <replaceable>filename</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 for this.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 <sect1 id="menc-feat-enc-libavcodec">
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
144 <title>Encoding with the <systemitem class="library">libavcodec</systemitem>
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
145 codec family</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
148 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
149 provides simple encoding to a lot of interesting video and audio formats.
11747
6ed241d3db16 lavc audio codecs are now supported.
diego
parents: 11732
diff changeset
150 You can encode to the following codecs (more or less up to date):
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 <informaltable frame="all">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 <tgroup cols="2">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 <thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 <row><entry>Codec name</entry><entry>Description</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 </thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 <tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 <row><entry>mjpeg</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159 Motion JPEG
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
161 <row><entry>ljpeg</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
162 Lossless JPEG
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
163 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 <row><entry>h263</entry><entry>
13111
fad3639920d5 H.263 spelling
diego
parents: 13022
diff changeset
165 H.263
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167 <row><entry>h263p</entry><entry>
13111
fad3639920d5 H.263 spelling
diego
parents: 13022
diff changeset
168 H.263+
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 <row><entry>mpeg4</entry><entry>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
171 ISO standard MPEG-4 (DivX 5, XVID compatible)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 <row><entry>msmpeg4</entry><entry>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
174 pre-standard MPEG-4 variant by MS, v3 (AKA DivX3)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 <row><entry>msmpeg4v2</entry><entry>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
177 pre-standard MPEG-4 by MS, v2 (used in old asf files)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
179 <row><entry>wmv1</entry><entry>
13222
diego
parents: 13111
diff changeset
180 Windows Media Video, version 1 (AKA WMV7)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
182 <row><entry>wmv2</entry><entry>
13222
diego
parents: 13111
diff changeset
183 Windows Media Video, version 2 (AKA WMV8)
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
184 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 <row><entry>rv10</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 an old RealVideo codec
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <row><entry>mpeg1video</entry><entry>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
189 MPEG-1 video
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
190 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
191 <row><entry>mpeg2video</entry><entry>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
192 MPEG-2 video
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 <row><entry>huffyuv</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 lossless compression
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
197 <row><entry>asv1</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
198 ASUS Video v1
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
199 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
200 <row><entry>asv2</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
201 ASUS Video v2
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
202 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
203 <row><entry>ffv1</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
204 FFmpeg's lossless video codec
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
205 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 </tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 </tgroup>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208 </informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 The first column contains the codec names that should be passed after the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 <literal>vcodec</literal> config, like: <option>-lavcopts vcodec=msmpeg4</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 An example, with MJPEG compression:
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10065
diff changeset
217 <screen>mencoder dvd://2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
220 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 <sect1 id="menc-feat-enc-images">
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
224 <title>Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 <application>MEncoder</application> is capable of creating movies from one
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
228 or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
231
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 <title>Explanation of the process:</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 will use <systemitem class="library">libpng</systemitem>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
238 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 <application>MEncoder</application> then feeds the decoded image to the
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
241 chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.).
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
242 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 <title>Examples</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
248 The explanation of the <option>-mf</option> option is in the man page.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
252 Creating an MPEG-4 file from all the JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
254 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
255 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
256 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
261 Creating an MPEG-4 file from some JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
263 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
264 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
271 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
273 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
274 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
280 Creating an uncompressed file from all the PNG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
282 mencoder mf:// -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable>
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
283 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 <note><para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
288 Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
291 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
292 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 Creating a Motion PNG (MPNG) file from all the PNG files in the current
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
294 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
296 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable> <!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 Creating a Motion TGA (MTGA) file from all the TGA files in the current
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
304 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
306 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
314
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
315
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 <sect1 id="menc-feat-extractsub">
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 12599
diff changeset
317 <title>Extracting DVD subtitles to VOBsub file</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <application>MEncoder</application> is capable of extracting subtitles from
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 12599
diff changeset
321 a DVD into VOBsub formatted files. They consist of a pair of files ending in
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 <filename>.idx</filename> and <filename>.sub</filename> and are usually
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 packaged in a single <filename>.rar</filename> archive.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 <application>MPlayer</application> can play these with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 <option>-vobsub</option> and <option>-vobsubid</option> options.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 You specify the basename (i.e without the <filename>.idx</filename> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 <filename>.sub</filename> extension) of the output files with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 <option>-vobsubout</option> and the index for this subtitle in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 resulting files with <option>-vobsuboutindex</option>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 If the input is not from a DVD you should use <option>-ifo</option> to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 indicate the <filename>.ifo</filename> file needed to construct the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 resulting <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 If the input is not from a DVD and you do not have the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 <filename>.ifo</filename> file you will need to use the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 <option>-vobsubid</option> option to let it know what language id to put in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 the <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
347
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
349 Each run will append the running subtitle if the <filename>.idx</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 and <filename>.sub</filename> files already exist. So you should remove any
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351 before starting.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 <example>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
355 <title>Copying two subtitles from a DVD while doing two pass encoding</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 rm subtitles.idx subtitles.sub
12776
1154a70ade70 3-pass encoding is evil.
diego
parents: 12758
diff changeset
358 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -vobsubout subtitles -vobsuboutindex 0 -sid 2
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
359 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -vobsubout subtitles -vobsuboutindex 1 -sid 5<!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
362
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 <title>Copying a french subtitle from an MPEG file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
365 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366 rm subtitles.idx subtitles.sub
15492
d2073ff48b5b Fixes the vobsub extraction example
gpoirier
parents: 15487
diff changeset
367 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1 -nosound -ovc copy
d2073ff48b5b Fixes the vobsub extraction example
gpoirier
parents: 15487
diff changeset
368 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
369 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
370
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373 <sect1 id="aspect">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
374 <title>Preserving aspect ratio</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
375 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
376 DVDs and SVCDs (i.e. MPEG-1/2) files contain an aspect ratio value, which
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
377 describes how the player should scale the video stream, so humans will not
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
379 (DivX) files, you have be aware that AVI headers do not store this value.
10065
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
380 Rescaling the movie is disgusting and time consuming, there has to be a better
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
381 way!
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
383
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
384 <para>There is</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
387 MPEG-4 has an unique feature: the video stream can contain its needed aspect
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
388 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 <emphasis role="bold">no</emphasis> video players outside which support this
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
390 attribute of MPEG-4, except <application>MPlayer</application>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
391 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
394 This feature can be used only with
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
395 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
396 <systemitem>mpeg4</systemitem> codec. Keep in mind: although
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
397 <application>MPlayer</application> will correctly play the created file,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
398 other players will use the wrong aspect ratio.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
400
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
401 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
402 You seriously should crop the black bands over and below the movie image.
10065
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
403 See the man page for the usage of the <systemitem>cropdetect</systemitem> and
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404 <systemitem>crop</systemitem> filters.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407 <para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
408 Usage
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
409 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o <replaceable>output.avi</replaceable></screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
410 </para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
411 </sect1>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
412
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
413 <sect1 id="custommatrices"><title>Custom inter/intra matrices</title>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
414
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
415 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
416 With this feature of
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
417 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
13022
diego
parents: 12776
diff changeset
418 you are able to set custom inter (I-frames/keyframes) and intra
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
419 (P-frames/predicted frames) matrices. It is supported by many of the codecs:
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
420 <systemitem>mpeg1video</systemitem> and <systemitem>mpeg2video</systemitem>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
421 are reported as working.
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
422 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
423
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
424 <para>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
425 A typical usage of this feature is to set the matrices preferred by the
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
426 <ulink url="http://www.kvcd.net/">KVCD</ulink> specifications.
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
427 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
428
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
429 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
430 The <emphasis role="bold">KVCD &quot;Notch&quot; Quantization Matrix:</emphasis>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
431 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
432
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
433 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
434 Intra:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
435 <screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
436 8 9 12 22 26 27 29 34
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
437 9 10 14 26 27 29 34 37
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
438 12 14 18 27 29 34 37 38
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
439 22 26 27 31 36 37 38 40
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
440 26 27 29 36 39 38 40 48
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
441 27 29 34 37 38 40 48 58
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
442 29 34 37 38 40 48 58 69
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
443 34 37 38 40 48 58 69 79
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
444 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
445
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
446 Inter:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
447 <screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
448 16 18 20 22 24 26 28 30
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
449 18 20 22 24 26 28 30 32
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
450 20 22 24 26 28 30 32 34
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
451 22 24 26 30 32 32 34 36
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
452 24 26 28 32 34 34 36 38
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
453 26 28 30 32 34 36 38 40
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
454 28 30 32 34 36 38 42 42
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
455 30 32 34 36 38 40 42 44
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
456 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
457 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
458
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
459 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
460 Usage:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
461 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
462 $ mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.avi</replaceable> -oac copy -ovc lavc -lavcopts inter_matrix=...:intra_matrix=...
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
463 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
464 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
465
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
466 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
467 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
468 $ mencoder <replaceable>input.avi</replaceable> -ovc lavc -lavcopts
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
469 vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
470 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,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
471 29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
472 :inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
473 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,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
474 36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44 -oac copy -o svcd.mpg
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
475 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
476 </para>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
477 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
478
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
479 <sect1 id="menc-feat-dvd-mpeg4">
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
480 <title>Making a high quality MPEG-4 (&quot;DivX&quot;) rip of a DVD movie</title>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
481
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
482 <para>
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
483 One frequently asked question is "How do I make the highest quality rip for
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
484 a given size?". Another question is "How do I make the highest quality DVD
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
485 rip possible? I do not care about file size, I just want the best quality."
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
486 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
487
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
488 <para>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
489 The latter question is perhaps at least somewhat wrongly posed. After all, if
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
490 you do not care about file size, why not simply copy the entire MPEG-2 video
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
491 stream from the the DVD? Sure, your AVI will end up being 5GB, give
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
492 or take, but if you want the best quality and do not care about size,
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
493 this is certainly your best option.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
494 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
495
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
496 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
497 In fact, the reason you want to transcode a DVD into MPEG-4 is
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
498 specifically because you <emphasis role="bold">do</emphasis> care about
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
499 file size.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
500 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
501
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
502 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
503 It is difficult to offer a cookbook recipe on how to create a very high
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
504 quality DVD rip. There are several factors to consider, and you should
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
505 understand these details or else you are likely to end up disappointed
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
506 with your results. Below we will investigate some of these issues, and
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
507 then have a look at an example. We assume you are using
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
508 <systemitem class="library">libavcodec</systemitem> to encode the video,
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
509 although the theory applies to other codecs as well.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
510 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
511
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
512 <para>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
513 If this seems to be too much for you, you should probably use one of the
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
514 many fine frontends that are listed in the
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
515 <ulink url="http://mplayerhq.hu/homepage/design7/projects.html#mencoder_frontends">MEncoder section</ulink>
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
516 of our related projects page.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
517 That way, you should be able to achieve high quality rips without too much
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
518 thinking, because most of those tools are designed to take clever decisions
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
519 for you.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
520 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
521
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
522 <sect2 id="menc-feat-dvd-mpeg4-preparing-encode">
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
523 <title>Preparing to encode: Identifying source material and framerate</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
524 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
525 Before you even think about encoding a movie, you need to take
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
526 several preliminary steps.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
527 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
528
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
529 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
530 The first and most important step before you encode should be
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
531 determining what type of content you are dealing with.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
532 If your source material comes from DVD or broadcast/cable/satellite
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
533 TV, it will be stored in one of two formats: NTSC for North
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
534 America and Japan, PAL for Europe, etc.
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
535 It is important to realize, however, that this is just the formatting for
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
536 presentation on a television, and often does
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
537 <emphasis role="bold">not</emphasis> correspond to the
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
538 original format of the movie.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
539 In order to produce a suitable encode, you need to know the original
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
540 format.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
541 Failure to take this into account will result in ugly combing
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
542 (interlacing) artifacts in your encode.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
543 Besides being ugly, the artifacts also harm coding efficiency:
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
544 You will get worse quality per bitrate.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
545 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
546
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
547 <sect3 id="menc-feat-dvd-mpeg4-preparing-encode-fps">
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
548 <title>Identifying source framerate</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
549 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
550 Here is a list of common types of source material, where you are
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
551 likely to find them, and their properties:
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
552 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
553 <itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
554 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
555 <emphasis role="bold">Standard Film</emphasis>: Produced for
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
556 theatrical display at 24fps.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
557 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
558 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
559 <emphasis role="bold">PAL video</emphasis>: Recorded with a PAL
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
560 video camera at 50 fields per second.
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
561 A field consists of just the odd- or even-numbered lines of a
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
562 frame.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
563 Television was designed to refresh these in alternation as a
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
564 cheap form of analog compression.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
565 The human eye supposedly compensates for this, but once you
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
566 understand interlacing you will learn to see it on TV too and
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
567 never enjoy TV again.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
568 Two fields do <emphasis role="bold">not</emphasis> make a
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
569 complete frame, because they are captured 1/50 of a second apart
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
570 in time, and thus they do not line up unless there is no motion.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
571 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
572 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
573 <emphasis role="bold">NTSC Video</emphasis>: Recorded with an
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
574 NTSC video camera at 60000/1001 fields per second, or 60 fields per
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
575 second in the pre-color era.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
576 Otherwise similar to PAL.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
577 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
578 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
579 <emphasis role="bold">Animation</emphasis>: Usually drawn at
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
580 24fps, but also comes in mixed-framerate varieties.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
581 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
582 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
583 <emphasis role="bold">Computer Graphics (CG)</emphasis>: Can be
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
584 any framerate, but some are more common than others; 24 and
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
585 30 frames per second are typical for NTSC, and 25fps is typical
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
586 for PAL.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
587 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
588 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
589 <emphasis role="bold">Old Film</emphasis>: Various lower
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
590 framerates.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
591 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
592 </itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
593 </sect3>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
594
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
595 <sect3 id="menc-feat-dvd-mpeg4-preparing-encode-material">
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
596 <title>Identifying source material</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
597 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
598 Movies consisting of frames are referred to as progressive,
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
599 while those consisting of independent fields are called
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
600 either interlaced or video - though this latter term is
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
601 ambiguous.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
602 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
603 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
604 To further complicate matters, some movies will be a mix of
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
605 several of the above.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
606 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
607 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
608 The most important distinction to make between all of these
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
609 formats is that some are frame-based, while others are
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
610 field-based.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
611 <emphasis role="bold">Whenever</emphasis> a movie is prepared
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
612 for display on television (including DVD), it is converted to a
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
613 field-based format.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
614 The various methods by which this can be done are collectively
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
615 referred to as "pulldown", of which the infamous NTSC
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
616 "3:2 telecine" is one variety.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
617 Unless the original material was also field-based (and the same
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
618 fieldrate), you are getting the movie in a format other than the
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
619 original.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
620 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
621
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
622 <itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
623 <title>There are several common types of pulldown:</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
624 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
625 <emphasis role="bold">PAL 2:2 pulldown</emphasis>: The nicest of
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
626 them all.
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
627 Each frame is shown for the duration of two fields, by extracting the
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
628 even and odd lines and showing them in alternation.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
629 If the original material is 24fps, this process speeds up the
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
630 movie by 4%.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
631 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
632 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
633 <emphasis role="bold">PAL 2:2:2:2:2:2:2:2:2:2:2:3 pulldown</emphasis>:
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
634 Every 12th frame is shown for the duration of three fields, instead of
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
635 just two.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
636 This avoids the 4% speedup issue, but makes the process much
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
637 more difficult to reverse.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
638 It is usually seen in musical productions where adjusting the
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
639 speed by 4% would seriously damage the musical score.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
640 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
641 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
642 <emphasis role="bold">NTSC 3:2 telecine</emphasis>: Frames are
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
643 shown alternately for the duration of 3 fields or 2 fields.
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
644 This gives a fieldrate 2.5 times the original framerate.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
645 The result is also slowed down very slightly from 60 fields per
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
646 second to 60000/1001 fields per second to maintain NTSC fieldrate.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
647 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
648 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
649 <emphasis role="bold">NTSC 2:2 pulldown</emphasis>: Used for
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
650 showing 30fps material on NTSC.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
651 Nice, just like 2:2 PAL pulldown.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
652 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
653 </itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
654
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
655 <para>
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
656 There are also methods for converting between NTSC and PAL video,
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
657 but such topics are beyond the scope of this guide.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
658 If you encounter such a movie and want to encode it, your best
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
659 bet is to find a copy in the original format.
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
660 Conversion between these two formats is highly destructive and
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
661 cannot be reversed cleanly, so your encode will greatly suffer
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
662 if it is made from a converted source.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
663 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
664 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
665 When video is stored on DVD, consecutive pairs of fields are
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
666 grouped as a frame, even though they are not intended to be shown
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
667 at the same moment in time.
15485
62074f6caca7 Hopefully this phrasing is now correct English :-)
gpoirier
parents: 15471
diff changeset
668 The MPEG-2 standard used on DVD and digital TV provides a
15522
7bd5a7fb8a75 Hopefully correct and non-confusing phrasing for the most talked-about
diego
parents: 15492
diff changeset
669 way both to encode the original progressive frames and to store
7bd5a7fb8a75 Hopefully correct and non-confusing phrasing for the most talked-about
diego
parents: 15492
diff changeset
670 the number of fields for which a frame should be shown in the
7bd5a7fb8a75 Hopefully correct and non-confusing phrasing for the most talked-about
diego
parents: 15492
diff changeset
671 header of that frame.
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
672 If this method has been used, the movie will often be described
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
673 as "soft-telecined", since the process only directs the
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
674 DVD player to apply pulldown to the movie rather than altering
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
675 the movie itself.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
676 This case is highly preferable since it can easily be reversed
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
677 (actually ignored) by the encoder, and since it preserves maximal
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
678 quality.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
679 However, many DVD and broadcast production studios do not use
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
680 proper encoding techniques but instead produce movies with
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
681 "hard telecine", where fields are actually duplicated in the
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
682 encoded MPEG-2.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
683 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
684 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
685 The procedures for dealing with these cases will be covered later
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
686 in this guide.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
687 For now, we leave you with some guides to identifying which type
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
688 of material you are dealing with:
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
689 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
690
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
691 <itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
692 <title>NTSC regions:</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
693 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
694 If <application>MPlayer</application> prints that the framerate
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
695 has changed to 24000/1001 when watching your movie, and never changes
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
696 back, it is almost certainly progressive content that has been
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
697 "soft telecined".
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
698 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
699 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
700 If <application>MPlayer</application> shows the framerate
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
701 switching back and forth between 24000/1001 and 30000/1001, and you see
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
702 "combing" at times, then there are several possibilities.
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
703 The 24000/1001 fps segments are almost certainly progressive
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
704 content, "soft telecined", but the 30000/1001 fps parts could be
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
705 either hard-telecined 24000/1001 fps content or 60000/1001 fields per second NTSC video.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
706 Use the same guidelines as the following two cases to determine
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
707 which.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
708 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
709 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
710 If <application>MPlayer</application> never shows the framerate
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
711 changing, and every single frame with motion appears combed, your
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
712 movie is NTSC video at 60000/1001 fields per second.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
713 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
714 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
715 If <application>MPlayer</application> never shows the framerate
15471
713d02bb344a some more fixes suggested by The Wanderer and Rich
gpoirier
parents: 15467
diff changeset
716 changing, and two frames out of every five appear combed, your
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
717 movie is "hard telecined" 24000/1001fps content.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
718 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
719 </itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
720
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
721 <itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
722 <title>PAL regions:</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
723 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
724 If you never see any combing, your movie is 2:2 pulldown.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
725 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
726 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
727 If you see combing alternating in and out every half second,
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
728 then your movie is 2:2:2:2:2:2:2:2:2:2:2:3 pulldown.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
729 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
730 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
731 If you always see combing during motion, then your movie is PAL
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
732 video at 50 fields per second.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
733 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
734 </itemizedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
735
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
736 <note><title>Hint:</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
737 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
738 <application>MPlayer</application> can slow down movie playback
16017
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
739 with the -speed option or play it frame-by-frame.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
740 Try using <option>-speed</option> 0.2 to watch the movie very
16017
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
741 slowly or press the "." key repeatedly to play one frame at a time
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
742 and identify the pattern, if you cannot see it at full speed.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
743 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
744 </note>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
745 </sect3>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
746 </sect2>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
747
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
748 <sect2 id="menc-feat-dvd-mpeg4-2pass">
15471
713d02bb344a some more fixes suggested by The Wanderer and Rich
gpoirier
parents: 15467
diff changeset
749 <title>Constant quantizer vs. multipass</title>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
750
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
751 <para>
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
752 It is possible to encode your movie at a wide range of qualities.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
753 With modern video encoders and a bit of pre-codec compression
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
754 (downscaling and denoising), it is possible to achieve very good
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
755 quality at 700 MB, for a 90-110 minute widescreen movie.
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
756 Furthermore, all but the longest movies can be encoded with near-perfect
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
757 quality at 1400 MB.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
758 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
759
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
760 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
761 There are three approaches to encoding the video: constant bitrate
15471
713d02bb344a some more fixes suggested by The Wanderer and Rich
gpoirier
parents: 15467
diff changeset
762 (CBR), constant quantizer, and multipass (ABR, or average bitrate).
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
763 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
764
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
765 <note><title>Note:</title>
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
766 <para>
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
767 Most codecs which support ABR encode only support two pass encode
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
768 while some others such as <systemitem class="library">x264</systemitem>
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
769 and <systemitem class="library">libavcodec</systemitem> support
15471
713d02bb344a some more fixes suggested by The Wanderer and Rich
gpoirier
parents: 15467
diff changeset
770 multipass, which slightly improves quality at each pass,
15485
62074f6caca7 Hopefully this phrasing is now correct English :-)
gpoirier
parents: 15471
diff changeset
771 yet this improvement is no longer measurable nor noticeable after the
15471
713d02bb344a some more fixes suggested by The Wanderer and Rich
gpoirier
parents: 15467
diff changeset
772 4th or so pass.
713d02bb344a some more fixes suggested by The Wanderer and Rich
gpoirier
parents: 15467
diff changeset
773 Therefore, in this section, two pass and multipass will be used
15467
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
774 interchangeably.
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
775 </para>
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
776 </note>
fed9adae2f26 Nits and corrections suggested by The Wanderer
gpoirier
parents: 15446
diff changeset
777
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
778 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
779 In each of these modes, <systemitem class="library">libavcodec</systemitem>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
780 breaks the video frame into 16x16 pixel macroblocks and then applies a
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
781 quantizer to each macroblock. The lower the quantizer, the better the
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
782 quality and higher the bitrate. The method
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
783 <systemitem class="library">libavcodec</systemitem> uses to determine
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
784 which quantizer to use for a given macroblock varies and is highly
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
785 tunable. (This is an extreme over-simplification of the actual
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
786 process, but the basic concept is useful to understand.)
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
787 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
788
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
789 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
790 When you specify a constant bitrate, <systemitem
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
791 class="library">libavcodec</systemitem> will encode the video, discarding
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
792 detail as much as necessary and as little as possible in order to remain
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
793 lower than the given bitrate. If you truly do not care about file size,
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
794 you could as well use CBR and specify a bitrate of infinity. (In
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
795 practice, this means a value high enough so that it poses no limit, like
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
796 10000Kbit.) With no real restriction on bitrate, the result is that
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
797 <systemitem class="library">libavcodec</systemitem> will use the lowest
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
798 possible quantizer for each macroblock (as specified by
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
799 <option>vqmin</option>, which is 2 by default). As soon as you specify a
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
800 low enough bitrate that <systemitem class="library">libavcodec</systemitem>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
801 is forced to use a higher quantizer, then you are almost certainly ruining
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
802 the quality of your video.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
803 In order to avoid that, you should probably downscale your video, according
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
804 to the method described later on in this guide.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
805 In general, you should avoid CBR altogether if you care about quality.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
806 </para>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
807
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
808 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
809 With constant quantizer, <systemitem
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
810 class="library">libavcodec</systemitem> uses the same quantizer, as
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
811 specified by the <option>vqscale</option> option, on every macroblock. If
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
812 you want the highest quality rip possible, again ignoring bitrate, you can
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
813 use <option>vqscale=2</option>. This will yield the same bitrate and PSNR
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
814 (peak signal-to-noise ratio) as CBR with
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
815 <option>vbitrate</option>=infinity and the default <option>vqmin</option>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
816 of 2.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
817 </para>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
818
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
819 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
820 The problem with constant quantizing is that it uses the given quantizer
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
821 whether the macroblock needs it or not. That is, it might be possible
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
822 to use a higher quantizer on a macroblock without sacrificing visual
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
823 quality. Why waste the bits on an unnecessarily low quantizer? Your
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
824 CPU has as many cycles as there is time, but there is only so many bits
13523
diego
parents: 13222
diff changeset
825 on your hard disk.
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
826 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
827
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
828 <para>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
829 With a two pass encode, the first pass will rip the movie as though it
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
830 were CBR, but it will keep a log of properties for each frame. This
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
831 data is then used during the second pass in order to make intelligent
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
832 decisions about which quantizers to use. During fast action or low
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
833 detail scenes, higher quantizers will likely be used, and during
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
834 slow moving or high detail scenes, lower quantizers will be used.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
835 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
836
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
837 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
838 If you use <option>vqscale=2</option>, then you are wasting bits. If you
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
839 use <option>vqscale=3</option>, then you are not getting the highest
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
840 quality rip. Suppose you rip a DVD at <option>vqscale=3</option>, and
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
841 the result is 1800Kbit. If you do a two pass encode with
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
842 <option>vbitrate=1800</option>, the resulting video will have <emphasis
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
843 role="bold">higher quality</emphasis> for the
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
844 <emphasis role="bold">same bitrate</emphasis>.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
845 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
846
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
847 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
848 Since you are now convinced that two pass is the way to go, the real
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
849 question now is what bitrate to use? The answer is that there is no
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
850 single answer. Ideally you want to choose a bitrate that yields the
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
851 best balance between quality and file size. This is going to vary
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
852 depending on the source video.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
853 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
854
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
855 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
856 If size does not matter, a good starting point for a very high quality
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
857 rip is about 2000Kbit plus or minus 200Kbit.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
858 For fast action or high detail source video, or if you just have a very
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
859 critical eye, you might decide on 2400 or 2600.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
860 For some DVDs, you might not notice a difference at 1400Kbit. It is a
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
861 good idea to experiment with scenes at different bitrates to get a feel.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
862 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
863
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
864 <para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
865 If you aim at a certain size, you will have to somehow calculate the bitrate.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
866 But before that, you need to know how much space you should reserve for the
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
867 audio track(s), so you should <link linkend="menc-feat-dvd-mpeg4-audio">rip
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
868 those</link> first.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
869 You can compute the bitrate with the following equation:
15131
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
870 <systemitem>bitrate = (target_size_in_Mbytes - sound_size_in_Mbytes) *
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
871 1024 * 1024 / length_in_secs * 8 / 1000</systemitem>
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
872 For instance, to squeeze a two-hour movie onto a 702MB CD, with 60MB
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
873 of audio track, the video bitrate will have to be:
15131
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
874 <systemitem>(702 - 60) * 1024 * 1024 / (120*60) * 8 / 1000
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
875 = 740kbps</systemitem>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
876 </para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
877
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
878 </sect2>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
879
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
880
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
881 <sect2 id="menc-feat-dvd-mpeg4-constraints">
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
882 <title>Constraints for efficient encoding</title>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
883
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
884 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
885 Due to the nature of MPEG-type compression, there are various
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
886 constraints you should follow for maximal quality.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
887 MPEG splits the video up into 16x16 squares called macroblocks,
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
888 each composed of 4 8x8 blocks of luma (intensity) information and two
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
889 half-resolution 8x8 chroma (color) blocks (one for red-cyan axis and
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
890 the other for the blue-yellow axis).
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
891 Even if your movie width and height are not multiples of 16, the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
892 encoder will use enough 16x16 macroblocks to cover the whole picture
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
893 area, and the extra space will go to waste.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
894 So in the interests of maximizing quality at a fixed filesize, it is
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
895 a bad idea to use dimensions that are not multiples of 16.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
896 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
897
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
898 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
899 Most DVDs also have some degree of black borders at the edges. Leaving
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
900 these in place can hurt quality in several ways.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
901 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
902
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
903 <orderedlist>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
904 <listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
905 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
906 MPEG-type compression is also highly dependent on frequency domain
15129
2075e798f6f2 Typo noticed by Rich
gpoirier
parents: 15114
diff changeset
907 transformations, in particular the Discrete Cosine Transform (DCT),
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
908 which is similar to the Fourier transform. This sort of encoding is
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
909 efficient for representing patterns and smooth transitions, but it
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
910 has a hard time with sharp edges. In order to encode them it must
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
911 use many more bits, or else an artifact known as ringing will
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
912 appear.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
913 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
914
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
915 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
916 The frequency transform (DCT) takes place separately on each
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
917 macroblock (actually each block), so this problem only applies when
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
918 the sharp edge is inside a block. If your black borders begin
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
919 exactly at multiple-of-16 pixel boundaries, this is not a problem.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
920 However, the black borders on DVDs rarely come nicely aligned, so
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
921 in practice you will always need to crop to avoid this penalty.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
922 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
923 </listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
924 </orderedlist>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
925
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
926 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
927 In addition to frequency domain transforms, MPEG-type compression uses
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
928 motion vectors to represent the change from one frame to the next.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
929 Motion vectors naturally work much less efficiently for new content
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
930 coming in from the edges of the picture, because it is not present in
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
931 the previous frame. As long as the picture extends all the way to the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
932 edge of the encoded region, motion vectors have no problem with
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
933 content moving out the edges of the picture. However, in the presence
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
934 of black borders, there can be trouble:
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
935 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
936
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
937 <orderedlist continuation="continues">
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
938 <listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
939 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
940 For each macroblock, MPEG-type compression stores a vector
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
941 identifying which part of the previous frame should be copied into
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
942 this macroblock as a base for predicting the next frame. Only the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
943 remaining differences need to be encoded. If a macroblock spans the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
944 edge of the picture and contains part of the black border, then
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
945 motion vectors from other parts of the picture will overwrite the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
946 black border. This means that lots of bits must be spent either
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
947 re-blackening the border that was overwritten, or (more likely) a
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
948 motion vector will not be used at all and all the changes in this
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
949 macroblock will have to be coded explicitly. Either way, encoding
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
950 efficiency is greatly reduced.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
951 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
952
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
953 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
954 Again, this problem only applies if black borders do not line up on
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
955 multiple-of-16 boundaries.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
956 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
957 </listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
958
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
959 <listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
960 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
961 Finally, suppose we have a macroblock in the interior of the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
962 picture, and an object is moving into this block from near the edge
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
963 of the image. MPEG-type coding cannot say "copy the part that is
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
964 inside the picture but not the black border." So the black border
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
965 will get copied inside too, and lots of bits will have to be spent
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
966 encoding the part of the picture that is supposed to be there.
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
967 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
968
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
969 <para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
970 If the picture runs all the way to the edge of the encoded area,
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
971 MPEG has special optimizations to repeatedly copy the pixels at the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
972 edge of the picture when a motion vector comes from outside the
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
973 encoded area. This feature becomes useless when the movie has black
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
974 borders. Unlike problems 1 and 2, aligning the borders at multiples
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
975 of 16 does not help here.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
976 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
977 </listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
978
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
979 <listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
980 <para>
15210
425dd164a133 Some fixes
wight
parents: 15157
diff changeset
981 Despite the borders being entirely black and never changing, there
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
982 is at least a minimal amount of overhead involved in having more
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
983 macroblocks.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
984 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
985 </listitem>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
986 </orderedlist>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
987
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
988 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
989 For all of these reasons, it is recommended to fully crop black
15114
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
990 borders. Further, if there is an area of noise/distortion at the edge
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
991 of the picture, cropping this will improve encoding efficiency as
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
992 well. Videophile purists who want to preserve the original as close as
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
993 possible may object to this cropping, but unless you plan to encode at
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
994 constant quantizer, the quality you gain from cropping will
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
995 considerably exceed the amount of information lost at the edges.
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
996 </para>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
997 </sect2>
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
998
3d462baeb78e New section "Constraints for efficient encoding",
gpoirier
parents: 15113
diff changeset
999
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1000 <sect2 id="menc-feat-dvd-mpeg4-crop">
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1001 <title>Cropping and Scaling</title>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1002
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1003 <para>
15221
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1004 Recall from the previous section that the final picture size you
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1005 encode should be a multiple of 16 (in both width and height).
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1006 This can be achieved by cropping, scaling, or a combination of both.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1007 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1008
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1009 <para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1010 When cropping, there are a few guidelines that must be followed to
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1011 avoid damaging your movie.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1012 The normal YUV format, 4:2:0, stores chroma (color) information
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1013 subsampled, i.e. chroma is only sampled half as often in each
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1014 direction as luma (intensity) information.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1015 Observe this diagram, where L indicates luma sampling points and C
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1016 chroma.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1017 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1018
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1019 <informaltable>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1020 <?dbhtml table-width="40%" ?>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1021 <?dbfo table-width="40%" ?>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1022 <tgroup cols="8" align="center">
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1023 <colspec colnum="1" colname="col1"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1024 <colspec colnum="2" colname="col2"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1025 <colspec colnum="3" colname="col3"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1026 <colspec colnum="4" colname="col4"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1027 <colspec colnum="5" colname="col5"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1028 <colspec colnum="6" colname="col6"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1029 <colspec colnum="7" colname="col7"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1030 <colspec colnum="8" colname="col8"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1031 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1032 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1033 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1034 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1035 <tbody>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1036 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1037 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1038 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1039 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1040 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1041 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1042 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1043 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1044 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1045 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1046 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1047 <entry spanname="spa1-2">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1048 <entry spanname="spa3-4">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1049 <entry spanname="spa5-6">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1050 <entry spanname="spa7-8">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1051 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1052 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1053 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1054 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1055 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1056 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1057 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1058 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1059 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1060 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1061 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1062 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1063 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1064 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1065 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1066 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1067 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1068 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1069 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1070 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1071 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1072 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1073 <entry spanname="spa1-2">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1074 <entry spanname="spa3-4">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1075 <entry spanname="spa5-6">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1076 <entry spanname="spa7-8">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1077 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1078 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1079 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1080 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1081 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1082 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1083 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1084 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1085 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1086 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1087 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1088 </tbody>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1089 </tgroup>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1090 </informaltable>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1091
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1092 <para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1093 As you can see, rows and columns of the image naturally come in pairs.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1094 Thus your crop offsets and dimensions <emphasis>must</emphasis> be
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1095 even numbers.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1096 If they are not, the chroma will no longer line up correctly with the
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1097 luma.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1098 In theory, it is possible to crop with odd offsets, but it requires
15221
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1099 resampling the chroma which is potentially a lossy operation and not
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1100 supported by the crop filter.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1101 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1102
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1103 <para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1104 Further, interlaced video is sampled as follows:
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1105 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1106
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1107 <informaltable>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1108 <?dbhtml table-width="80%" ?>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1109 <?dbfo table-width="80%" ?>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1110 <tgroup cols="16" align="center">
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1111 <colspec colnum="1" colname="col1"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1112 <colspec colnum="2" colname="col2"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1113 <colspec colnum="3" colname="col3"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1114 <colspec colnum="4" colname="col4"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1115 <colspec colnum="5" colname="col5"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1116 <colspec colnum="6" colname="col6"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1117 <colspec colnum="7" colname="col7"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1118 <colspec colnum="8" colname="col8"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1119 <colspec colnum="9" colname="col9"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1120 <colspec colnum="10" colname="col10"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1121 <colspec colnum="11" colname="col11"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1122 <colspec colnum="12" colname="col12"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1123 <colspec colnum="13" colname="col13"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1124 <colspec colnum="14" colname="col14"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1125 <colspec colnum="15" colname="col15"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1126 <colspec colnum="16" colname="col16"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1127 <spanspec spanname="spa1-2" namest="col1" nameend="col2"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1128 <spanspec spanname="spa3-4" namest="col3" nameend="col4"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1129 <spanspec spanname="spa5-6" namest="col5" nameend="col6"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1130 <spanspec spanname="spa7-8" namest="col7" nameend="col8"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1131 <spanspec spanname="spa9-10" namest="col9" nameend="col10"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1132 <spanspec spanname="spa11-12" namest="col11" nameend="col12"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1133 <spanspec spanname="spa13-14" namest="col13" nameend="col14"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1134 <spanspec spanname="spa15-16" namest="col15" nameend="col16"/>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1135 <tbody>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1136 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1137 <entry namest="col1" nameend="col8">Top field</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1138 <entry namest="col9" nameend="col16">Bottom field</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1139 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1140 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1141 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1142 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1143 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1144 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1145 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1146 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1147 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1148 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1149 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1150 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1151 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1152 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1153 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1154 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1155 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1156 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1157 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1158 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1159 <entry spanname="spa1-2">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1160 <entry spanname="spa3-4">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1161 <entry spanname="spa5-6">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1162 <entry spanname="spa7-8">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1163 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1164 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1165 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1166 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1167 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1168 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1169 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1170 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1171 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1172 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1173 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1174 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1175 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1176 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1177 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1178 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1179 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1180 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1181 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1182 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1183 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1184 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1185 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1186 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1187 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1188 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1189 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1190 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1191 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1192 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1193 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1194 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1195 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1196 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1197 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1198 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1199 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1200 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1201 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1202 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1203 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1204 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1205 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1206 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1207 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1208 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1209 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1210 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1211 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1212 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1213 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1214 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1215 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1216 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1217 <entry spanname="spa9-10">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1218 <entry spanname="spa11-12">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1219 <entry spanname="spa13-14">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1220 <entry spanname="spa15-16">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1221 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1222 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1223 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1224 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1225 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1226 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1227 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1228 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1229 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1230 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1231 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1232 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1233 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1234 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1235 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1236 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1237 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1238 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1239 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1240 <row>
15271
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1241 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1242 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1243 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1244 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1245 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1246 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1247 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1248 <entry>L</entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1249 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1250 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1251 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1252 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1253 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1254 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1255 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1256 <entry></entry>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1257 </row>
15504d659558 Fix the pattern that wasn't repeated every 4 lines.
gpoirier
parents: 15221
diff changeset
1258 <row>
15221
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1259 <entry spanname="spa1-2">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1260 <entry spanname="spa3-4">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1261 <entry spanname="spa5-6">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1262 <entry spanname="spa7-8">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1263 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1264 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1265 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1266 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1267 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1268 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1269 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1270 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1271 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1272 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1273 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1274 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1275 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1276 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1277 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1278 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1279 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1280 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1281 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1282 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1283 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1284 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1285 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1286 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1287 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1288 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1289 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1290 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1291 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1292 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1293 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1294 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1295 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1296 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1297 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1298 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1299 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1300 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1301 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1302 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1303 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1304 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1305 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1306 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1307 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1308 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1309 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1310 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1311 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1312 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1313 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1314 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1315 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1316 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1317 <entry spanname="spa9-10">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1318 <entry spanname="spa11-12">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1319 <entry spanname="spa13-14">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1320 <entry spanname="spa15-16">C</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1321 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1322 <row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1323 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1324 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1325 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1326 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1327 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1328 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1329 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1330 <entry></entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1331 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1332 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1333 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1334 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1335 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1336 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1337 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1338 <entry>L</entry>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1339 </row>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1340 </tbody>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1341 </tgroup>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1342 </informaltable>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1343
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1344 <para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1345 As you can see, the pattern does not repeat until after 4 lines.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1346 So for interlaced video, your y-offset and height for cropping must
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1347 be multiples of 4.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1348 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1349
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1350 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1351 Native DVD resolution is 720x480 for NTSC, and 720x576 for PAL, but
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1352 there is an aspect flag that specifies whether it is full-screen (4:3) or
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1353 wide-screen (16:9). Many (if not most) widescreen DVDs are not strictly
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1354 16:9, and will be either 1.85:1 or 2.35:1 (cinescope). This means that
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1355 there will be black bands in the video that will need to be cropped out.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1356 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1357
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1358 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1359 <application>MPlayer</application> provides a crop detection filter that
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1360 will determine the crop rectangle (<option>-vf cropdetect</option>).
15221
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1361 Run <application>MPlayer</application> with
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1362 <option>-vf cropdetect</option> and it will print out the crop
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1363 settings to remove the borders.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1364 You should let the movie run long enough that the whole picture
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1365 area is used, in order to get accurate crop values.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1366 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1367
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1368 <para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1369 Then, test the values you get with <application>MPlayer</application>,
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1370 using the command line which was printed by
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1371 <option>cropdetect</option>, and adjust the rectangle as needed.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1372 The <option>rectangle</option> filter can help by allowing you to
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1373 interactively position the crop rectangle over your movie.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1374 Remember to follow the above divisibility guidelines so that you
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1375 do not misalign the chroma planes.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1376 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1377
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1378 <para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1379 In certain cases, scaling may be undesirable.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1380 Scaling in the vertical direction is difficult with interlaced
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1381 video, and if you wish to preserve the interlacing, you should
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1382 usually refrain from scaling.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1383 If you will not be scaling but you still want to use multiple-of-16
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1384 dimensions, you will have to overcrop.
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1385 Do not undercrop, since black borders are very bad for encoding!
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1386 </para>
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1387
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1388 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1389 Because MPEG-4 uses 16x16 macroblocks, you will want to make sure that each
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1390 dimension of the video you are encoding is a multiple of 16 or else you
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1391 will be degrading quality, especially at lower bitrates. You can do this
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1392 by rounding the width and height of the crop rectangle down to the nearest
15221
3c4a863020c8 Rich's tips regarding cropping and scaling
gpoirier
parents: 15216
diff changeset
1393 multiple of 16.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1394 As stated earlier, when cropping, you will want to increase the Y offset by
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1395 half the difference of the old and the new height so that the resulting
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1396 video is taken from the center of the frame. And because of the way DVD
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1397 video is sampled, make sure the offset is an even number. (In fact, as a
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1398 rule, never use odd values for any parameter when you are cropping and
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1399 scaling video.) If you are not comfortable throwing a few extra pixels
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1400 away, you might prefer instead to scale the video instead. We will look
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1401 at this in our example below.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1402 You can actually let the <option>cropdetect</option> filter do all of the
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1403 above for you, as it has an optional <option>round</option> parameter that
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1404 is equal to 16 by default.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1405 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1406
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1407 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1408 Also, be careful about "half black" pixels at the edges. Make sure you
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1409 crop these out too, or else you will be wasting bits there that
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1410 are better spent elsewhere.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1411 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1412
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1413 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1414 After all is said and done, you will probably end up with video whose pixels
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1415 are not quite 1.85:1 or 2.35:1, but rather something close to that. You
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1416 could calculate the new aspect ratio manually, but
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1417 <application>MEncoder</application> offers an option for <systemitem
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1418 class="library">libavcodec</systemitem> called <option>autoaspect</option>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1419 that will do this for you. Absolutely do not scale this video up in order to
13523
diego
parents: 13222
diff changeset
1420 square the pixels unless you like to waste your hard disk space. Scaling
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1421 should be done on playback, and the player will use the aspect stored in
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1422 the AVI to determine the correct resolution.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1423 Unfortunately, not all players enforce this auto-scaling information,
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1424 therefore you may still want to rescale.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1425 </para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1426
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1427 <para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1428 First, you should compute the encoded aspect ratio:
15131
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
1429 <systemitem>ARc = (Wc x (ARa / PRdvd )) / Hc</systemitem>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1430 <itemizedlist>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1431 <title>where:</title>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1432 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1433 Wc and Hc are the width and height of the cropped video,
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1434 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1435 <listitem><para>
15366
d2180f62e0e8 explains what ARa is and a tries to improve the readability of the
gpoirier
parents: 15358
diff changeset
1436 ARa is the displayed aspect ratio, which usually is 4/3 or 16/9,
d2180f62e0e8 explains what ARa is and a tries to improve the readability of the
gpoirier
parents: 15358
diff changeset
1437 </para></listitem>
d2180f62e0e8 explains what ARa is and a tries to improve the readability of the
gpoirier
parents: 15358
diff changeset
1438 <listitem><para>
15216
wight
parents: 15210
diff changeset
1439 PRdvd is the pixel ratio of the DVD which is equal to 1.25=(720/576) for PAL
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1440 DVDs and 1.5=(720/480) for NTSC DVDs,
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1441 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1442 </itemizedlist>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1443 </para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1444
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1445 <para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1446 Then, you can compute the X and Y resolution, according to a certain
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1447 Compression Quality (CQ) factor:
15131
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
1448 <systemitem>ResY = INT(SQRT( 1000*Bitrate/25/ARc/CQ )/16) * 16</systemitem>
15366
d2180f62e0e8 explains what ARa is and a tries to improve the readability of the
gpoirier
parents: 15358
diff changeset
1449 and
15131
3f01fef97002 Fix HTML generation, <equation> is more elaborate in most DTDs.
diego
parents: 15129
diff changeset
1450 <systemitem>ResX = INT( ResY * ARc / 16) * 16</systemitem>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1451 </para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1452
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1453 <para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1454 Okay, but what is the CQ?
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1455 The CQ represents the number of bits per pixel and per frame of the encode.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1456 Roughly speaking, the greater the CQ, the less the likelihood to see
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1457 encoding artifacts.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1458 However, if you have a target size for your movie (1 or 2 CDs for instance),
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1459 there is a limited total number of bits that you can spend; therefore it is
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1460 necessary to find a good tradeoff between compressibility and quality.
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1461 </para>
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1462
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1463 <para>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1464 The CQ depends both on the bitrate and the movie resolution.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1465 In order to raise the CQ, typically you would downscale the movie given that the
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1466 bitrate is computed in function of the target size and the length of the
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1467 movie, which are constant.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1468 A CQ below 0.18 usually ends up in a very blocky picture, because there
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1469 are not enough bits to code the information of each macroblock (MPEG4, like
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1470 many other codecs, groups pixels by blocks of several pixels to compress the
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1471 image; if there are not enough bits, the edges of those blocks are
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1472 visible).
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1473 It is therefore wise to take a CQ ranging from 0.20 to 0.22 for a 1 CD rip,
15210
425dd164a133 Some fixes
wight
parents: 15157
diff changeset
1474 and 0.26-0.28 for 2 CDs.
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1475 </para>
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1476
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1477 <para>
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1478 Please take note that the CQ is just an indicative figure, as depending on
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1479 the encoded content, a CQ of 0.18 may look just fine for a Bergman, contrary
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1480 to a movie such as The Matrix, which contains many high-motion scenes.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1481 On the other hand, it is worthless to raise CQ higher than 0.30 as you would
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1482 be wasting bits without any noticeable quality gain.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1483 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1484
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1485 </sect2>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1486
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1487 <sect2 id="menc-feat-dvd-mpeg4-audio">
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1488 <title>Audio</title>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1489
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1490 <para>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1491 Audio is a much simpler problem to solve: if you care about quality, just
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1492 leave it as is.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1493 Even AC3 5.1 streams are at most 448Kbit/s, and they are worth every bit.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1494 You might be tempted to transcode the audio to high quality Vorbis, but
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1495 just because you do not have an A/V receiver for AC3 pass-through today
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1496 does not mean you will not have one tomorrow. Future-proof your DVD rips by
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1497 preserving the AC3 stream.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1498 You can keep the AC3 stream either by copying it directly into the video
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1499 stream <link linkend="menc-feat-mpeg4">during the encoding</link>.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1500 You can also extract the AC3 stream in order to mux it into containers such
15153
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1501 as NUT or Matroska.
15139
f9490925a69d Add missing <replaceable> tags.
gpoirier
parents: 15131
diff changeset
1502 <screen>mplayer <replaceable>source_file.vob</replaceable> -aid 129 -dumpaudio -dumpfile <replaceable>sound.ac3</replaceable></screen>
15153
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1503 will dump into the file <replaceable>sound.ac3</replaceable> the
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1504 audio track number 129 from the file
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1505 <replaceable>source_file.vob</replaceable> (NB: DVD VOB files
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1506 usually use a different audio numbering,
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1507 which means that the VOB audio track 129 is the 2nd audio track of the file).
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1508 </para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1509
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1510 <para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1511 But sometimes you truly have no choice but to further compress the
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1512 sound so that more bits can be spent on the video.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1513 Most people choose to compress audio with either MP3 or Vorbis audio
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1514 codecs.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1515 While the latter is a very space-efficient codec, MP3 is better supported
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1516 by hardware players, although this trend is changing.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1517 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1518
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1519 <para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1520 First of all, you will have to convert the DVD sound into a WAV file that the
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1521 audio codec can use as input.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1522 For example:
15139
f9490925a69d Add missing <replaceable> tags.
gpoirier
parents: 15131
diff changeset
1523 <screen>mplayer <replaceable>source_file.vob</replaceable> -ao pcm:file=<replaceable>destination_sound.wav</replaceable> -vc dummy -aid 1 -vo null</screen>
15153
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1524 will dump the second audio track from the file
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1525 <replaceable>source_file.vob</replaceable> into the file
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1526 <replaceable>destination_sound.wav</replaceable>.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1527 You may want to normalize the sound before encoding, as DVD audio tracks
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1528 are commonly recorded at low volumes.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1529 You can use the tool <application>normalize</application> for instance,
15031
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1530 which is available in most distributions.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1531 If you are using Windows, a tool such as <application>BeSweet</application>
15031
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1532 can do the same job.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1533 You will compress in either Vorbis or MP3.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1534 For example:
15139
f9490925a69d Add missing <replaceable> tags.
gpoirier
parents: 15131
diff changeset
1535 <screen>oggenc -q1 <replaceable>destination_sound.wav</replaceable></screen>
15153
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1536 will encode <replaceable>destination_sound.wav</replaceable> with
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1537 the encoding quality 1, which is roughly equivalent to 80Kb/s, and
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1538 is the minimum quality at which you should encode if you care about
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1539 quality.
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1540 Please note that MEncoder currently cannot mux Vorbis audio tracks
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1541 into the output file because it only supports AVI and MPEG
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1542 containers as an output, each of which may lead to audio/video
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1543 playback synchronization problems with some players when the AVI file
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1544 contain VBR audio streams such as Vorbis.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1545 Do not worry, this document will show you how you can do that with third
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1546 party programs.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1547 </para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1548
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1549 </sect2>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1550
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1551 <sect2 id="menc-feat-dvd-mpeg4-interlacing">
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1552 <title>Interlacing and Telecine</title>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1553
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1554 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1555 Almost all movies are shot at 24 fps. Because NTSC is 30000/1001 fps, some
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1556 processing must be done to this 24 fps video to make it run at the correct
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1557 NTSC framerate. The process is called 3:2 pulldown, commonly referred to
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1558 as telecine (because pulldown is often applied during the telecine
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1559 process), and, naively described, it works by slowing the film down to
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1560 24000/1001 fps, and repeating every fourth frame.
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
1561 </para>
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
1562
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
1563 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1564 No special processing, however, is done to the video for PAL DVDs, which
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1565 run at 25 fps. (Technically, PAL can be telecined, called 2:2 pulldown,
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1566 but this does not become an issue in practice.) The 24 fps film is simply
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1567 played back at 25 fps. The result is that the movie runs slightly faster,
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1568 but unless you are an alien, you probably will not notice the difference.
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1569 Most PAL DVDs have pitch-corrected audio, so when they are played back at
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1570 25 fps things will sound right, even though the audio track (and hence the
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1571 whole movie) has a running time that is 4% less than NTSC DVDs.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1572 </para>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1573
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1574 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1575 Because the video in a PAL DVD has not been altered, you needn't worry
16003
diego
parents: 15969
diff changeset
1576 much about framerate. The source is 25 fps, and your rip will be 25
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1577 fps. However, if you are ripping an NTSC DVD movie, you may need to
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1578 apply inverse telecine.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1579 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1580
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1581 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1582 For movies shot at 24 fps, the video on the NTSC DVD is either telecined
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1583 30000/1001, or else it is progressive 24000/1001 fps and intended to be telecined
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1584 on-the-fly by a DVD player. On the other hand, TV series are usually
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1585 only interlaced, not telecined. This is not a hard rule: some TV series
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1586 are interlaced (such as Buffy the Vampire Slayer) whereas some are a
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1587 mixture of progressive and interlaced (such as Angel, or 24).
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1588 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1589
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1590 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1591 It is highly recommended that you read the section on
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
1592 <link linkend="menc-feat-telecine">How to deal with telecine and interlacing in NTSC DVDs</link>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
1593 to learn how to handle the different possibilities.
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1594 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1595
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1596 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1597 However, if you are mostly just ripping movies, likely you are either
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1598 dealing with 24 fps progressive or telecined video, in which case you can
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1599 use the <option>pullup</option> filter <option>-vf
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1600 pullup,softskip</option>.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1601 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1602
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1603 </sect2>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1604
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1605 <sect2 id="menc-feat-dvd-mpeg4-encoding-interlaced">
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1606 <title>Encoding interlaced video</title>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1607
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1608 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1609 If the movie you want to encode is interlaced (NTSC video or
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1610 PAL video), you will need to choose whether you want to
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1611 deinterlace or not.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1612 While deinterlacing will make your movie usable on progressive
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1613 scan displays such a computer monitors and projectors, it comes
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
1614 at a cost: The fieldrate of 50 or 60000/1001 fields per second
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
1615 is halved to 25 or 30000/1001 frames per second, and roughly half of
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1616 the information in your movie will be lost during scenes with
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1617 significant motion.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1618 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1619
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1620 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1621 Therefore, if you are encoding for high quality archival purposes,
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1622 it is recommended not to deinterlace.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1623 You can always deinterlace the movie at playback time when
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1624 displaying it on progressive scan devices, and future players will
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1625 be able to deinterlace to full fieldrate, interpolating 50 or
15487
fbda59d597ba Fix imprecise fps numbers, patch by Corey Hickey <bugfood-ml at fatooh dot org>.
diego
parents: 15485
diff changeset
1626 60000/1001 entire frames per second from the interlaced video.
15446
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1627 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1628
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1629 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1630 Special care must be taken when working with interlaced video:
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1631 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1632
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1633 <orderedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1634 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1635 Crop height and y-offset must be multiples of 4.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1636 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1637 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1638 Any vertical scaling must be performed in interlaced mode.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1639 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1640 <listitem><para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1641 Postprocessing and denoising filters may not work as expected
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1642 unless you take special care to operate them a field at a time,
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1643 and they may damage the video if used incorrectly.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1644 </para></listitem>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1645 </orderedlist>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1646
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1647 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1648 With these things in mind, here is our first example:
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1649 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1650 <screen>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1651 mencoder <replaceable>capture.avi</replaceable> -mc 0 -oac lavc -ovc lavc -lavcopts \
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1652 vcodec=mpeg2video:vbitrate=6000:ilmv:ildct:acodec=mp2:abitrate=224
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1653 </screen>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1654 <para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1655 Note the <option>ilmv</option> and <option>ildct</option> options.
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1656 </para>
39b8eafcf94a Preparing to encode: Identifying source material and framerate + how to encode interlaced content
gpoirier
parents: 15427
diff changeset
1657 </sect2>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1658
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1659 <sect2 id="menc-feat-dvd-mpeg4-filtering">
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1660 <title>Filtering</title>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1661
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1662 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1663 In general, you want to do as little filtering as possible to the movie
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1664 in order to remain close to the original DVD source. Cropping is often
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1665 necessary (as described above), but do not scale the video. Although
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1666 scaling down is sometimes preferred to using higher quantizers, we want
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1667 to avoid both these things: remember that we decided from the start to
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1668 trade bits for quality.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1669 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1670
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1671 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1672 Also, do not adjust gamma, contrast, brightness, etc. What looks good
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1673 on your display may not look good on others. These adjustments should
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1674 be done on playback only.
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1675 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1676
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1677 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1678 One thing you might want to do, however, is pass the video through a
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1679 very light denoise filter, such as <option>-vf hqdn3d=2:1:2</option>.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1680 Again, it is a matter of putting those bits to better use: why waste them
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1681 encoding noise when you can just add that noise back in during playback?
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1682 Increasing the parameters for <option>hqdn3d</option> will further
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1683 improve compressibility, but if you increase the values too much, you
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1684 risk degrading the image visibily. The suggested values above
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1685 (<option>2:1:2</option>) are quite conservative; you should feel free to
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1686 experiment with higher values and observe the results for yourself.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1687 </para>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1688
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1689 </sect2>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1690
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1691 <sect2 id="menc-feat-dvd-mpeg4-lavc-encoding-options">
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
1692 <title>Encoding options of libavcodec</title>
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1693
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1694 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1695 Ideally, you would probably want to be able to just tell the encoder to switch
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1696 into "high quality" mode and move on.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1697 That would probably be nice, but unfortunately hard to implement as different
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1698 encoding options yield different quality results depending on the source material.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1699 That is because compression depends on the visual properties of the video
15031
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1700 in question.
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1701 For example, anime and live action have very different properties and
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1702 thus require different options to obtain optimum encoding.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1703 The good news is that some options should never be left out, like
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1704 <option>mbd=2</option>, <option>trell</option>, and <option>v4mv</option>.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1705 See below for a detailed description of common encoding options.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1706 </para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1707
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1708
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1709 <itemizedlist>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1710 <title>Options to adjust:</title>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1711 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1712 <emphasis role="bold">vmax_b_frames</emphasis>: 1 or 2 is good, depending on
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1713 the movie.
16017
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
1714 Note that if you need to have your encode being decodable by DivX5, you
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
1715 need to activate closed GOP support, using
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
1716 <systemitem class="library">libavcodec</systemitem> <option>cgop</option>
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
1717 option, but you need to deactivate scene detection, which
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
1718 is not a good idea as it will hurt encode efficiency a bit.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1719 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1720
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1721 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1722 <emphasis role="bold">vb_strategy=1</emphasis>: helps in high-motion scenes.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1723 Requires vmax_b_frames >= 2.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1724 On some videos, vmax_b_frames may hurt quality, but vmax_b_frames=2 along
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1725 with vb_strategy=1 helps.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1726 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1727
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1728 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1729 <emphasis role="bold">dia</emphasis>: motion search range. Bigger is better
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1730 and slower.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1731 Negative values are a completely different scale.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1732 Good values are -1 for a fast encode, or 2-4 for slower.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1733 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1734
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1735 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1736 <emphasis role="bold">predia</emphasis>: motion search pre-pass.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1737 Not as important as dia. Good values are 1 (default) to 4. Requires preme=2
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1738 to really be useful.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1739 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1740
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1741 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1742 <emphasis role="bold">cmp, subcmp, precmp</emphasis>: Comparison function for
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1743 motion estimation.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1744 Experiment with values of 0 (default), 2 (hadamard), 3 (dct), and 6 (rate
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1745 distortion).
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1746 0 is fastest, and sufficient for precmp.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1747 For cmp and subcmp, 2 is good for anime, and 3 is good for live action.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1748 6 may or may not be slightly better, but is slow.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1749 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1750
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1751 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1752 <emphasis role="bold">last_pred</emphasis>: Number of motion predictors to
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1753 take from the previous frame.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1754 1-3 or so help at little speed cost.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1755 Higher values are slow for no extra gain.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1756 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1757
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1758 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1759 <emphasis role="bold">cbp, mv0</emphasis>: Controls the selection of macroblocks.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1760 Small speed cost for small quality gain.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1761 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1762
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1763 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1764 <emphasis role="bold">qprd</emphasis>: adaptive quantization based on the
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1765 macroblock's complexity.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1766 May help or hurt depending on the video and other options.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1767 This can cause artifacts unless you set vqmax to some reasonably small value
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1768 (6 is good, maybe as low as 4); vqmin=1 should also help.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1769 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1770
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1771 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1772 <emphasis role="bold">qns</emphasis>: very slow, especially when combined
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1773 with qprd.
15031
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1774 This option will make the encoder minimize noise due to compression
15038
2c9d334d244a grammar fix by the Wanderer
diego
parents: 15034
diff changeset
1775 artifacts instead of making the encoded video strictly match the source.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1776 Do not use this unless you have already tweaked everything else as far as it
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1777 will go and the results still are not good enough.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1778 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1779
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1780 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1781 <emphasis role="bold">vqcomp</emphasis>: Tweak ratecontrol.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1782 What values are good depends on the movie.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1783 You can safely leave this alone if you want.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1784 Reducing vqcomp puts more bits on low-complexity scenes, increasing it puts
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1785 them on high-complexity scenes (default: 0.5, range: 0-1. recommended range:
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1786 0.5-0.7).
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1787 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1788
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1789 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1790 <emphasis role="bold">vlelim, vcelim</emphasis>: Sets the single coefficient
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1791 elimination threshold for luminance and chroma planes.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1792 These are encoded separately in all MPEG-like algorithms.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1793 The idea behind these options is to use some good heuristics to determine
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1794 when the change in a block is less than the threshold you specify, and in
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1795 such a case, to just encode the block as "no change".
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1796 This saves bits and perhaps speeds up encoding. vlelim=-4 and vcelim=9
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1797 seem to be good for live movies, but seem not to help with anime;
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1798 when encoding animation, you should probably leave them unchanged.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1799 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1800
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1801 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1802 <emphasis role="bold">qpel</emphasis>: Quarter pixel motion estimation.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1803 MPEG-4 uses half pixel precision for its motion search by default,
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1804 therefore this option comes with an overhead as more information will be
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1805 stored in the encoded file.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1806 The compression gain/loss depends on the movie, but it is usually not very
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1807 effective on anime.
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1808 qpel always incurs a significant cost in CPU decode time (+20% in
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1809 practice).
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1810 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1811
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1812 <listitem><para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1813 <emphasis role="bold">psnr</emphasis>: does not affect the actual encoding,
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1814 but writes a log file giving the type/size/quality of each frame, and
15034
3aa4ea67e8f9 misc fixes
diego
parents: 15031
diff changeset
1815 prints a summary of PSNR (Peak Signal to Noise Ratio) at the end.
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1816 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1817
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1818 </itemizedlist>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1819
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1820 <itemizedlist>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1821 <title>Options not recommended to play with:</title>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1822 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1823 <emphasis role="bold">vme</emphasis>: The default is best.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1824 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1825
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1826 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1827 <emphasis role="bold">lumi_mask, dark_mask</emphasis>: Psychovisual adaptive
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1828 quantization.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1829 You do not want to play with those options if you care about quality.
15031
d377a597dc28 Fixes better wording. Suggestions by The Wanderer and Josh Varner.
gpoirier
parents: 15029
diff changeset
1830 Reasonable values may be effective in your case, but be warned this is very
15010
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1831 subjective.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1832 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1833
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1834 <listitem><para>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1835 <emphasis role="bold">scplx_mask</emphasis>: Tries to prevent blocky
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1836 artifacts, but postprocessing is better.
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1837 </para></listitem>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1838 </itemizedlist>
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1839
aec21cf429cb Improved encoding guide:
gpoirier
parents: 14958
diff changeset
1840 </sect2>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1841
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1842 <sect2 id="menc-feat-dvd-mpeg4-example">
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1843 <title>Example</title>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1844
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1845 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1846 So, you have just bought your shiny new copy of Harry Potter and the Chamber
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1847 of Secrets (widescreen edition, of course), and you want to rip this DVD
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1848 so that you can add it to your Home Theatre PC. This is a region 1 DVD,
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1849 so it is NTSC. The example below will still apply to PAL, except you will
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1850 omit <option>-ofps 24000/1001</option> (because the output framerate is the
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1851 same as the input framerate), and of course the crop dimensions will be
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1852 different.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1853 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1854
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1855 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1856 After running <option>mplayer dvd://1</option>, we follow the process
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1857 detailed in the section <link linkend="menc-feat-telecine">How to deal
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1858 with telecine and interlacing in NTSC DVDs</link> and discover that it is
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1859 24000/1001 fps progressive video, which means that we needn't use an inverse
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1860 telecine filter, such as <option>pullup</option> or
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1861 <option>filmdint</option>.
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1862 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1863
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1864 <para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1865 Next, we want to determine the appropriate crop rectangle, so we use the
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1866 cropdetect filter:
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1867
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1868 <screen>mplayer dvd://1 -vf cropdetect</screen>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1869
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1870 Make sure you seek to a fully filled frame (such as a bright scene), and
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1871 you will see in <application>MPlayer</application>'s console output:
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1872
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1873 <screen>crop area: X: 0..719 Y: 57..419 (-vf crop=720:362:0:58)</screen>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1874
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1875 We then play the movie back with this filter to test its correctness:
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1876
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1877 <screen>mplayer dvd://1 -vf crop=720:362:0:58</screen>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1878
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1879 And we see that it looks perfectly fine. Next, we ensure the width and
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1880 height are a multiple of 16. The width is fine, however the height is
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1881 not. Since we did not fail 7th grade math, we know that the nearest
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1882 multiple of 16 lower than 362 is 352.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1883 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1884
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1885 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1886 We could just use <option>crop=720:352:0:58</option>, but it would be nice
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1887 to take a little off the top and a little off the bottom so that we
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1888 retain the center. We have shrunk the height by 10 pixels, but we do not
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1889 want to increase the y-offset by 5-pixels since that is an odd number and
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1890 will adversely affect quality. Instead, we will increase the y-offset by
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1891 4 pixels:
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1892
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1893 <screen>mplayer dvd://1 -vf crop=720:352:0:62</screen>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1894
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1895 Another reason to shave pixels from both the top and the bottom is that we
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1896 ensure we have eliminated any half-black pixels if they exist. Note that if
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1897 your video is telecined, make sure the <option>pullup</option> filter (or
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1898 whichever inverse telecine filter you decide to use) appears in the filter
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1899 chain before you crop. If it is interlaced, deinterlace before cropping.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1900 (If you choose to preserve the interlaced video, then make sure your
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1901 vertical crop offset is a multiple of 4.)
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1902 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1903
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1904 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1905 If you are really concerned about losing those 10 pixels, you might
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1906 prefer instead to scale the dimensions down to the nearest multiple of 16.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1907 The filter chain would look like:
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1908
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1909 <screen>-vf crop=720:362:0:58,scale=720:352</screen>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1910
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1911 Scaling the video down like this will mean that some small amount of
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1912 detail is lost, though it probably will not be perceptible. Scaling up will
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1913 result in lower quality (unless you increase the bitrate). Cropping
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1914 discards those pixels altogether. It is a tradeoff that you will want to
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1915 consider for each circumstance. For example, if the DVD video was made
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1916 for television, you might want to avoid vertical scaling, since the line
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1917 sampling corresponds to the way the content was originally recorded.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1918 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1919
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1920 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1921 On inspection, we see that our movie has a fair bit of action and high
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1922 amounts of detail, so we pick 2400Kbit for our bitrate.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1923 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1924
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1925 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1926 We are now ready to do the two pass encode. Pass one:
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1927
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1928 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1929 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 \
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1930 -o Harry_Potter_2.avi</screen>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1931
14422
a4f2691c0109 consistent pass two and pass one spelling
diego
parents: 14421
diff changeset
1932 And pass two is the same, except that we specify <option>vpass=2</option>:
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1933
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
1934 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1935 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 \
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1936 -o Harry_Potter_2.avi</screen>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1937 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1938
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1939 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1940 The options <option>v4mv:mbd=2:trell</option> will greatly increase the
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1941 quality at the expense of encoding time. There is little reason to leave
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1942 these options out when the primary goal is quality. The options
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1943 <option>cmp=3:subcmp=3:mbcmp=3</option> select a comparison function that
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1944 yields higher quality than the defaults. You might try experimenting with
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1945 this parameter (refer to the man page for the possible values) as
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1946 different functions can have a large impact on quality depending on the
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1947 source material. For example, if you find
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1948 <systemitem class="library">libavcodec</systemitem> produces too much
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1949 blocky artifacting, you could try selecting the experimental NSSE as
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1950 comparison function via <option>*cmp=10</option>.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1951 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1952
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1953 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1954 For this movie, the resulting AVI will be 138 minutes long and nearly
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1955 3GB. And because you said that file size does not matter, this is a
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1956 perfectly acceptable size. However, if you had wanted it smaller, you
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1957 could try a lower bitrate. Increasing bitrates have diminishing
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1958 returns, so while we might clearly see an improvement from 1800Kbit to
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1959 2000Kbit, it might not be so noticeable above 2000Kbit. Feel
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
1960 free to experiment until you are happy.
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1961 </para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1962
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1963 <para>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1964 Because we passed the source video through a denoise filter, you may want
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1965 to add some of it back during playback. This, along with the
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1966 <option>spp</option> post-processing filter, drastically improves the
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1967 perception of quality and helps eliminate blocky artifacts in the video.
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1968 With <application>MPlayer</application>'s <option>autoq</option> option,
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1969 you can vary the amount of post-processing done by the spp filter
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1970 depending on available CPU. Also, at this point, you may want to apply
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1971 gamma and/or color correction to best suit your display. For example:
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1972
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1973 <screen>mplayer Harry_Potter_2.avi -vf spp,noise=9ah:5ah,eq2=1.2 -autoq 3</screen>
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
1974
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1975 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1976 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
1977
15148
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1978 <sect2 id="menc-feat-dvd-mpeg4-muxing">
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1979 <title>Muxing</title>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1980 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1981 Now that you have encoded your video, you will most likely want
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1982 to mux it with one or more audio tracks into a movie container, such
15153
0f3be1ff01fb Nits, better formating and missed suggestions
gpoirier
parents: 15148
diff changeset
1983 as AVI, MPEG, Matroska or NUT.
15148
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1984 <application>MEncoder</application> is currently only able to output
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1985 audio and video into MPEG and AVI container formats.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1986 for example:
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1987 <screen>mencoder -oac copy -ovc copy -o <replaceable>output_movie.avi</replaceable> -audiofile <replaceable>input_audio.mp2</replaceable> <replaceable>input_video.avi</replaceable></screen>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1988 This would merge the video file <replaceable>input_video.avi</replaceable>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1989 and the audio file <replaceable>input_audio.mp2</replaceable>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1990 into the AVI file <replaceable>output_movie.avi</replaceable>.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1991 This command works with MPEG-1 layer I, II and III (more commonly known
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1992 as MP3) audio, WAV and a few other audio formats too.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1993 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1994
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1995 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1996 MEncoder features experimental support for
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1997 <systemitem class="library">libavformat</systemitem>, which is a
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1998 library from the FFmpeg project that supports muxing and demuxing
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
1999 a variety of containers.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2000 For example:
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2001 <screen>mencoder -oac copy -ovc copy -o <replaceable>output_movie.asf</replaceable> -audiofile <replaceable>input_audio.mp2</replaceable> <replaceable>input_video.avi</replaceable> -of lavf -lavfopts format=asf</screen>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2002 This will do the same thing as the previous example, except that
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2003 the output container will be ASF.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2004 Please note that this support is highly experimental (but getting
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2005 better every day), and will only work if you compiled
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2006 <application>MPlayer</application> with the support for
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2007 <systemitem class="library">libavformat</systemitem> enabled (which
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2008 means that a pre-packaged binary version will not work in most cases).
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2009 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2010
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2011 <sect3 id="menc-feat-dvd-mpeg4-muxing-avi-limitations">
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2012 <title>Limitations of the AVI container</title>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2013 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2014 Although it is the most widely-supported container format after MPEG-1,
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2015 AVI also has some major drawbacks.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2016 Perhaps the most obvious is the overhead.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2017 For each chunk of the AVI file, 24 bytes are wasted on headers and
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2018 index.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2019 This translates into a little over 5 MB per hour, or 1-2.5%
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2020 overhead for a 700 MB movie. This may not seem like much, but it could
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2021 mean the difference between being able to use 700 kbit/sec video or
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2022 714 kbit/sec, and every bit of quality counts.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2023 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2024
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2025 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2026 In addition this gross inefficiency, AVI also has the following major
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2027 limitations:
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2028 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2029
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2030 <orderedlist>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2031 <listitem>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2032 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2033 Only fixed-fps content can be stored. This is particularly limiting
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2034 if the original material you want to encode is mixed content, for
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2035 example a mix of NTSC video and film material.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2036 Actually there are hacks that can be used to store mixed-framerate
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2037 content in AVI, but they increase the (already huge) overhead
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2038 fivefold or more and so are not practical.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2039 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2040 </listitem>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2041 <listitem>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2042 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2043 Audio in AVI files must be either constant-bitrate (CBR) or
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2044 constant-framesize (i.e. all frames decode to the same number of
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2045 samples).
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2046 Unfortunately, the most efficient codec, Vorbis, does not meet
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2047 either of these requirements.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
2048 Therefore, if you plan to store your movie in AVI, you will have to
15148
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2049 use a less efficient codec such as MP3 or AC3.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2050 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2051 </listitem>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2052 </orderedlist>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2053
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2054 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2055 Having said all that, <application>MEncoder</application> does not
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2056 currently support variable-fps output or Vorbis encoding.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2057 Therefore, you may not see these as limitations if
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2058 <application>MEncoder</application> is the
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2059 only tool you will be using to produce your encodes.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2060 However, it is possible to use <application>MEncoder</application>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2061 only for video encoding, and then use external tools to encode
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2062 audio and mux it into another container format.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2063 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2064 </sect3>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2065
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2066 <sect3 id="menc-feat-dvd-mpeg4-muxing-matroska">
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2067 <title>Muxing into the Matroska container</title>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2068 <para>
15157
c9a7876a9046 Nits suggested by The Wanderer
gpoirier
parents: 15153
diff changeset
2069 Matroska is a free, open standard container format, aiming
15148
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2070 to offer a lot of advanced features, which older containers
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2071 like AVI cannot handle.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2072 For example, Matroska supports variable bitrate audio content
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2073 (VBR), variable framerates (VFR), chapters, file attachments,
15157
c9a7876a9046 Nits suggested by The Wanderer
gpoirier
parents: 15153
diff changeset
2074 error detection code (EDC) and modern A/V Codecs like "Advanced Audio
c9a7876a9046 Nits suggested by The Wanderer
gpoirier
parents: 15153
diff changeset
2075 Coding" (AAC), "Vorbis" or "MPEG-4 AVC" (H.264), next to nothing
15148
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2076 handled by AVI.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2077 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2078
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2079 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2080 The tools required to create Matroska files are collectively called
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2081 <application>mkvtoolnix</application>, and are available for most
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2082 Unix platforms as well as <application>Windows</application>.
15157
c9a7876a9046 Nits suggested by The Wanderer
gpoirier
parents: 15153
diff changeset
2083 Because Matroska is an open standard you may find other
15148
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2084 tools that suit you better, but since mkvtoolnix is the most
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2085 common, and is supported by the Matroska team itself, we will
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2086 only cover its usage.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2087 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2088
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2089 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2090 Probably the easiest way to get started with Matroska is to use
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2091 <application>MMG</application>, the graphical frontend shipped with
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2092 <application>mkvtoolnix</application>, and follow the
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2093 <ulink url="http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge-gui.html">guide to mkvmerge GUI (mmg)</ulink>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2094 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2095
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2096 <para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2097 You may also mux audio and video files using the command line:
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2098 <screen>mkvmerge -o <replaceable>output.mkv</replaceable> <replaceable>input_video.avi</replaceable> <replaceable>input_audio1.mp3</replaceable> <replaceable>input_audio2.ac3</replaceable></screen>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2099 This would merge the video file <replaceable>input_video.avi</replaceable>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2100 and the two audio files <replaceable>input_audio1.mp3</replaceable>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2101 and <replaceable>input_audio2.ac3</replaceable> into the Matroska
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2102 file <replaceable>output.mkv</replaceable>.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2103 Matroska, as mentioned earlier, is able to do much more than that, like
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2104 multiple audio tracks (including fine-tuning of audio/video
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2105 synchronization), chapters, subtitles, splitting, etc...
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2106 Please refer to the documentation of those applications for
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2107 more details.
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2108 </para>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2109
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2110 </sect3>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2111
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2112 </sect2>
067f10ad6538 New section: "menc-feat-dvd-mpeg4-muxing" about how to mux a video
gpoirier
parents: 15139
diff changeset
2113
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
2114 </sect1>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
2115
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2116 <sect1 id="menc-feat-x264">
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2117 <title>Encoding with the <systemitem class="library">x264</systemitem> codec</title>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2118 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2119 <systemitem class="library">x264</systemitem> is a free library for
15370
bd6adbd632e4 Fixes suggested by Diego
gpoirier
parents: 15366
diff changeset
2120 encoding H.264/AVC video streams.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2121 Before starting to encode, you need to <link linkend="codec-x264-encode">
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2122 set up <application>MEncoder</application> to support it</link>.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2123 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2124
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2125 <sect2 id="menc-feat-x264-encoding-options">
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2126 <title>Encoding options of x264</title>
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2127
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2128 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2129 Please begin by reviewing the
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2130 <systemitem class="library">x264</systemitem> section of
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2131 <application>MPlayer</application>'s man page.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2132 This section is intended to be a supplement to the man page.
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2133 Here you will find quick hints about which options are most
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2134 likely to interest most people. The man page is more terse,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2135 but also more exhaustive, and it sometimes offers much better
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2136 technical detail.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2137 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2138
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2139 <sect3 id="menc-feat-x264-encoding-options-intro">
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2140 <title>Introduction</title>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2141 <para>This guide considers two major categories of encoding options:</para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2142
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2143 <orderedlist>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2144 <listitem><para>Options which mainly trade off encoding time vs. quality
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2145 </para></listitem>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2146 <listitem><para>Options which may be useful for fulfilling various personal
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2147 preferences and special requirements</para></listitem>
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2148 </orderedlist>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2149
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2150 <para>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2151 Ultimately, only you can decide which options are best for your
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2152 purposes. The decision for the first class of options is the simplest:
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2153 you only have to decide whether you think the quality differences
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2154 justify the speed differences. For the second class of options,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2155 preferences may be far more subjective, and more factors may be
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2156 involved. Note that some of the "personal preferences and special
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2157 requirements" options can still have large impacts on speed or quality,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2158 but that is not what they are primarily useful for. A couple of the
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2159 "personal preference" options may even cause changes that look better
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2160 to some people, but look worse to others.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2161 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2162
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2163 <para>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2164 Before continuing, you need to understand that this guide uses only one
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2165 quality metric: global PSNR.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2166 For a brief explanation of what PSNR is, see
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2167 <ulink url="http://en.wikipedia.org/wiki/PSNR">the Wikipedia article on PSNR</ulink>.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2168 Global PSNR is the last PSNR number reported when you include
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2169 the <option>psnr</option> option in <option>x264encopts</option>.
15358
87121d373127 Minor fixes by Jeff Clagg
gpoirier
parents: 15329
diff changeset
2170 Any time you read a claim about PSNR, one of the assumptions
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2171 behind the claim is that equal bitrates are used.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2172 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2173
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2174 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2175 Nearly all of this guide's comments assume you are using
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2176 two pass.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2177 When comparing options, there are two major reasons for using
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2178 two pass encoding.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2179 First, using two pass often gains around 1dB PSNR, which is a
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2180 very big difference.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2181 Secondly, testing options by doing direct quality comparisons
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2182 with one pass encodes introduces a major confounding
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2183 factor: bitrate often varies significantly with each encode.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2184 It is not always easy to tell whether quality changes are due
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2185 mainly to changed options, or if they mostly reflect essentially
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2186 random differences in the achieved bitrate.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2187 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2188
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2189 </sect3>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2190
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2191 <sect3 id="menc-feat-x264-encoding-options-speedvquality">
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2192 <title>Options which primarily affect speed and quality</title>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2193
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2194 <itemizedlist>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2195 <listitem><para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2196 <emphasis role="bold">subq</emphasis>:
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2197 Of the options which allow you to trade off speed for quality,
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2198 <option>subq</option> and <option>frameref</option> (see below) are usually
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2199 by far the most important.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2200 If you are interested in tweaking either speed or quality, these
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2201 are the first options you should consider.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2202 On the speed dimension, the <option>frameref</option> and
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2203 <option>subq</option> options interact with each other fairly
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2204 strongly.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2205 Experience shows that, with one reference frame,
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2206 <option>subq=5</option> (the default setting) takes about 35% more time than
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2207 <option>subq=1</option>.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2208 With 6 reference frames, the penalty grows to over 60%.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2209 <option>subq</option>'s effect on PSNR seems fairly constant
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2210 regardless of the number of reference frames.
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2211 Typically, <option>subq=5</option> achieves 0.2-0.5 dB higher global
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2212 PSNR in comparison <option>subq=1</option>.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2213 This is usually enough to be visible.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2214 </para>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2215 <para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2216 <option>subq=6</option> is the slowest, highest quality mode.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2217 In comparison to <option>subq=5</option>, it usually gains 0.1-0.4 dB
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2218 global PSNR with speed costs varying from 25%-100%.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2219 Unlike other levels of <option>subq</option>, the behavior of
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2220 <option>subq=6</option> does not depend much on <option>frameref</option>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2221 and <option>me</option>. Instead, the effectiveness of <option>subq=6
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2222 </option> depends mostly upon the number of B-frames used. In normal
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2223 usage, this means <option>subq=6</option> has a large impact on both speed
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2224 and quality in complex, high motion scenes, but it may not have much effect
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2225 in low-motion scenes. Note that it is still recommended to always set
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2226 <option>bframes</option> to something other than zero (see below).
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2227 </para></listitem>
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2228 <listitem><para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2229 <emphasis role="bold">frameref</emphasis>:
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2230 <option>frameref</option> is set to 1 by default, but this
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2231 should not be taken to imply that it is reasonable to set it
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2232 to 1.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2233 Merely raising <option>frameref</option> to 2 gains around
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2234 0.15dB PSNR with a 5-10% speed penalty; this seems like a
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2235 good tradeoff.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2236 <option>frameref=3</option> gains around 0.25dB PSNR over
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2237 <option>frameref=1</option>, which should be a visible
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2238 difference.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2239 <option>frameref=3</option> is around 15% slower than
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2240 <option>frameref=1</option>.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2241 Unfortunately, diminishing returns set in rapidly.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2242 <option>frameref=6</option> can be expected to gain only
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2243 0.05-0.1 dB over <option>frameref=3</option> at an additional
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2244 15% speed penalty.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2245 Above <option>frameref=6</option>, the quality gains are
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2246 usually very small (although you should keep in mind throughout
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2247 this whole discussion that it can vary quite a lot depending on
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2248 your source).
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2249 In a fairly typical case, <option>frameref=12</option>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2250 will improve global PSNR by a tiny 0.02dB over
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2251 <option>frameref=6</option>, at a speed cost of 15%-20%.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2252 At such high <option>frameref</option> values, the only really
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2253 good thing that can be said is that increasing it even further will
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2254 almost certainly never <emphasis role="bold">harm</emphasis>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2255 PSNR, but the additional quality benefits are barely even
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2256 measurable, let alone perceptible.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2257 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2258 <note><title>Note:</title>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2259 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2260 Raising <option>frameref</option> to unnecessarily high values
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2261 <emphasis role="bold">can</emphasis> and
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2262 <emphasis role="bold">usually does</emphasis>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2263 hurt coding efficiency if you turn CABAC off.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2264 With CABAC on (the default behavior), the possibility of setting
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2265 <option>frameref</option> "too high" currently seems too remote
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2266 to even worry about, and in the future, optimizations may remove
15358
87121d373127 Minor fixes by Jeff Clagg
gpoirier
parents: 15329
diff changeset
2267 the possibility altogether.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2268 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2269 </note>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2270 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2271 If you care about speed, a reasonable compromise is to use low
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2272 <option>subq</option> and <option>frameref</option> values on
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2273 the first pass, and then raise them on the second pass.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2274 Typically, this has a negligible negative effect on the final
15370
bd6adbd632e4 Fixes suggested by Diego
gpoirier
parents: 15366
diff changeset
2275 quality: You will probably lose well under 0.1dB PSNR, which
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2276 should be much too small of a difference to see.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2277 However, different values of <option>frameref</option> can
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2278 occasionally affect frametype decision.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2279 Most likely, these are rare outlying cases, but if you want to
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2280 be pretty sure, consider whether your video has either
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2281 fullscreen repetitive flashing patterns or very large temporary
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2282 occlusions which might force an I-frame.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2283 Adjust the first-pass <option>frameref</option> so it is large
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2284 enough to contain the duration of the flashing cycle (or occlusion).
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2285 For example, if the scene flashes back and forth between two images
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2286 over a duration of three frames, set the first pass
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2287 <option>frameref</option> to 3 or higher.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2288 This issue is probably extremely rare in live action video material,
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2289 but it does sometimes come up in video game captures.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2290 </para></listitem>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2291
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2292 <listitem><para>
15598
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2293 <emphasis role="bold">me</emphasis>:
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2294 This option is for choosing the motion estimation search method.
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2295 Altering this option provides a straightforward quality-vs-speed
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2296 tradeoff. <option>me=1</option> is only a few percent faster than
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2297 the default search, at a cost of under 0.1dB global PSNR. The
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2298 default setting (<option>me=2</option>) is a reasonable tradeoff
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2299 between speed and quality. <option>me=3</option> gains a little under
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2300 0.1dB global PSNR, with a speed penalty that varies depending on
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2301 <option>frameref</option>. At high values of
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2302 <option>frameref</option> (e.g. 12 or so), <option>me=3</option>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2303 is about 40% slower than the default <option> me=2</option>. With
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2304 <option>frameref=3</option>, the speed penalty incurred drops to
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2305 25%-30%.
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2306 </para>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2307 <para>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2308 <option>me=4</option> uses an exhaustive search that is too slow for
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2309 practical use.
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2310 </para>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2311 </listitem>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2312
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2313 <listitem><para>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2314 <emphasis role="bold">4x4mv</emphasis>:
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2315 This option enables the use of 8x4, 4x8 and 4x4 subpartitions in
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2316 predicted macroblocks. Enabling it results in a fairly consistent
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2317 10%-15% loss of speed. This option is rather useless in source
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2318 containing only low motion, however in some high-motion source,
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2319 particularly source with lots of small moving objects, gains of
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2320 about 0.1dB can be expected.
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2321 </para>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2322 </listitem>
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2323
a21fbd1ecd2d new x264 entries: me (motion estimation search algorithm) and 4x4mv options. Patch by Jeff Clagg (snacky BLAM ikaruga POUM co POUM uk)
gpoirier
parents: 15522
diff changeset
2324 <listitem><para>
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2325 <emphasis role="bold">bframes</emphasis>:
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2326 If you are used to encoding with other codecs, you may have found
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2327 that B-frames are not always useful.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2328 In H.264, this has changed: there are new techniques and block
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2329 types that are possible in B-frames.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2330 Usually, even a naive B-frame choice algorithm can have a
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2331 significant PSNR benefit.
15714
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2332 It is interesting to note that using B-frames usually speeds up
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2333 the second pass somewhat, and may also speed up a single
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2334 pass encode if adaptive B-frame decision is turned off.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2335 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2336 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2337 With adaptive B-frame decision turned off
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2338 (<option>x264encopts</option>'s <option>nob_adapt</option>),
15714
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2339 the optimal value for this setting is usually no more than
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2340 <option>bframes=1</option>, or else high-motion scenes can suffer.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2341 With adaptive B-frame decision on (the default behavior), it is
15714
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2342 safe to use higher values; the encoder will reduce the use of
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2343 B-frames in scenes where they would hurt compression.
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2344 The encoder rarely chooses to use more than 3 or 4 B-frames;
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2345 setting this option any higher will have little effect.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2346 </para></listitem>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2347
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2348 <listitem><para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2349 <emphasis role="bold">b_adapt</emphasis>:
15370
bd6adbd632e4 Fixes suggested by Diego
gpoirier
parents: 15366
diff changeset
2350 Note: This is on by default.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2351 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2352 <para>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2353 With this option enabled, the encoder will use a reasonably fast
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2354 decision process to reduce the number of B-frames used in scenes that
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2355 might not benefit from them as much.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2356 You can use <option>b_bias</option> to tweak how B-frame-happy
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2357 the encoder is.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2358 The speed penalty of adaptive B-frames is currently rather modest,
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2359 but so is the potential quality gain.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2360 It usually does not hurt, however.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2361 Note that this only affects speed and frametype decision on the
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2362 first pass.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2363 <option>b_adapt</option> and <option>b_bias</option> have no
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2364 effect on subsequent passes.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2365 </para></listitem>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2366
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2367 <listitem><para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2368 <emphasis role="bold">b_pyramid</emphasis>:
15427
21378d633887 Only 2 consecutive bframes are needed for pyramid reordering
gpoirier
parents: 15370
diff changeset
2369 You might as well enable this option if you are using >=2 B-frames;
15370
bd6adbd632e4 Fixes suggested by Diego
gpoirier
parents: 15366
diff changeset
2370 as the man page says, you get a little quality improvement at no
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2371 speed cost.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2372 Note that these videos cannot be read by libavcodec-based decoders
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2373 older than about March 5, 2005.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2374 </para></listitem>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2375
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2376 <listitem><para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2377 <emphasis role="bold">weight_b</emphasis>:
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2378 In typical cases, there is not much gain with this option.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2379 However, in crossfades or fade-to-black scenes, weighted
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2380 prediction gives rather large bitrate savings.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2381 In MPEG-4 ASP, a fade-to-black is usually best coded as a series
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2382 of expensive I-frames; using weighted prediction in B-frames
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2383 makes it possible to turn at least some of these into much smaller
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2384 B-frames.
15714
d7c271f828d9 tweak x264 option descriptions
lorenm
parents: 15598
diff changeset
2385 Encoding time cost is minimal, as no extra decisions need to be made.
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2386 Also, contrary to what some people seem to guess, the decoder
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2387 CPU requirements are not much affected by weighted prediction,
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2388 all else being equal.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2389 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2390 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2391 Unfortunately, the current adaptive B-frame decision algorithm
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2392 has a strong tendency to avoid B-frames during fades.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2393 Until this changes, it may be a good idea to add
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2394 <option>nob_adapt</option> to your x264encopts, if you expect
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2395 fades to have a large effect in your particular video
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2396 clip.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2397 </para></listitem>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2398 </itemizedlist>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2399 </sect3>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2400
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2401 <sect3 id="menc-feat-x264-encoding-options-misc-preferences">
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2402 <title>Options pertaining to miscellaneous preferences</title>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2403 <itemizedlist>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2404 <listitem><para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2405 <emphasis role="bold">Two pass encoding</emphasis>:
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2406 Above, it was suggested to always use two pass encoding, but there
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2407 are still reasons for not using it. For instance, if you are capturing
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2408 live TV and encoding in realtime, you are forced to use single-pass.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2409 Also, one pass is obviously faster than two passes; if you use the
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2410 exact same set of options on both passes, two pass encoding is almost
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2411 twice as slow.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2412 </para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2413 <para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2414 Still, there are very good reasons for using two pass encoding. For
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2415 one thing, single pass ratecontrol isn't psychic, and it often makes
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2416 unreasonable choices because it can't see the big picture. For example,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2417 suppose you have a two minute long video consisting of two distinct
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2418 halves. The first half is a very high-motion scene lasting 60 seconds
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2419 which, in isolation, requires about 2500kbps in order to look decent.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2420 Immediately following it is a much less demanding 60-second scene
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2421 that looks good at 300kbps. Suppose you ask for 1400kbps on the theory
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2422 that this is enough to accomodate both scenes. Single pass ratecontrol
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2423 will make a couple of "mistakes" in such a case. First of all, it
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2424 will target 1400kbps in both segments. The first segment may end up
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2425 heavily overquantized, causing it to look unacceptably and unreasonably
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2426 blocky. The second segment will be heavily underquantized; it may look
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2427 perfect, but the bitrate cost of that perfection will be completely
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2428 unreasonable. What's even harder to avoid is the problem at the
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2429 transition between the two scenes. The first seconds of the low motion
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2430 half will be hugely over-quantized, because the ratecontrol is still
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2431 expecting the kind of bitrate requirements it met in the first half
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2432 of the video. This "error period" of heavily over-quantized low motion
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2433 will look jarringly bad, and will actually use less than the 300kbps
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2434 it would have taken to make it look decent. There are ways to
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2435 mitigate the pitfalls of single-pass encoding, but they may tend to
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2436 increase bitrate misprediction.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2437 </para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2438 <para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2439 Multipass ratecontrol can offer huge advantages over a single pass.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2440 Using the statistics gathered from the first pass encode, the encoder
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2441 can estimate, with reasonable accuracy, the "cost" (in bits) of
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2442 encoding any given frame, at any given quantizer. This allows for
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2443 a much more rational, better planned allocation of bits between the
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2444 expensive (high-motion) and cheap (low-motion) scenes. See
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2445 <option>qcomp</option> below for some ideas on how to tweak this
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2446 allocation to your liking.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2447 </para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2448 <para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2449 Moreover, two passes need not take twice as long as one pass. You can
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2450 tweak the options in the first pass for higher speed and lower quality.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2451 If you choose your options well, you can get a very fast first pass.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2452 The resulting quality in the second pass will be slightly lower because size
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2453 prediction is less accurate, but the quality difference is normally much
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2454 too small to be visible. Try, for example, adding
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2455 <option>subq=1:frameref=1</option> to the first pass
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2456 <option>x264encopts</option>. Then, on the second pass, use slower,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2457 higher-quality options:
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2458 <option>subq=6:frameref=15:4x4mv:me=3</option>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2459 </para></listitem>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2460 <listitem><para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2461 <emphasis role="bold">Three pass encoding</emphasis>?
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2462
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2463 x264 offers the ability to make an arbitrary number of consecutive
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2464 passes. If you specify <option>pass=1</option> on the first pass,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2465 then use <option>pass=3</option> on a subsequent pass, the subsequent
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2466 pass will both read the statistics from the previous pass, and write
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2467 its own statistics. An additional pass following this one will have
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2468 a very good base from which to make highly accurate predictions of
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2469 framesizes at a chosen quantizer. In practice, the overall quality
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2470 gain from this is usually close to zero, and quite possibly a third
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2471 pass will result in slightly worse global PSNR than the pass before
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2472 it. In typical usage, three passes help if you get either bad bitrate
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2473 prediction or bad looking scene transitions when using only two passes.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2474 This is somewhat likely to happen on extremely short clips. There are
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2475 also a few special cases in which three (or more) passes are handy
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2476 for advanced users, but for brevity, this guide omits discussing those
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2477 special cases.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2478
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2479 </para></listitem>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2480 <listitem><para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2481 <emphasis role="bold">qcomp</emphasis>:
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2482 <option>qcomp</option> trades off the number of bits allocated
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2483 to "expensive" high-motion versus "cheap" low-motion frames. At
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2484 one extreme, <option>qcomp=0</option> aims for true constant
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2485 bitrate. Typically this would make high-motion scenes look completely
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2486 awful, while low-motion scenes would probably look absolutely
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2487 perfect, but would also use many times more bitrate than they
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2488 would need in order to look merely excellent. At the other extreme,
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2489 <option>qcomp=1</option> achieves nearly constant quantization parameter
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2490 (QP). Constant QP doesn't look bad, but most people think it's more
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2491 reasonable to shave some bitrate off of the extremely expensive scenes
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2492 (where the loss of quality isn't as noticeable) and reallocate it to
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2493 the scenes that are easier to encode at excellent quality.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2494 <option>qcomp</option> is set to 0.6 by default, which may be slightly
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2495 low for many peoples' taste (0.7-0.8 are also commonly used).
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2496 </para></listitem>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2497 <listitem><para>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2498 <emphasis role="bold">keyint</emphasis>:
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2499 <option>keyint</option> is solely for trading off file seekability against
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2500 coding efficiency. By default, <option>keyint</option> is set to 250. In
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2501 25fps material, this guarantees the ability to seek to within 10 seconds
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2502 precision. If you think it would be important and useful to be able to
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2503 seek within 5 seconds of precision, set <option>keyint=125</option>;
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2504 this will hurt quality/bitrate slightly. If you care only about quality
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2505 and not about seekability, you can set it to much higher values
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2506 (understanding that there are diminishing returns which may become
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2507 vanishingly low, or even zero). The video stream will still have seekable
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2508 points as long as there are some scene changes.
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2509 </para></listitem>
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2510 <listitem><para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2511 <emphasis role="bold">deblockalpha, deblockbeta</emphasis>:
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2512 This topic is going to be a bit controversial.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2513 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2514 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2515 H.264 defines a simple deblocking procedure on I-blocks that uses
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2516 pre-set strengths and thresholds depending on the QP of the block
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2517 in question.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2518 By default, high QP blocks are filtered heavily, and low QP blocks
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2519 are not deblocked at all.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2520 The pre-set strengths defined by the standard are well-chosen and
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2521 the odds are very good that they are PSNR-optimal for whatever
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2522 video you are trying to encode.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2523 The <option>deblockalpha</option> and <option>deblockbeta</option>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2524 parameters allow you to specify offsets to the preset deblocking
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2525 thresholds.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2526 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2527 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2528 Many people seem to think it is a good idea to lower the deblocking
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2529 filter strength by large amounts (say, -3).
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2530 This is however almost never a good idea, and in most cases,
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2531 people who are doing this do not understand very well how
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2532 deblocking works by default.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2533 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2534 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2535 The first and most important thing to know about the in-loop
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2536 deblocking filter is that the default thresholds are almost always
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2537 PSNR-optimal.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2538 In the rare cases that they are not optimal, the ideal offset is
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2539 plus or minus 1.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2540 Adjusting deblocking parameters by a larger amount is almost
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2541 guaranteed to hurt PSNR.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2542 Strengthening the filter will smear more details; weakening the
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2543 filter will increase the appearance of blockiness.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2544 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2545 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2546 It is definitely a bad idea to lower the deblocking thresholds if
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2547 your source is mainly low in spacial complexity (i.e., not a lot
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2548 of detail or noise).
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2549 The in-loop filter does a rather excellent job of concealing
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2550 the artifacts that occur.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2551 If the source is high in spacial complexity, however, artifacts
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2552 are less noticeable.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2553 This is because the ringing tends to look like detail or noise.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2554 Human visual perception easily notices when detail is removed,
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2555 but it does not so easily notice when the noise is wrongly
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2556 represented.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2557 When it comes to subjective quality, noise and detail are somewhat
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2558 interchangeable.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2559 By lowering the deblocking filter strength, you are most likely
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2560 increasing error by adding ringing artifacts, but the eye does
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2561 not notice because it confuses the artifacts with detail.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2562 </para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2563
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2564 <para>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2565 This <emphasis role="bold">still</emphasis> does not justify
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2566 lowering the deblocking filter strength, however.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2567 You can generally get better quality noise from postprocessing.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2568 If your H.264 encodes look too blurry or smeared, try playing with
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2569 <option>-vf noise</option> when you play your encoded movie.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2570 <option>-vf noise=8a:4a</option> should conceal most mild
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2571 artifacting.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2572 It will almost certainly look better than the results you
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2573 would have gotten just by fiddling with the deblocking filter.
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2574 </para></listitem>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2575 </itemizedlist>
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2576 </sect3>
15326
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2577 </sect2>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2578 </sect1>
f351dd913bc6 x264's encoding and install guide
gpoirier
parents: 15271
diff changeset
2579
15809
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2580 <sect1 id="menc-feat-xvid">
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2581 <title>Encoding with the <systemitem class="library">XviD</systemitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2582 codec</title>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2583 <para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2584 <systemitem class="library">XviD</systemitem> is a free library for
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2585 encoding MPEG-4 ASP video streams.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2586 Before starting to encode, you need to <link linkend="xvid">
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2587 set up <application>MEncoder</application> to support it</link>.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2588 </para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2589 <para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2590 This guide mainly aims at featuring the same kind of information
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2591 as x264's encoding guide.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2592 Therefore, please begin by reading
15915
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2593 <link linkend="menc-feat-x264-encoding-options-intro">the first part</link>
b3924612667a Update of the x264 encoding guide:
gpoirier
parents: 15809
diff changeset
2594 of that guide.
15809
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2595 </para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2596
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2597
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2598 <sect2 id="menc-feat-xvid-intro">
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2599 <title>What options should I use to get the best results?</title>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2600
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2601 <para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2602 Please begin by reviewing the
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2603 <systemitem class="library">XviD</systemitem> section of
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2604 <application>MPlayer</application>'s man page.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2605 This section is intended to be a supplement to the man page.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2606 </para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2607 <para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2608 The XviD default settings are already a good tradeoff between
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2609 speed and quality, therefore you can safely stick to them if
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2610 the following section puzzles you.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2611 </para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2612 </sect2>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2613
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2614 <sect2 id="menc-feat-xvid-encoding-options">
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2615 <title>Encoding options of <systemitem class="library">XviD</systemitem></title>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2616
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2617 <itemizedlist>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2618 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2619 <emphasis role="bold">vhq</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2620 This setting affects the macroblock decision algorithm, where the
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2621 higher the setting, the wiser the decision.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2622 The default setting may be safely used for every encode, while
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2623 higher settings always help PSNR but are significantly slower.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2624 Please note that a better PSNR does not necessarily mean
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2625 that the picture will look better, but tells you that it is
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2626 closer to the original.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2627 Turning it off will noticeably speed up encoding; if speed is
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2628 critical for you, the tradeoff may be worth it.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2629 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2630
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2631 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2632 <emphasis role="bold">bvhq</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2633 This does the same job as vhq, but does it on B-frames.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2634 It has a negligible impact on speed, and slightly improves quality
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2635 (around +0.1dB PSNR).
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2636 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2637
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2638 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2639 <emphasis role="bold">max_bframes</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2640 A higher number of consecutive allowed B-frames usually improves
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2641 compressibility, although it may also lead to more blocking artifacts.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2642 The default setting is a good tradeoff between compressibility and
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2643 quality, but you may increase it up to 3 if you are bitrate-starved.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2644 You may also decrease it to 1 or 0 if you are aiming at perfect
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2645 quality, though in that case you should make sure your
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2646 target bitrate is high enough to ensure that the encoder does not
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2647 have to increase quantizers to reach it.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2648 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2649
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2650 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2651 <emphasis role="bold">bf_threshold</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2652 This controls the B-frame sensitivity of the encoder, where a higher
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2653 value leads to more B-frames being used (and vice versa).
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2654 This setting is to be used together with <option>max_bframes</option>;
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2655 if you are bitrate-starved, you should increase both
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2656 <option>max_bframes</option> and <option>bf_threshold</option>,
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2657 while you may increase <option>max_bframes</option> and reduce
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2658 <option>bf_threshold</option> so that the encoder may use more
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2659 B-frames in places that only <emphasis role="bold">really</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2660 need them.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2661 A low number of <option>max_bframes</option> and a high value of
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2662 <option>bf_threshold</option> is probably not a wise choice as it
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2663 will force the encoder to put B-frames in places that would not
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2664 benefit from them, therefore reducing visual quality.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2665 However, if you need to be compatible with standalone players that
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2666 only support old DivX profiles (which only supports up to 1
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2667 consecutive B-frame), this would be your only way to
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2668 increase compressibility through using B-frames.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2669 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2670
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2671 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2672 <emphasis role="bold">trellis</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2673 Optimizes the quantization process to get an optimal tradeoff
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2674 between PSNR and bitrate, which allows significant bit saving.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2675 These bits will in return be spent elsewhere on the video,
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2676 raising overall visual quality.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2677 You should always leave it on as its impact on quality is huge.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2678 Even if you are looking for speed, do not disable it until you
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2679 have turned down <option>vhq</option> and all other more
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2680 CPU-hungry options to the minimum.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2681 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2682
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2683 <listitem><para>
15961
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2684 <emphasis role="bold">hq_ac</emphasis>
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2685 Activates a better coefficient cost estimation method, which slightly
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2686 reduces filesize by around 0.15 to 0.19%, while having a negligible
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2687 impact on speed.
16017
41ca23f65baa lacv supports cgop, you can use '.' to watch a video frame-by frame to
gpoirier
parents: 16003
diff changeset
2688 It is therefore recommended to always leave it on.
15961
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2689 </para></listitem>
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2690
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2691 <listitem><para>
15809
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2692 <emphasis role="bold">cartoon</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2693 Designed to better encode cartoon content, and has no impact on
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2694 speed as it just tunes the mode decision heuristics for this type
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2695 of content.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2696 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2697
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2698 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2699 <emphasis role="bold">me_quality</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2700 This setting is to control the precision of the motion estimation.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2701 The higher <option>me_quality</option>, the more
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2702 precise the estimation of the original motion will be, and the
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2703 better the resulting clip will capture the original motion.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2704 </para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2705 <para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2706 The default setting is best in all cases;
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2707 thus it is not recommended to turn it down unless you are
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2708 really looking for speed, as all the bits saved by a good motion
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2709 estimation would be spent elsewhere, raising overall quality.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2710 Therefore, do not go any lower than 5, and even that only as a last
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2711 resort.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2712 </para></listitem>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2713
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2714 <listitem><para>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2715 <emphasis role="bold">chroma_me</emphasis>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2716 Improves motion estimation by also taking the chroma (color)
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2717 information into account, whereas <option>me_quality</option>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2718 alone only uses luma (grayscale).
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2719 This slows down encoding by 5-10% but improves visual quality
15969
298a815e4f47 Fixes, more accurate description of hq_ac, and mention it's always on by default
gpoirier
parents: 15961
diff changeset
2720 quite a bit by reducing blocking effects and reduces filesize by
15961
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
2721 around 1.3%.
15809
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2722 If you are looking for speed, you should disable this option before
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2723 starting to consider reducing <option>me_quality</option>.
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2724 </para></listitem>
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2725
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2726 <listitem><para>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2727 <emphasis role="bold">chroma_opt</emphasis>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2728 Is intended to increase chroma image quality around pure
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2729 white/black edges, rather than improving compression.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2730 This can help to reduce the "red stairs" effect.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2731 </para></listitem>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2732
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2733 <listitem><para>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2734 <emphasis role="bold">lumi_mask</emphasis>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2735 Tries to give less bitrate to part of the picture that the
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2736 human eye cannot see very well, which should allow the encoder
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2737 to spend the saved bits on more important parts of the picture.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2738 The quality of the encode yielded by this option highly depends
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2739 on personal preferences and on the type and monitor settings
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2740 used to watch it (typically, it will not look as good if it is
15924
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2741 bright or if it is a TFT monitor).
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2742 </para></listitem>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2743
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2744 <listitem><para>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2745 <emphasis role="bold">qpel</emphasis>
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2746 Raise the number of candidate motion vectors by increasing
15924
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2747 the precision of the motion estimation from halfpel to
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2748 quarterpel.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2749 The idea is to find better motion vectors which will in return
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2750 reduce bitrate (hence increasing quality).
15924
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2751 However, motion vectors with quarterpel precision require a
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2752 few extra bits to code, but the candidate vectors do not always
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2753 give (much) better results.
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2754 Quite often, the codec still spends bits on the extra precision,
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2755 but little or no extra quality is gained in return.
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2756 Unfortunately, there is no way to foresee the possible gains of
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2757 <option>qpel</option>, so you need to actually encode with and
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2758 without it to know for sure.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2759 </para><para>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2760 <option>qpel</option> can be almost double encoding time, and
15924
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2761 requires as much as 25% more processing power to decode.
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2762 It is not supported by all standalone players.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2763 </para></listitem>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2764
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2765 <listitem><para>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2766 <emphasis role="bold">gmc</emphasis>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2767 Tries to save bits on panning scenes by using a single motion
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2768 vector for the whole frame.
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2769 This almost always raises PSNR, but significantly slows down
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2770 encoding (as well as decoding).
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2771 Therefore, you should only use it when you have turned
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2772 <option>vhq</option> to the maximum.
15924
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2773 <systemitem class="library">XviD</systemitem>'s GMC is more
154b64188f8e Few fixes and suggestions by Jeff and Diego
gpoirier
parents: 15923
diff changeset
2774 sophisticated than DivX's, but is only supported by few
15923
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2775 standalone players.
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2776 </para></listitem>
ad2a3e29c0d1 More options documented in XviD encoding guide
gpoirier
parents: 15915
diff changeset
2777
15809
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2778 </itemizedlist>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2779 </sect2>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2780 </sect1>
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
2781
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2782 <sect1 id="menc-feat-vcd-dvd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2783 <title>Using MEncoder to create VCD/SVCD/DVD-compliant files.</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2784
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2785 <sect2 id="menc-feat-vcd-dvd-constraints">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2786 <title>Format Constraints</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2787 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2788 <application>MEncoder</application> is capable of creating VCD, SCVD
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2789 and DVD format MPEG files using the
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2790 <systemitem class="library">libavcodec</systemitem> library.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2791 These files can then be used in conjunction with
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2792 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2793 or
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2794 <ulink url="http://dvdauthor.sourceforge.net/">dvdauthor</ulink>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2795 to create discs that will play on a standard set-top player.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2796 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2797
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2798 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2799 The DVD, SVCD, and VCD formats are subject to heavy constraints.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2800 Only a small selection of encoded picture sizes and aspect ratios are
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2801 available.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2802 If your movie does not already meet these requirements, you may have
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2803 to scale,crop or add black borders to the picture to make it
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2804 compliant.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2805 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2806
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2807 <sect3 id="menc-feat-vcd-dvd-constraints-resolution">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2808 <title>Format Constraints</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2809
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2810 <informaltable frame="all">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2811 <tgroup cols="9">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2812 <thead>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2813 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2814 <entry>Format</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2815 <entry>Resolution</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2816 <entry>V. Codec</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2817 <entry>V. Bitrate</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2818 <entry>Sample Rate</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2819 <entry>A. Codec</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2820 <entry>A. Bitrate</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2821 <entry>FPS</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2822 <entry>Aspect</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2823 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2824 </thead>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2825 <tbody>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2826 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2827 <entry>NTSC DVD</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2828 <entry>720x480, 704x480, 352x480, 352x240</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2829 <entry>MPEG-2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2830 <entry>9800 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2831 <entry>48000 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2832 <entry>AC3,PCM</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2833 <entry>1536 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2834 <entry>23.976, 29.97</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2835 <entry>4:3, 16:9 (only for 720x480)</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2836 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2837 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2838 <entry>NTSC DVD</entry>
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2839 <entry>352x240<footnote id='fn-rare-resolutions'><para>
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2840 These resolutions are rarely used for DVDs because
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2841 they are fairly low quality.</para></footnote></entry>
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2842 <entry>MPEG-1</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2843 <entry>1856 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2844 <entry>48000 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2845 <entry>AC3,PCM</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2846 <entry>1536 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2847 <entry>23.976, 29.97</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2848 <entry>4:3, 16:9</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2849 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2850 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2851 <entry>NTSC SVCD</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2852 <entry>480x480</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2853 <entry>MPEG-2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2854 <entry>2600 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2855 <entry>44100 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2856 <entry>MP2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2857 <entry>384 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2858 <entry>29.97</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2859 <entry>4:3</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2860 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2861 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2862 <entry>NTSC VCD</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2863 <entry>352x240</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2864 <entry>MPEG-1</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2865 <entry>1150 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2866 <entry>44100 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2867 <entry>MP2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2868 <entry>224 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2869 <entry>23.976, 29.97</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2870 <entry>4:3</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2871 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2872 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2873 <entry>PAL DVD</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2874 <entry>720x576, 704x576, 352x576, 352x288</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2875 <entry>MPEG-2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2876 <entry>9800 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2877 <entry>48000 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2878 <entry>MP2,AC3,PCM</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2879 <entry>1536 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2880 <entry>25</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2881 <entry>4:3, 16:9 (only for 720x576)</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2882 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2883 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2884 <entry>PAL DVD</entry>
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2885 <entry>352x288<footnoteref linkend='fn-rare-resolutions'/></entry>
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2886 <entry>MPEG-1</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2887 <entry>1856 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2888 <entry>48000 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2889 <entry>MP2,AC3,PCM</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2890 <entry>1536 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2891 <entry>25</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2892 <entry>4:3, 16:9</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2893 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2894 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2895 <entry>PAL SVCD</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2896 <entry>480x576</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2897 <entry>MPEG-2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2898 <entry>2600 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2899 <entry>44100 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2900 <entry>MP2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2901 <entry>384 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2902 <entry>25</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2903 <entry>4:3</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2904 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2905 <row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2906 <entry>PAL VCD</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2907 <entry>352x288</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2908 <entry>MPEG-1</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2909 <entry>1150 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2910 <entry>44100 Hz</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2911 <entry>MP2</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2912 <entry>224 kbps</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2913 <entry>25</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2914 <entry>4:3</entry>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2915 </row>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2916 </tbody>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2917 </tgroup>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2918 </informaltable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2919
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2920 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2921 If your movie has 2.35:1 aspect (most recent action movies), you will
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2922 have to add black borders or crop the movie down to 16:9 to make a DVD
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2923 or VCD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2924 If you add black borders, try to align them at 16-pixel boundaries in
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2925 order to minimize the impact on encoding performance.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2926 Thankfully DVD has sufficiently excessive bitrate that you do not have
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2927 to worry too much about encoding efficiency, but SVCD and VCD are
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2928 highly bitrate-starved and require effort to obtain acceptable quality.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2929 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2930 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2931
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2932 <sect3 id="menc-feat-vcd-dvd-constraints-gop">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2933 <title>GOP Size Constraints</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2934 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2935 DVD, VCD, and SVCD also constrain you to relatively low
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2936 GOP (Group of Pictures) sizes.
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
2937 For 30 fps material the largest allowed GOP size is 18.
15933
diego
parents: 15931
diff changeset
2938 For 25 or 24 fps, the maximum is 15.
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2939 The GOP size is set using the <option>keyint</option> option.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2940 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2941 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2942
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2943 <sect3 id="menc-feat-vcd-dvd-constraints-bitrate">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2944 <title>Bitrate Constraints</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2945 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2946 VCD video is required to be CBR at 1152 kbps.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2947 This highly limiting constraint also comes along with an extremly low vbv
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2948 buffer size of 327 kilobits.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2949 SVCD allows varying video bitrates up to 2500 kbps, and a somewhat less
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2950 restrictive vbv buffer size of 917 kilobits is allowed.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2951 DVD video bitrates may range anywhere up to 9800 kbps (though typical
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2952 bitrates are about half that), and the vbv buffer size is 1835 kilobits.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2953 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2954 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2955 </sect2>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2956
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2957 <sect2 id="menc-feat-vcd-dvd-output">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2958 <title>Output Options</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2959 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2960 <application>MEncoder</application> has options to control the output
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2961 format.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2962 Using these options we can instruct it to create the correct type of
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2963 file.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2964 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2965
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2966 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2967 The options for VCD and SVCD are called xvcd and xsvcd, because they
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2968 are extended formats.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2969 They are not strictly compliant, mainly because the output does not
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2970 contain scan offsets.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2971 If you need to generate an SVCD image, you should pass the output file
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2972 to
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2973 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2974 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2975
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2976 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2977 VCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2978 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2979 -of mpeg -mpegopts format=xvcd
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2980 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2981 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2982
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2983 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2984 SVCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2985 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2986 -of mpeg -mpegopts format=xsvcd
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2987 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2988 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2989
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2990 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2991 DVD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2992 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2993 -of mpeg -mpegopts format=dvd
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2994 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2995 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2996
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2997 <sect3 id="menc-feat-vcd-dvd-output-aspect">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2998 <title>Aspect Ratio</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
2999 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3000 The aspect argument of <option>-lavcopts</option> is used to encode
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3001 the aspect ratio of the file.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3002 During playback the aspect ratio is used to restore the video to the
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3003 correct size.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3004 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3005
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3006 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3007 16:9 or "Widescreen"
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3008 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3009 -lavcopts aspect=16/9
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3010 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3011 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3012
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3013 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3014 4:3 or "Fullscreen"
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3015 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3016 -lavcopts aspect=4/3
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3017 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3018 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3019
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3020 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3021 2.35:1 or "Cinemascope" NTSC
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3022 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3023 -vf scale=720:368,expand=720:480 -lavcopts aspect=16/9
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3024 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3025 To calculate the correct scaling size, use the expanded NTSC width of
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3026 854/2.35 = 368
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3027 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3028
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3029 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3030 2.35:1 or "Cinemascope" PAL
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3031 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3032 -vf scale="720:432,expand=720:576 -lavcopts aspect=16/9
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3033 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3034 To calculate the correct scaling size, use the expanded PAL width of
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3035 1024/2.35 = 432
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3036 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3037
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3038 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3039
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3040 <sect3 id="menc-feat-vcd-dvd-output-srate">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3041 <title>Sample Rate Conversion</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3042 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3043 If the audio sample rate in the original file is not the same as
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3044 required by the target format, sample rate conversion is required.
15935
25cbd7d3f432 Fixes fix
gpoirier
parents: 15933
diff changeset
3045 This is achieved using the <option>-srate</option> option and
25cbd7d3f432 Fixes fix
gpoirier
parents: 15933
diff changeset
3046 the <option>-af lavcresample</option> audio filter together.
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3047 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3048 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3049 DVD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3050 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3051 -srate 48000 -af lavcresample=48000
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3052 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3053 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3054 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3055 VCD and SVCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3056 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3057 -srate 44100 -af lavcresample=44100
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3058 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3059 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3060 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3061 </sect2>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3062
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3063 <sect2 id="menc-feat-vcd-dvd-lavc">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3064 <title>Using libavcodec for VCD/SVCD/DVD Encoding</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3065
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3066 <sect3 id="menc-feat-vcd-dvd-lavc-intro">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3067 <title>Introduction</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3068 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3069 <systemitem class="library">libavcodec</systemitem> can be used to
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3070 create VCD/SVCD/DVD compliant video by using the appropriate options.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3071 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3072 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3073
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3074 <sect3 id="menc-feat-vcd-dvd-lavc-options">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3075 <title>lavcopts</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3076 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3077 This is a list of fields in <option>-lavcopts</option> that you may
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3078 be required to change in order to make a complaint movie for VCD, SVCD,
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3079 or DVD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3080 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3081
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3082 <itemizedlist>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3083 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3084 <emphasis role="bold">acodec</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3085 <option>mp2</option> for VCD, SVCD, or PAL DVD;
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3086 <option>ac3</option> is most commonly used for DVD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3087 PCM audio may also be used for DVD, but this is mostly a big waste of
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3088 space.
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
3089 Note that MP3 audio is not compliant for any of these formats, but
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3090 players often have no problem playing it anyway.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3091 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3092
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3093 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3094 <emphasis role="bold">abitrate</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3095 224 for VCD; up to 384 for SVCD; up to 1536 for DVD, but commonly
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3096 used values range from 192 kbps for stereo to 384 kbps for 5.1 channel
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3097 sound.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3098 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3099
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3100 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3101 <emphasis role="bold">vcodec</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3102 <option>mpeg1video</option> for VCD;
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3103 <option>mpeg2video</option> for SVCD;
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3104 <option>mpeg2video</option> is usually used for DVD but you may also use
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3105 <option>mpeg1video</option> for CIF resolutions.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3106 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3107
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3108 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3109 <emphasis role="bold">keyint</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3110 Used to set the GOP size.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3111 18 for 30fps material, or 15 for 25/24 fps material.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3112 Commercial producers seem to prefer keyframe intervals of 12.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3113 It is possible to make this much larger and still retain compatibility
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3114 with most players.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3115 A <option>keyint</option> of 25 should never cause any problems.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3116 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3117
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3118 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3119 <emphasis role="bold">vrc_buf_size</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3120 327 for VCD, 917 for SVCD, and 1835 for DVD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3121 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3122
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3123 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3124 <emphasis role="bold">vrc_minrate</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3125 1152, for VCD. May be left alone for SVCD and DVD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3126 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3127
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3128 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3129 <emphasis role="bold">vrc_maxrate</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3130 1152 for VCD; 2500 for SVCD; 9800 for DVD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3131 For SVCD and DVD, you might wish to use lower values depending on your
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3132 own personal preferences and requirements.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3133 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3134
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3135 <listitem><para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3136 <emphasis role="bold">vbitrate</emphasis>:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3137 1152 for VCD;
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3138 up to 2500 for SVCD;
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3139 up to 9800 for DVD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3140 For the latter two formats, vbitrate should be set based on personal
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3141 preference.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3142 For instance, if you insist on fitting 20 or so hours on a DVD, you
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3143 could use vbitrate=400.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3144 The resulting video quality would probably be quite bad.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3145 If you are trying to squeeze out the maximum possible quality on a DVD,
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3146 use vbitrate=9800, but be warned that this could constrain you to less
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3147 than an hour of video on a single-layer DVD.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3148 </para></listitem>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3149 </itemizedlist>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3150 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3151
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3152 <sect3 id="menc-feat-vcd-dvd-lavc-examples">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3153 <title>Examples</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3154 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3155 This is a typical minimum set of <option>-lavcopts</option> for
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3156 encoding video:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3157 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3158 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3159 VCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3160 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3161 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:vrc_minrate=1152:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3162 vrc_maxrate=1152:vbitrate=1152:keyint=15:acodec=mp2
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3163 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3164 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3165
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3166 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3167 SVCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3168 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3169 -lavcopts vcodec=mpeg2video:vrc_buf_size=917:vrc_maxrate=2500:vbitrate=1800:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3170 keyint=15:acodec=mp2
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3171 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3172 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3173
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3174 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3175 DVD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3176 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3177 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3178 keyint=15:acodec=ac3
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3179 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3180 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3181
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3182 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3183
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3184 <sect3 id="menc-feat-vcd-dvd-lavc-advanced">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3185 <title>Advanced Options</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3186 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3187 For higher quality encoding, you may also wish to add quality-enhancing
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3188 options to lavcopts, such as <option>trell</option>,
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3189 <option>mbd=2</option>, and others.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3190 Note that <option>qpel</option> and <option>v4mv</option>, while often
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
3191 useful with MPEG-4, are not usable with MPEG-1 or MPEG-2.
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3192 Also, if you are trying to make a very high quality DVD encode, it may
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3193 be useful to add <option>dc=10</option> to lavcopts.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3194 Doing so may help reduce the appearance of blocks in flat-colored areas.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3195 Putting it all together, this is an example of a set of lavcopts for a
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3196 higher quality DVD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3197 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3198
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3199 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3200 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3201 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3202 keyint=15:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3203 vqmin=1:lmin=1:dc=10
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3204 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3205 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3206
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3207 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3208 </sect2>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3209
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3210 <sect2 id="menc-feat-vcd-dvd-audio">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3211 <title>Encoding Audio</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3212 <para>
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
3213 VCD and SVCD support MPEG-1 layer II audio, using one of
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3214 <systemitem class="library">toolame</systemitem>,
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3215 <systemitem class="library">twolame</systemitem>,
15931
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
3216 or <systemitem class="library">libavcodec</systemitem>'s MP2 encoder.
545e7ec8bce7 Fixes suggested by Diego
gpoirier
parents: 15926
diff changeset
3217 The libavcodec MP2 is far from being as good as the other two libraries,
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3218 however it should always be available to use.
15957
bb6729801e1c SVCD supports VBR audio and VCD CBR only. Reflects the newest patches of Nico
gpoirier
parents: 15935
diff changeset
3219 VCD only supports constant bitrate audio (CBR) whereas SVCD supports
15961
9f708f9e185b One more XviD option documented: hq_ac + a fix + more infos on chroma_me
gpoirier
parents: 15957
diff changeset
3220 variable bitrate (VBR), too.
15957
bb6729801e1c SVCD supports VBR audio and VCD CBR only. Reflects the newest patches of Nico
gpoirier
parents: 15935
diff changeset
3221 Be careful when using VBR because some bad standalone players might not
bb6729801e1c SVCD supports VBR audio and VCD CBR only. Reflects the newest patches of Nico
gpoirier
parents: 15935
diff changeset
3222 support it too well.
15926
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3223 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3224
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3225 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3226 For DVD audio, <systemitem class="library">libavcodec</systemitem>'s
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3227 AC3 codec is used.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3228 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3229
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3230 <sect3 id="menc-feat-vcd-dvd-audio-toolame">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3231 <title>toolame</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3232 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3233 For VCD and SVCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3234 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3235 -oac toolame -toolameopts br=224
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3236 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3237 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3238 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3239
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3240 <sect3 id="menc-feat-vcd-dvd-audio-twolame">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3241 <title>twolame</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3242 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3243 For VCD and SVCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3244 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3245 -oac twolame -twolameopts br=224
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3246 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3247 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3248 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3249
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3250 <sect3 id="menc-feat-vcd-dvd-audio-lavc">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3251 <title>libavcodec</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3252 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3253 For DVD with 2 channel sound:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3254 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3255 -oac lavc -lavcopts acodec=ac3:abitrate=192
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3256 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3257 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3258 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3259 For DVD with 5.1 channel sound:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3260 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3261 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=384
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3262 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3263 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3264 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3265 For VCD and SVCD:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3266 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3267 -oac lavc -lavcopts acodec=mp2:abitrate=224
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3268 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3269 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3270 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3271
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3272 </sect2>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3273
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3274 <sect2 id="menc-feat-vcd-dvd-all">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3275 <title>Putting it all Together</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3276 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3277 This section shows some complete commands for creating VCD/SVCD/DVD
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3278 compliant videos.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3279 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3280
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3281 <sect3 id="menc-feat-vcd-dvd-all-pal-dvd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3282 <title>PAL DVD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3283 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3284 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3285 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3286 harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3287 vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:acodec=ac3:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3288 abitrate=192:aspect=16/9 -ofps 25 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3289 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3290 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3291 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3292 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3293
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3294 <sect3 id="menc-feat-vcd-dvd-all-ntsc-dvd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3295 <title>NTSC DVD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3296 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3297 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3298 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3299 harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3300 vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18:acodec=ac3:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3301 abitrate=192:aspect=16/9 -ofps 30000/1001 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3302 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3303 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3304 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3305 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3306
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3307 <sect3 id="menc-feat-vcd-dvd-all-pal-ac3-copy">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3308 <title>PAL AVI Containing AC3 Audio to DVD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3309 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3310 If the source already has AC3 audio, use -oac copy instead of re-encoding it.
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3311 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3312 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3313 harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3314 vbitrate=5000:keyint=15:aspect=16/9 -ofps 25 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3315 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3316 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3317 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3318 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3319
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3320 <sect3 id="menc-feat-vcd-dvd-all-ntsc-ac3-copy">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3321 <title>NTSC AVI Containing AC3 Audio to DVD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3322 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3323 If the source already has AC3 audio, and is NTSC @ 23.976 fps:
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3324 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3325 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3326 harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3327 vbitrate=5000:keyint=15:aspect=16/9 -ofps 24000/1001 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3328 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3329 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3330 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3331 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3332
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3333 <sect3 id="menc-feat-vcd-dvd-all-pal-svcd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3334 <title>PAL SVCD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3335 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3336 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3337 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3338 scale=480:576,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3339 vcodec=mpeg2video:mbd=2:keyint=15:vrc_buf_size=917:vrc_minrate=600:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3340 vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 25 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3341 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3342 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3343 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3344 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3345
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3346 <sect3 id="menc-feat-vcd-dvd-all-ntsc-svcd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3347 <title>NTSC SVCD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3348 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3349 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3350 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xsvcd -vf \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3351 scale=480:480,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3352 vcodec=mpeg2video:mbd=2:keyint=18:vrc_buf_size=917:vrc_minrate=600:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3353 vbitrate=2500:vrc_maxrate=2500:acodec=mp2:abitrate=224 -ofps 30000/1001 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3354 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3355 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3356 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3357 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3358
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3359 <sect3 id="menc-feat-vcd-dvd-all-pal-vcd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3360 <title>PAL VCD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3361 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3362 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3363 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3364 scale=352:288,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3365 vcodec=mpeg1video:keyint=15:vrc_buf_size=327:vrc_minrate=1152:vbitrate=1152:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3366 vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 25 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3367 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3368 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3369 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3370 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3371
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3372 <sect3 id="menc-feat-vcd-dvd-all-ntsc-vcd">
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3373 <title>NTSC VCD</title>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3374 <para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3375 <screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3376 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=xvcd -vf \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3377 scale=352:240,harddup -srate 44100 -af lavcresample=44100 -lavcopts \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3378 vcodec=mpeg1video:keyint=18:vrc_buf_size=327:vrc_minrate=1152:vbitrate=1152:\
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3379 vrc_maxrate=1152:acodec=mp2:abitrate=224 -ofps 30000/1001 \
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3380 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3381 </screen>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3382 </para>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3383 </sect3>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3384
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3385 </sect2>
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3386
e51e67f19eff Documentation for VCD/SVCD/DVD encoding, patch by Brendan McCarthy < bmccarthy AH iinet POUM net POUM au>
gpoirier
parents: 15924
diff changeset
3387 </sect1>
15809
c4974449b18c New codec covered by the encoding guide: XviD
gpoirier
parents: 15714
diff changeset
3388
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3389 <sect1 id="menc-feat-telecine">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3390 <title>How to deal with telecine and interlacing within NTSC DVDs</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3391
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3392 <sect2 id="menc-feat-telecine-intro">
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3393 <title>Introduction</title>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3394 <formalpara>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3395 <title>What is telecine?</title>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3396 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3397 I suggest you visit this page if you do not understand much of what
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3398 is written in this document:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3399 <ulink url="http://www.divx.com/support/guides/guide.php?gid=10">http://www.divx.com/support/guides/guide.php?gid=10</ulink>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3400 This URL links to an understandable and reasonably comprehensive
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3401 description of what telecine is.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3402 </para></formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3403
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3404 <formalpara>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3405 <title>A note about the numbers.</title>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3406 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3407 Many documents, including the guide linked above, refer to the fields
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3408 per second value of NTSC video as 59.94 and the corresponding frames
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3409 per second values as 29.97 (for telecined and interlaced) and 23.976
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3410 (for progressive). For simplicity, some documents even round these
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3411 numbers to 60, 30, and 24.
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3412 </para></formalpara>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3413
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3414 <para>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3415 Strictly speaking, all those numbers are approximations. Black and
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3416 white NTSC video was exactly 60 fields per second, but 60000/1001
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3417 was later chosen to accomodate color data while remaining compatible
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3418 with contemporary black and white televisions. Digital NTSC video
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3419 (such as on a DVD) is also 60000/1001 fields per second. From this,
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3420 interlaced and telecined video are derived to be 30000/1001 frames
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3421 per second; progressive video is 24000/1001 frames per second.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3422 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3423
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3424 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3425 Older versions of the <application>MEncoder</application> documentation
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3426 and many archived mailing list posts refer to 59.94, 29.97, and 23.976.
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3427 All <application>MEncoder</application> documentation has been updated
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3428 to use the fractional values, and you should use them too.
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3429 </para>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3430
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3431 <para>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3432 <option>-ofps 23.976</option> is incorrect.
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3433 <option>-ofps 24000/1001</option> should be used instead.
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3434 </para>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3435
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3436 <formalpara>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3437 <title>How telecine is used.</title>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3438 <para>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3439 All video intended to be displayed on an NTSC
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3440 television set must be 60000/1001 fields per second. Made-for-TV movies
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3441 and shows are often filmed directly at 60000/1001 fields per second, but
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3442 the majority of cinema is filmed at 24 or 24000/1001 frames per
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3443 second. When cinematic movie DVDs are mastered, the video is then
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3444 converted for television using a process called telecine.
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3445 </para></formalpara>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3446
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3447 <para>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3448 On a DVD, the video is never actually stored as 60000/1001 fields per
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3449 second. For video that was originally 60000/1001, each pair of fields is
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3450 combined to form a frame, resulting in 30000/1001 frames per
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3451 second. Hardware DVD players then read a flag embedded in the video
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3452 stream to determine whether the odd- or even-numbered lines should
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3453 form the first field.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3454 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3455
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3456 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3457 Usually, 24000/1001 frames per second content stays as it is when
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3458 encoded for a DVD, and the DVD player must perform telecining
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3459 on-the-fly. Sometimes, however, the video is telecined
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3460 <emphasis>before</emphasis> being stored on the DVD; even though it
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3461 was originally 24000/1001 frames per second, it becomes 60000/1001 fields per
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3462 second. When it is stored on the DVD, pairs of fields are combined to form
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3463 30000/1001 frames per second.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3464 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3465
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3466 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3467 When looking at individual frames formed from 60000/10001 fields per
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3468 second video, telecined or otherwise, interlacing is clearly visible
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3469 wherever there is any motion, because one field (say, the
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3470 even-numbered lines) represents a moment in time 1/(60000/1001)
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3471 seconds later than the other. Playing interlaced video on a computer
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3472 looks ugly both because the monitor is higher resolution and because
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3473 the video is shown frame-after-frame instead of field-after-field.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3474 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3475
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3476 <itemizedlist>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3477 <title>Notes:</title>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3478 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3479 This section only applies to NTSC DVDs, and not PAL.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3480 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3481 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3482 The example <application>MEncoder</application> lines throughout the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3483 document are <emphasis role="bold">not</emphasis> intended for
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3484 actual use. They are simply the bare minimum required to encode the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3485 pertaining video category. How to make good DVD rips or fine-tune
15113
a53b942816a5 Removes the section "menc-feat-fix-avi" as part of it was wrong and the other
gpoirier
parents: 15038
diff changeset
3486 <systemitem class="library">libavcodec</systemitem> for maximal
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3487 quality is not within the scope of this document.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3488 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3489 <listitem><para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
3490 There are a couple footnotes specific to this guide, linked like this:
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3491 <link linkend="menc-feat-telecine-footnotes">[1]</link>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3492 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3493 </itemizedlist>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3494 </sect2>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3495
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3496 <sect2 id="menc-feat-telecine-ident">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3497 <title>How to tell what type of video you have</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3498
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3499 <sect3 id="menc-feat-telecine-ident-progressive">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3500 <title>Progressive</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3501 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3502 Progressive video was originally filmed at 24000/1001 fps, and stored
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3503 on the DVD without alteration.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3504 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3505
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3506 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3507 When you play a progressive DVD in <application>MPlayer</application>,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3508 <application>MPlayer</application> will print the following line as
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3509 soon as the movie begins to play:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3510
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3511 <screen> demux_mpg: 24000/1001 fps progressive NTSC content detected, switching framerate.</screen>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3512
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3513 From this point forward, demux_mpg should never say it finds
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3514 &quot;30000/1001 fps NTSC content.&quot;
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3515 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3516
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3517 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3518 When you watch progressive video, you should never see any
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3519 interlacing. Beware, however, because sometimes there is a tiny bit
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3520 of telecine mixed in where you would not expect. I have encountered TV
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3521 show DVDs that have one second of telecine at every scene change, or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3522 at seemingly random places. I once watched a DVD that had a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3523 progressive first half, and the second half was telecined. If you
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3524 want to be <emphasis>really</emphasis> thorough, you can scan the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3525 entire movie:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3526
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3527 <screen>mplayer dvd://1 -nosound -vo null -benchmark</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3528
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3529 Using <option>-benchmark</option> makes
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3530 <application>MPlayer</application> play the movie as quickly as it
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3531 possibly can; still, depending on your hardware, it can take a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3532 while. Every time demux_mpg reports a framerate change, the line
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3533 immediately above will show you the time at which the change
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3534 occurred.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3535 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3536
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3537 <para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3538 Sometimes progressive video on DVDs is referred to as
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3539 &quot;soft-telecine&quot; because it is intended to
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3540 be telecined by the DVD player.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3541 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3542 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3543
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3544 <sect3 id="menc-feat-telecine-ident-telecined">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3545 <title>Telecined</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3546 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3547 Telecined video was originally filmed at 24000/1001, but was telecined
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3548 <emphasis>before</emphasis> it was written to the DVD.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3549 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3550
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3551 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3552 <application>MPlayer</application> does not (ever) report any
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3553 framerate changes when it plays telecined video.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3554 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3555
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3556 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3557 Watching a telecined video, you will see interlacing artifacts that
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3558 seem to &quot;blink&quot;: they repeatedly appear and disappear.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3559 You can look closely at this by
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3560 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3561 <listitem>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3562 <screen>mplayer dvd://1</screen>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3563 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3564 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3565 Seek to a part with motion.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3566 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3567 <listitem><para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3568 Use the <keycap>.</keycap> key to step forward one frame at a time.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3569 </para></listitem>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3570 <listitem><para>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3571 Look at the pattern of interlaced-looking and progressive-looking
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3572 frames. If the pattern you see is PPPII,PPPII,PPPII,... then the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3573 video is telecined. If you see some other pattern, then the video
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3574 may have been telecined using some non-standard method;
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3575 <application>MEncoder</application> cannot losslessly convert
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3576 non-standard telecine to progressive. If you do not see any
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3577 pattern at all, then it is most likely interlaced.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3578 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3579 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3580 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3581
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3582 <para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3583 Sometimes telecined video on DVDs is referred to as
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3584 &quot;hard-telecine&quot;. Since hard-telecine is already 60000/1001 fields
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3585 per second, the DVD player plays the video without any manipulation.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3586 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3587 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3588
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3589 <sect3 id="menc-feat-telecine-ident-interlaced">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3590 <title>Interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3591 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3592 Interlaced video was originally filmed at 60000/1001 fields per second,
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3593 and stored on the DVD as 30000/1001 frames per second. The interlacing effect
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3594 (often called &quot;combing&quot;) is a result of combining pairs of
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3595 fields into frames. Each field is supposed to be 1/(60000/1001) seconds apart,
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3596 and when they are displayed simultaneously the difference is apparent.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3597 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3598
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3599 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3600 As with telecined video, <application>MPlayer</application> should
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3601 not ever report any framerate changes when playing interlaced content.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3602 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3603
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3604 <para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3605 When you view an interlaced video closely by frame-stepping with the
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3606 <keycap>.</keycap> key, you will see that every single frame is interlaced.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3607 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3608 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3609
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3610 <sect3 id="menc-feat-telecine-ident-mixedpt">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3611 <title>Mixed progressive and telecine</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3612 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3613 All of a &quot;mixed progressive and telecine&quot; video was originally
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3614 24000/1001 frames per second, but some parts of it ended up being telecined.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3615 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3616
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3617 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3618 When <application>MPlayer</application> plays this category, it will
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3619 (often repeatedly) switch back and forth between &quot;30000/1001 fps NTSC&quot;
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3620 and &quot;24000/1001 fps progressive NTSC&quot;. Watch the bottom of
12578
3f543ec01d1e 's should be outside of <application> tags.
diego
parents: 12484
diff changeset
3621 <application>MPlayer</application>'s output to see these messages.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3622 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3623
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3624 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3625 You should check the &quot;30000/1001 fps NTSC&quot; sections to make sure
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3626 they are actually telecine, and not just interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3627 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3628 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3629
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3630 <sect3 id="menc-feat-telecine-ident-mixedpi">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3631 <title>Mixed progressive and interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3632 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3633 In &quot;mixed progressive and interlaced&quot; content, progressive
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
3634 and interlaced video have been spliced together.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3635 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3636
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3637 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3638 This category looks just like &quot;mixed progressive and telecine&quot;,
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3639 until you examine the 30000/1001 fps sections and see that they do not have the
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3640 telecine pattern.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3641 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3642 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3643
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3644 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3645
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3646 <sect2 id="menc-feat-telecine-encode">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3647 <title>How to encode each category</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3648 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3649 As I mentioned in the beginning, example <application>MEncoder</application>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3650 lines below are <emphasis role="bold">not</emphasis> meant to actually be used;
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3651 they only demonstrate the minimum parameters to properly encode each category.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3652 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3653
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3654 <sect3 id="menc-feat-telecine-encode-progressive">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3655 <title>Progressive</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3656 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3657 Progressive video requires no special filtering to encode. The only
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3658 parameter you need to be sure to use is
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3659 <option>-ofps 24000/1001</option>. Otherwise, <application>MEncoder</application>
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3660 will try to encode at 30000/1001 fps and will duplicate frames.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3661 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3662
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3663 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3664 <screen>mencoder dvd://1 -nosound -ovc lavc -ofps 24000/1001</screen>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3665 </para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3666
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3667 <para>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3668 It is often the case, however, that a video that looks progressive
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3669 actually has very short parts of telecine mixed in. Unless you are
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3670 sure, it is safest to treat the video as
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3671 <link linkend="menc-feat-telecine-encode-mixedpt">mixed progressive and telecine</link>.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3672 The performance loss is small
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3673 <link linkend="menc-feat-telecine-footnotes">[3]</link>.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3674 </para>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3675 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3676
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3677 <sect3 id="menc-feat-telecine-encode-telecined">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3678 <title>Telecined</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3679 <para>
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3680 Telecine can be reversed to retrieve the original 24000/1001 content,
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3681 using a process called inverse-telecine.
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3682 <application>MPlayer</application> contains several filters to
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3683 accomplish this; the best filter, <option>pullup</option>, is described
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3684 in the <link linkend="menc-feat-telecine-encode-mixedpt">mixed
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3685 progressive and telecine</link> section.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3686 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3687 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3688
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3689 <sect3 id="menc-feat-telecine-encode-interlaced">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3690 <title>Interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3691 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3692 For most practical cases it is not possible to retrieve a complete
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3693 progressive video from interlaced content. The only way to do so
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3694 without losing half of the vertical resolution is to double the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3695 framerate and try to &quot;guess&quot; what ought to make up the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3696 corresponding lines for each field (this has drawbacks - see method
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3697 3).
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3698 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3699
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3700 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3701 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3702
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3703 Encode the video in interlaced form. Normally, interlacing wreaks
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3704 havoc with the encoder's ability to compress well, but
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3705 <systemitem class="library">libavcodec</systemitem> has two
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3706 parameters specifically for dealing with storing interlaced video a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3707 bit better: <option> ildct</option> and <option>ilme</option>. Also,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3708 using <option>mbd=2</option> is strongly recommended
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3709 <link linkend="menc-feat-telecine-footnotes">[2] </link> because it
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3710 will encode macroblocks as non-interlaced in places where there is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3711 no motion. Note that <option>-ofps</option> is NOT needed here.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3712
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3713 <screen>mencoder dvd://1 -nosound -ovc lavc -lavcopts ildct:ilme:mbd=2</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3714 </para></listitem>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
3715 <listitem><para>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3716 Use a deinterlacing filter before encoding. There are several of
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3717 these filters available to choose from, each with its own advantages
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
3718 and disadvantages. Consult <option>mplayer -pphelp</option> to see
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3719 what is available (grep for &quot;deint&quot;), and search the
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3720 <ulink url="http://www.mplayerhq.hu/homepage/design6/info.html#mailing_lists">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3721 MPlayer mailing lists</ulink> to find many discussions about the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3722 various filters. Again, the framerate is not changing, so no
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
3723 <option>-ofps</option>. Also, deinterlacing should be done after
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3724 cropping <link linkend="menc-feat-telecine-footnotes">[1]</link> and
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3725 before scaling.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3726
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3727 <screen>mencoder dvd://1 -nosound -vf pp=lb -ovc lavc</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3728 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3729 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3730 Unfortunately, this option is buggy with
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3731 <application>MEncoder</application>; it ought to work well with
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3732 <application>MEncoder G2</application>, but that is not here yet. You
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3733 might experience crahes. Anyway, the purpose of <option> -vf
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3734 tfields</option> is to create a full frame out of each field, which
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3735 makes the framerate 60000/1001. The advantage of this approach is that no
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3736 data is ever lost; however, since each frame comes from only one
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3737 field, the missing lines have to be interpolated somehow. There are
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3738 no very good methods of generating the missing data, and so the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3739 result will look a bit similar to when using some deinterlacing
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3740 filters. Generating the missing lines creates other issues, as well,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3741 simply because the amount of data doubles. So, higher encoding
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3742 bitrates are required to maintain quality, and more CPU power is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3743 used for both encoding and decoding. tfields has several different
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3744 options for how to create the missing lines of each frame. If you
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3745 use this method, then Reference the manual, and chose whichever
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3746 option looks best for your material. Note that when using
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3747 <option>tfields</option> you
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
3748 <emphasis role="bold">have to</emphasis> specify both
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3749 <option>-fps</option> and <option>-ofps</option> to be twice the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3750 framerate of your original source.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3751
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3752 <screen>mencoder dvd://1 -nosound -vf tfields=2 -ovc lavc -fps 60000/1001 -ofps 60000/1001</screen>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3753 </para></listitem>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
3754 <listitem><para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3755 If you plan on downscaling dramatically, you can extract and encode
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3756 only one of the two fields. Of course, you will lose half the vertical
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3757 resolution, but if you plan on downscaling to at most 1/2 of the
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3758 original, the loss will not matter much. The result will be a
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3759 progressive 30000/1001 frames per second file. The procedure is to use
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3760 <option>-vf field</option>, then crop
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3761 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3762 appropriately. Remember that you will have to adjust the scale to
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3763 compensate for the vertical resolution being halved.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3764 <screen>mencoder dvd://1 -nosound -vf field=0 -ovc lavc</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3765 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3766 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3767 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3768
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3769 <sect3 id="menc-feat-telecine-encode-mixedpt">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3770 <title>Mixed progressive and telecine</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3771 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3772 In order to turn mixed progressive and telecine video into entirely
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3773 progressive video, the telecined parts have to be
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3774 inverse-telecined. There are three ways to accomplish this,
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3775 described below. Note that you should
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3776 <emphasis role="bold">always</emphasis> inverse-telecine before any
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3777 rescaling; unless you really know what you are doing,
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3778 inverse-telecine before cropping, too
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3779 <link linkend="menc-feat-telecine-footnotes">[1]</link>.
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3780 <option>-ofps 24000/1001</option> is needed here because the output video
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3781 will be 24000/1001 frames per second.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3782 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3783
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3784 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3785 <listitem><para>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3786 <option>-vf pullup</option> is designed to inverse-telecine
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3787 telecined material while leaving progressive data alone. In order to
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3788 work properly, <option>pullup</option> <emphasis role="bold">must</emphasis>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3789 be followed by the <option>softskip</option> filter or
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3790 else <application>MEncoder</application> will crash.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3791 <option>pullup</option> is, however, the cleanest and most
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3792 accurate method available for encoding both telecine and
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3793 &quot;mixed progressive and telecine&quot;.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3794
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3795 <screen>mencoder dvd://1 -nosound -vf pullup,softskip -ovc lavc -ofps 24000/1001</screen>
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3796 </para>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3797
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3798
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3799 </listitem>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3800 <listitem><para>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3801 An older method
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3802 is to, rather than inverse-telecine the telecined parts, telecine
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3803 the non-telecined parts and then inverse-telecine the whole
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
3804 video. Sound confusing? softpulldown is a filter that goes through
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3805 a video and makes the entire file telecined. If we follow
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3806 softpulldown with either <option>detc</option> or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3807 <option>ivtc</option>, the final result will be entirely
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3808 progressive. <option>-ofps 24000/1001</option> is needed.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3809
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3810 <screen>mencoder dvd://1 -nosound -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001</screen>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3811 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3812 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3813
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3814 <listitem><para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3815 I have not used <option>-vf filmdint</option> myself, but here is what
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3816 D Richard Felker III has to say:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3817
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3818 <blockquote><para>It is OK, but IMO it tries to deinterlace rather
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3819 than doing inverse telecine too often (much like settop DVD
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3820 players &amp; progressive TVs) which gives ugly flickering and
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3821 other artifacts. If you are going to use it, you at least need to
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3822 spend some time tuning the options and watching the output first
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3823 to make sure it is not messing up.</para></blockquote>
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3824 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3825 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3826 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3827
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3828 <sect3 id="menc-feat-telecine-encode-mixedpi">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3829 <title>Mixed progressive and interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3830 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3831 There are two options for dealing with this category, each of
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3832 which is a compromise. You should decide based on the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3833 duration/location of each type.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3834 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3835
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3836 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3837 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3838 Treat it as progressive. The interlaced parts will look interlaced,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3839 and some of the interlaced fields will have to be dropped, resulting
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3840 in a bit of uneven jumpiness. You can use a postprocessing filter if
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3841 you want to, but it may slightly degrade the progressive parts.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3842 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3843
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3844 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3845 This option should definitely not be used if you want to eventually
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3846 display the video on an interlaced device (with a TV card, for
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3847 example). If you have interlaced frames in a 24000/1001 frames per
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3848 second video, they will be telecined along with the progressive
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3849 frames. Half of the interlaced "frames" will be displayed for three
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3850 fields' duration (3/(60000/1001) seconds), resulting in a flicking
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3851 &quot;jump back in time&quot; effect that looks quite bad. If you
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3852 even attempt this, you <emphasis role="bold">must</emphasis> use a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3853 deinterlacing filter like <option>lb</option> or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3854 <option>l5</option>.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3855 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3856
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3857 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3858 It may also be a bad idea for progressive display, too. It will drop
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3859 pairs of consecutive interlaced fields, resulting in a discontinuity
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3860 that can be more visible than with the second method, which shows
14958
85546d215f6e precise framerate values everywhere
diego
parents: 14828
diff changeset
3861 some progressive frames twice. 30000/1001 frames per second interlaced
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3862 video is already a bit choppy because it really should be shown at
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3863 60000/1001 fields per second, so the duplicate frames do not stand out as
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3864 much.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3865 </para>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
3866
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3867 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3868 Either way, it is best to consider your content and how you intend to
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3869 display it. If your video is 90% progressive and you never intend to
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3870 show it on a TV, you should favor a progressive approach. If it is
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3871 only half progressive, you probably want to encode it as if it is all
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3872 interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3873 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3874 </listitem>
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
3875
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3876 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3877 Treat it as interlaced. Some frames of the progressive parts will
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3878 need to be duplicated, resulting in uneven jumpiness. Again,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3879 deinterlacing filters may slightly degrade the progressive parts.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3880 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3881
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3882 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3883 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3884
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3885 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3886
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3887 <sect2 id="menc-feat-telecine-footnotes">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3888 <title>Footnotes</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3889 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3890 <listitem><formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3891 <title>About cropping:</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3892 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3893 Video data on DVDs are stored in a format called YUV 4:2:0. In YUV
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3894 video, luma (&quot;brightness&quot;) and chroma (&quot;color&quot;)
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3895 are stored separately. Because the human eye is somewhat less
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3896 sensitive to color than it is to brightness, in a YUV 4:2:0 picture
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3897 there is only one chroma pixel for every four luma pixels. In a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3898 progressive picture, each square of four luma pixels (two on each
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3899 side) has one common chroma pixel. You must crop progressive YUV
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3900 4:2:0 to even resolutions, and use even offsets. For example,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3901 <option>crop=716:380:2:26</option> is OK but
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3902 <option>crop=716:380:3:26 </option> is not.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3903 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3904 </formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3906 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3907 When you are dealing with interlaced YUV 4:2:0, the situation is a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3908 bit more complicated. Instead of every four luma pixels in the
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
3909 <emphasis>frame</emphasis> sharing a chroma pixel, every four luma
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3910 pixels in each <emphasis> field</emphasis> share a chroma
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3911 pixel. When fields are interlaced to form a frame, each scanline is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3912 one pixel high. Now, instead of all four luma pixels being in a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3913 square, there are two pixels side-by-side, and the other two pixels
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3914 are side-by-side two scanlines down. The two luma pixels in the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3915 intermediate scanline are from the other field, and so share a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3916 different chroma pixel with two luma pixels two scanlines away. All
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3917 this confusion makes it necessary to have vertical crop dimensions
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3918 and offsets be multiples of four. Horizontal can stay even.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3919 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3920
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3921 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3922 For telecined video, I recommend that cropping take place after
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3923 inverse telecining. Once the video is progressive you only need to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3924 crop by even numbers. If you really want to gain the slight speedup
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3925 that cropping first may offer, you must crop vertically by multiples
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3926 of four or else the inverse-telecine filter will not have proper data.
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3927 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3928
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3929 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3930 For interlaced (not telecined) video, you must always crop
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3931 vertically by multiples of four unless you use <option>-vf
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3932 field</option> before cropping.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3933 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3934 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3935
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3936 <listitem><formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3937 <title>About encoding parameters and quality:</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3938 <para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3939 Just because I recommend <option>mbd=2</option> here does not mean it
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
3940 should not be used elsewhere. Along with <option>trell</option>,
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3941 <option>mbd=2</option> is one of the two
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3942 <systemitem class="library">libavcodec</systemitem> options that
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3943 increases quality the most, and you should always use at least those
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3944 two unless the drop in encoding speed is prohibitive (e.g. realtime
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3945 encoding). There are many other options to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3946 <systemitem class="library">libavcodec</systemitem> that increase
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3947 encoding quality (and decrease encoding speed) but that is beyond
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3948 the scope of this document.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3949 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3950 </formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3951 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3952
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3953 <listitem><formalpara>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3954 <title>About the performance of pullup:</title>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3955 <para>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3956 It is safe to use <option>pullup</option> (along with <option>softskip
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3957 </option>) on progressive video, and is usually a good idea unless
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3958 the source has been definitively verified to be entirely progressive.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3959 The performace loss is small for most cases. On a bare-minimum encode,
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3960 <option>pullup</option> causes <application>MEncoder</application> to
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3961 be 50% slower. Adding sound processing and advanced <option>lavcopts
14828
37112d48fb50 grammar fix by Corey Hickey <bugfood-ml at fatooh dot org>
diego
parents: 14734
diff changeset
3962 </option> overshadows that difference, bringing the performance
14734
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3963 decrease of using <option>pullup</option> down to 2%.
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3964 </para>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3965 </formalpara>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3966 </listitem>
0b91f9428c4d Update the MEncoder telecine documentation.
diego
parents: 14422
diff changeset
3967
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3968 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3969
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3970 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3971
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3972 </sect1>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
3973
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3974 </chapter>