annotate DOCS/xml/en/mencoder.xml @ 12490:09c30d0d0d55

1000l....of pepsi :(broke -ovc copy!)
author rfelker
date Wed, 19 May 2004 04:38:05 +0000
parents 58056bc98dd9
children 3f543ec01d1e
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 collected from several mailing list threads on mplayer-users. Search the
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">
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
18 <title>Encoding 2-pass MPEG4 (&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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 them yet (you can delete the AVI). In the second pass, the 2-pass output
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>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
34 2-pass encode of a DVD to an MPEG4 (&quot;DivX&quot;) AVI while copying
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>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
46 2-pass encode of a DVD to an MPEG4 (&quot;DivX&quot;) AVI while encoding
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
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
60 files. It's probably useful only with
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
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
63 <application>MPlayer</application> - expect MPEG1 video, and MPEG1 layer 2 (MP2)
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
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
70 cannot encode MPEG1 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>
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
74 To change <application>MEncoder's</application> output file format,
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.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 If it's not specified, <application>MEncoder</application> will use 0: fast
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 bilinear.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 <screen>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
108 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
109 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 <sect1 id="menc-feat-streamcopy">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
115 <title>Stream copying</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
116
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118 <application>MEncoder</application> can handle input streams in two ways:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 them. This section is about <emphasis role="bold">copying</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
121 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
126 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 MPEG1 video into an AVI file! Of course only
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128 <application>MPlayer</application> can play such files :) And it probably
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 has no real life value at all. Rationally: video stream copying can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 useful for example when only the audio stream has to be encoded (like,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 uncompressed PCM to MP3).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
134 <emphasis role="bold">Audio stream</emphasis> (option <option>-oac copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 straightforward. It is possible to take an external audio file (MP3,
10429
diego
parents: 10184
diff changeset
136 WAV) and mux it into the output stream. Use the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 <option>-audiofile <replaceable>filename</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 for this.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 <sect1 id="menc-feat-fix-avi">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 <title>Fixing AVIs with broken index or interleaving</title>
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>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148 Easiest thing. We simply copy the video and audio streams, and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 <application>MEncoder</application> generates the index. Of course this cannot fix possible bugs in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 the video and/or audio streams. It also fixes files with broken interleaving,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 thus the <option>-ni</option> option won't be needed for them anymore.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 Command:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 mencoder -idx <replaceable>input.avi</replaceable> -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
161
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 <sect2 id="menc-feat-appending">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 <title>Appending multiple AVI files</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 <para>
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
166 As a side-effect, the broken AVI fixer function enables <application>MEncoder</application>
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
167 to append 2 (or more) AVI files:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
171 Command:
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
172 <screen>cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o <replaceable>output.avi</replaceable> -</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 <note><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 This expects <filename>1.avi</filename> and <filename>2.avi</filename> to use
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 the same codecs, resolution, stream rate etc, and at least <filename>1.avi</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 must not be broken. You may need to fix your input AVI files first, as described
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 <link linkend="menc-feat-fix-avi">above</link>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 <sect1 id="menc-feat-enc-libavcodec">
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
185 <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
186 codec family</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
189 <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
190 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
191 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
192
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 <informaltable frame="all">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 <tgroup cols="2">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 <thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 <row><entry>Codec name</entry><entry>Description</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 </thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 <tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 <row><entry>mjpeg</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 Motion JPEG
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
202 <row><entry>ljpeg</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
203 Lossless JPEG
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
204 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 <row><entry>h263</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 H263
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208 <row><entry>h263p</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 H263 Plus
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 <row><entry>mpeg4</entry><entry>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
212 ISO standard MPEG4 (DivX 5, XVID compatible)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214 <row><entry>msmpeg4</entry><entry>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
215 pre-standard MPEG4 variant by MS, v3 (aka DivX3)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 <row><entry>msmpeg4v2</entry><entry>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
218 pre-standard MPEG4 by MS, v2 (used in old asf files)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
220 <row><entry>wmv1</entry><entry>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 Windows Media Video, version 1 (aka WMV7)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
223 <row><entry>wmv2</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
224 Windows Media Video, version 2 (aka WMV8)
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
225 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 <row><entry>rv10</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 an old RealVideo codec
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 <row><entry>mpeg1video</entry><entry>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
230 MPEG1 video
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
231 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
232 <row><entry>mpeg2video</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
233 MPEG2 video
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 <row><entry>huffyuv</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 lossless compression
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
238 <row><entry>asv1</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
239 ASUS Video v1
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
240 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
241 <row><entry>asv2</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
242 ASUS Video v2
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
243 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
244 <row><entry>ffv1</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
245 FFmpeg's lossless video codec
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
246 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 </tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 </tgroup>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 </informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 The first column contains the codec names that should be passed after the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 <literal>vcodec</literal> config, like: <option>-lavcopts vcodec=msmpeg4</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 <informalexample>
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 An example, with MJPEG compression:
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10065
diff changeset
258 <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
259 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 <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
265 <title>Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 <application>MEncoder</application> is capable of creating movies from one
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 <title>Explanation of the process:</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 will use <systemitem class="library">libpng</systemitem>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 <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
282 chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.).
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
283 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 <title>Examples</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
289 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
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>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
293 Creating an MPEG4 file from all the JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
295 mencoder mf://*.jpg -mf type=jpg:w=800:h=600:fps=25 -ovc lavc -lavcopts vcodec=mpeg4 -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
296 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
302 Creating an MPEG4 file from some JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
304 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf type=jpg:w=800:h=600:fps=25 -ovc lavc -lavcopts vcodec=mpeg4 -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
305 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308
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 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 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
312 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
314 mencoder mf://*.jpg -mf type=jpg:w=800:h=600:fps=25 -ovc copy -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
315 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
321 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
322 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
323 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
324 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 <note><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 Width must be integer multiple of 4, it's a limitation of the RAW RGB AVI format.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 <informalexample>
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 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
335 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
337 mencoder mf://*.jpg -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
338 --></screen>
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 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 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
345 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
347 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
348 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
349 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351
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 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
355
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 <sect1 id="menc-feat-extractsub">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
358 <title>Extracting DVD subtitles to Vobsub file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 <application>MEncoder</application> is capable of extracting subtitles from
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 10913
diff changeset
362 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
363 <filename>.idx</filename> and <filename>.sub</filename> and are usually
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 packaged in a single <filename>.rar</filename> archive.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
365 <application>MPlayer</application> can play these with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366 <option>-vobsub</option> and <option>-vobsubid</option> options.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
367 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
368
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
369 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
370 You specify the basename (i.e without the <filename>.idx</filename> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371 <filename>.sub</filename> extension) of the output files with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 <option>-vobsubout</option> and the index for this subtitle in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373 resulting files with <option>-vobsuboutindex</option>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
374 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
375
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
376 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
377 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
378 indicate the <filename>.ifo</filename> file needed to construct the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
379 resulting <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
380 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381
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 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
384 <filename>.ifo</filename> file you will need to use the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 <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
386 the <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
388
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
390 Each run will append the running subtitle if the <filename>.idx</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
391 and <filename>.sub</filename> files already exist. So you should remove any
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392 before starting.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
394
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
395 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
396 <title>Copying two subtitles from a DVD while doing 3-pass encoding</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
398 rm subtitles.idx subtitles.sub
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10065
diff changeset
399 mencoder dvd://1 -vobsubout subtitles -vobsuboutindex 0 -sid 2 -o frameno.avi -ovc frameno
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
400 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
401 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
402 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
403 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406 <title>Copying a french subtitle from an MPEG file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
408 rm subtitles.idx subtitles.sub
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
409 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1<!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
410 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
411 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
412
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
413 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
414
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
415 <sect1 id="aspect">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
416 <title>Preserving aspect ratio</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
418 DVDs and SVCDs (i.e. MPEG1/2) files contain an aspect ratio value, which
10065
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
419 describes how the player should scale the video stream, so humans won't
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
420 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
421 (DivX) files, you have be aware that AVI headers don't store this value.
10065
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
422 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
423 way!
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
426 <para>There is</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
427
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
428 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
429 MPEG4 has an unique feature: the video stream can contain its needed aspect
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
430 ratio. Yes, just like MPEG1/2 (DVD, SVCD) and H263 files. Regretfully, there are
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
431 <emphasis role="bold">no</emphasis> video players outside which support this
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
432 attribute of MPEG4, except <application>MPlayer</application>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
433 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
434
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
435 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
436 This feature can be used only with
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
437 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
438 <systemitem>mpeg4</systemitem> codec. Keep in mind: although
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
439 <application>MPlayer</application> will correctly play the created file,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
440 other players will use the wrong aspect ratio.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
441 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
442
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
443 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
444 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
445 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
446 <systemitem>crop</systemitem> filters.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
447 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
448
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
449 <para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
450 Usage
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
451 <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
452 </para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
453 </sect1>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
454
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
455 <sect1 id="custommatrices"><title>Custom inter/intra matrices</title>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
456
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
457 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
458 With this feature of
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
459 <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
460 you are able to set custom inter (I-frames/key frames) and intra
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
461 (P-frames/predicted frames) matrices. It is supported by many of the codecs:
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
462 <systemitem>mpeg1video</systemitem> and <systemitem>mpeg2video</systemitem>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
463 are reported as working.
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>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
467 A typical usage of this feature is to set the matrices preferred by the
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
468 <ulink url="http://www.kvcd.net/">KVCD</ulink> specifications.
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
469 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
470
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
471 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
472 The <emphasis role="bold">KVCD &quot;Notch&quot; Quantization Matrix:</emphasis>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
473 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
474
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
475 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
476 Intra:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
477 <screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
478 8 9 12 22 26 27 29 34
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
479 9 10 14 26 27 29 34 37
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
480 12 14 18 27 29 34 37 38
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
481 22 26 27 31 36 37 38 40
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
482 26 27 29 36 39 38 40 48
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
483 27 29 34 37 38 40 48 58
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
484 29 34 37 38 40 48 58 69
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
485 34 37 38 40 48 58 69 79
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
486 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
487
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
488 Inter:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
489 <screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
490 16 18 20 22 24 26 28 30
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
491 18 20 22 24 26 28 30 32
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
492 20 22 24 26 28 30 32 34
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
493 22 24 26 30 32 32 34 36
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
494 24 26 28 32 34 34 36 38
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
495 26 28 30 32 34 36 38 40
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
496 28 30 32 34 36 38 42 42
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
497 30 32 34 36 38 40 42 44
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
498 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
499 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
500
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
501 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
502 Usage:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
503 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
504 $ 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
505 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
506 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
507
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
508 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
509 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
510 $ mencoder <replaceable>input.avi</replaceable> -ovc lavc -lavcopts
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
511 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
512 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
513 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
514 :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
515 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
516 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
517 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
518 </para>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
519 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
520
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
521 <sect1 id="menc-feat-dvd-mpeg4">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
522 <title>Making a high quality MPEG4 (&quot;DivX&quot;) rip of a DVD movie</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
523
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
524 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
525 Ripping a DVD title into a maximally high quality MPEG4 (DivX) file
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
526 involves many considerations. Below is an example of the process when
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
527 there is no file size goal (other than perhaps fitting the result into 2GB).
11823
diego
parents: 11822
diff changeset
528 <systemitem class="library">libavcodec</systemitem>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
529 will be used for the video,
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
530 and the audio will be copied as is without any changes.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
531 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
532
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
533 <sect2 id="menc-feat-dvd-mpeg4-crop">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
534 <title>Cropping</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
535 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
536 Play the DVD and run the crop detection filter
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
537 (<option>-vf cropdetect</option>) on it. This gives you a crop rectangle
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
538 to use for encoding. The reason for cropping is that many movies are
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
539 not shot in a standard DVD aspect ratio (16/9 or 4/3), or, for whatever
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
540 reason, the picture does not properly fill the frame. So you want to crop
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
541 out the pointless black bars when you rip. It also improves the quality
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
542 of the rip since the sharp edge of the black bars wastes a lot of bits.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
543 A common aspect is 2.35, which is cinescope. Most big blockbuster
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
544 movies have this aspect ratio.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
545 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
546 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
547
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
548 <sect2 id="menc-feat-dvd-mpeg4-quality">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
549 <title>Quality level</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
550 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
551 Next you need to choose the desired quality level. When there is no
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
552 need to fit the resulting file on CDs or the like, using constant
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
553 quantizing AKA constant quality is a good choice. That way each frame
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
554 is given as much bits as its needs to keep the quality at the desired
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
555 level, but multiple encoding passes are not needed. With
11823
diego
parents: 11822
diff changeset
556 <systemitem class="library">libavcodec</systemitem>,
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
557 you get constant quality by using
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
558 <option>-lavcopts vqscale=<replaceable>N</replaceable></option>.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
559 <option>vqscale=3</option> should give you a file below 2GB in size,
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
560 depending mainly on the movie length and video noisiness (the more
11820
62539b5964c8 100l bug fix for a wrong command line by Christian Ohm <chr.ohm@gmx.net>,
diego
parents: 11780
diff changeset
561 noise, the harder it is to compress).
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
562 </para></sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
563
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
564 <sect2 id="menc-feat-dvd-mpeg4-2gb">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
565 <title>Files over 2GB</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
566 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
567 If the file resulting from constant quality encoding is over 2GB big,
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
568 you will have to create an index to be able to view it properly.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
569 Either
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
570
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
571 <itemizedlist>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
572 <listitem><para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
573 play the file with <option>-forceidx</option> to create an index
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
574 on the fly or
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
575 </para></listitem>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
576 <listitem><para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
577 use <option>-saveidx</option> to write an index to a file once and
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
578 <option>-loadidx</option> to use it when playing the file.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
579 </para></listitem>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
580 </itemizedlist>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
581
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
582 If this bothers you, you may want to keep the file size below 2GB.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
583 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
584
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
585 <para>
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
586 There are three ways to avoid this. You can try encoding again using
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
587 <option>vqscale=4</option> and see if both the resulting file size
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
588 and picture quality are acceptable. You can also use
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
589 <link linkend="menc-feat-mpeg4">2 pass encoding</link>.
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
590 As you will be copying the audio track as is and hence know its
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
591 bitrate, and you know the running time of the movie, you can
11820
62539b5964c8 100l bug fix for a wrong command line by Christian Ohm <chr.ohm@gmx.net>,
diego
parents: 11780
diff changeset
592 compute the required video bitrate to give to the
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
593 <option>-lavcopts vbitrate=<replaceable>bitrate</replaceable></option>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
594 option without using
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
595 <link linkend="menc-feat-mpeg4">3 pass encoding</link>.
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
596 </para>
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
597
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
598 <para>
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
599 The third and possibly the best option may be to slightly scale down
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
600 the resolution. The uniform slight softening and loss of detail is
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
601 visually more appealing than the blockiness and other artifacts
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
602 caused by MPEG compression. Scaling down also effectively reduces the
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
603 noise of the picture, which is good, as noise is hard to compress.
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
604 </para></sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
605
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
606 <sect2 id="menc-feat-dvd-mpeg4-deinterlacing">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
607 <title>Deinterlacing</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
608 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
609 If the movie is interlaced, you may want to deinterlace it as part of
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
610 the ripping. It is debatable whether deinterlacing should be done at
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
611 this stage. The benefit is that deinterlacing when converting to
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
612 MPEG4 makes compression better, and viewing easier and less CPU
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
613 intensive on computer monitors as no deinterlacing is required at
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
614 that stage.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
615 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
616
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
617 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
618 If deinterlacing at the ripping stage is a good idea depends on
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
619 the DVD. If the DVD is made from film, which was shot at 24 fps, you
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
620 can as well deinterlace while ripping. If, however, the original was
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
621 50/60 fps video, converting into deinterlaced 23.976/25 fps video
11820
62539b5964c8 100l bug fix for a wrong command line by Christian Ohm <chr.ohm@gmx.net>,
diego
parents: 11780
diff changeset
622 will lose information. If you do decide to deinterlace, you can further
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
623 experiment with different deinterlacing filters. See
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
624 <ulink url="http://www.wieser-web.de/MPlayer/">http://www.wieser-web.de/MPlayer/</ulink>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
625 for examples. A good starting point is <option>-vf pp=fd</option>.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
626 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
627
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
628 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
629 If you are both cropping and deinterlacing, deinterlace
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
630 <emphasis>before</emphasis> cropping. Actually, this is not necessary
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
631 if the crop offset is vertically a multiple of 2 pixels. However with
11820
62539b5964c8 100l bug fix for a wrong command line by Christian Ohm <chr.ohm@gmx.net>,
diego
parents: 11780
diff changeset
632 some other filters, like dering, you should always crop last, so it's a
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
633 good habit to put the crop filter last.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
634 </para></sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
635
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
636 <sect2 id="menc-feat-dvd-mpeg4-telecine">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
637 <title>Inverse telecine</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
638 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
639 If you are ripping a PAL DVD, which is 25 fps, you do not need to
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
640 think about the fps. Just use 25 fps. NTSC DVDs on the other hand are
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
641 29.97 fps (often rounded to 30 fps, but that is not what they are).
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
642 If the movie was shot for TV, you again do not need to touch the fps.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
643 But if the movie was shot on film, and hence at (exactly) 24 fps,
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
644 it has been converted to 29.97 fps when making the DVD. That
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
645 conversion where 12 fields are added to each 24 frames of film is
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
646 called telecine. For more info about telecine, see a
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
647 <ulink url="http://www.google.com/search?q=telecine+field+23.976">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
648 Google search for &quot;telecine field 23.976&quot;</ulink>.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
649 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
650
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
651 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
652 In case you have such a telecined DVD, you will want to do inverse
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
653 telecine, that is convert the movie to 23.976 fps (29.97*4/5).
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
654 Otherwise camera panning will look jerky and awful. You can use
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
655 <option>-ofps 23.976</option> for this. Anything that is shown in
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
656 theatres is shot on film and needs inverse telecine, TV shows do not.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
657 </para></sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
658
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
659 <sect2 id="menc-feat-dvd-mpeg4-scaling">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
660 <title>Scaling and aspect ratio</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
661 <para>
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
662 For best quality, do not scale the movie while ripping. Scaling down
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
663 obviously loses detail, and scaling up causes artifacts and obviously
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
664 makes the file larger. Pixels in DVD movies
11732
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
665 are not square, so DVD movies include info about the correct aspect
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
666 ratio. It is possible to store the aspect ratio in the MPEG4 header
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
667 of the output file. Most video players ignore this info, but
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
668 <application>MPlayer</application> honors it. So if you are only
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
669 going to use <application>MPlayer</application> for viewing the
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
670 ripped file, you do not need to scale the movie, just pass
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
671 <option>-lavcopts autoaspect</option> to
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
672 <application>MEncoder</application> and things will
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
673 automagically work right. If you must scale the movie, be
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
674 careful about getting the size right especially if you do cropping.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
675 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
676 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
677
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
678 <sect2 id="menc-feat-dvd-mpeg4-summary">
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
679 <title>Summing it up</title>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
680 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
681 With all of the above mentioned in mind, a suitable encoding command
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
682 might be
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
683
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
684 <screen>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
685 mencoder dvd://1 -aid 128 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vqscale=3:vhq:v4mv:trell:autoaspect \
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
686 -ofps 23.976 -vf crop=720:364:0:56 -o Harry_Potter_2.avi
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
687 </screen>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
688
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
689 Here <option>dvd://1</option> gives the DVD title to rip. Option
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
690 <option>-aid 128</option> says to use audio track 128, and
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
691 <option>-oac copy</option> to copy it as is. You'll have to use
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
692 <application>MPlayer</application> to find out the right values for
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
693 these options.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
694 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
695
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
696 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
697 Options <option>vhq:v4mv:trell</option> for
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
698 <option>-lavcopts</option> improve quality versus bitrate, but make
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
699 encoding take longer. Especially <option>trell</option> slows
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
700 encoding down but also increases quality visibly. If you want to
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
701 deinterlace, add a <option>pp</option> filter to
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
702 <option>-vf</option>, for example
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
703 <option>-vf pp=fd,crop=720:364:0:56</option> (in that order). If you don't need
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
704 inverse telecine, leave out the <option>-ofps 23.976</option>.
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
705 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
706 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
707
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
708 </sect1>
d5784b575959 DVD ripping section added courtesy of Samuli K«£rkk«£inen with some
diego
parents: 11710
diff changeset
709
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
710 <sect1 id="menc-feat-telecine">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
711 <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
712
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
713 <formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
714 <title>Introduction</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
715 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
716 I suggest you visit this page if you don't understand much of what
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
717 is written in this document:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
718 <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
719 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
720 description of what telecine is.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
721 </para></formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
722
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
723 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
724 For technical reasons pertaining to the limitations of early
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
725 television hardware, all video intended to be displayed on an NTSC
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
726 television set must be 59.94 fields per second. Made-for-TV movies
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
727 and shows are often filmed directly at 59.94 fields per second, but
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
728 the majority of cinema is filmed at 24 or 23.976 frames per
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
729 second. When cinematic movie DVDs are mastered, the video is then
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
730 converted for television using a process called telecine.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
731 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
732
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
733 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
734 On a DVD, the video is never actually stored as 59.94 fields per
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
735 second. For video that was originally 59.94, each pair of fields is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
736 combined to form a frame, resulting in 29.97 frames per
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
737 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
738 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
739 form the first field.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
740 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
741
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
742 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
743 Usually, 23.976 frames per second content stays as it is when
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
744 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
745 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
746 <emphasis>before</emphasis> being stored on the DVD; even though it
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
747 was originally 23.976 frames per second, it becomes 59.94 fields per
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
748 second, and is stored on the disk as 29.97 frames per second.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
749 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
750
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
751 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
752 When looking at individual frames formed from 59.94 fields per
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
753 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
754 wherever there is any motion, because one field (say, the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
755 even-numbered lines) represents a moment in time 1/59.94th of a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
756 second later than the other. Playing interlaced video on a computer
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
757 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
758 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
759 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
760
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
761 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
762 Notes:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
763 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
764 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
765 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
766 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
767 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
768 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
769 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
770 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
771 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
772 pertaining video category. How to make good DVD rips or fine-tune
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
773 <systemitem class="library">libavcodec</systemitem> for maximum
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
774 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
775 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
776 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
777 There are a couple footnotes specific to this guide, linked like this:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
778 <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
779 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
780 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
781
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
782 <sect2 id="menc-feat-telecine-ident">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
783 <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
784
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
785 <sect3 id="menc-feat-telecine-ident-progressive">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
786 <title>Progressive</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
787 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
788 Progressive video was originally filmed at 23.976 fps, and stored
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
789 on the DVD without alteration.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
790 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
791
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
792 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
793 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
794 <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
795 soon as the movie begins to play:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
796
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
797 <screen> demux_mpg: 24fps progressive NTSC content detected, switching framerate.</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
798
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
799 From this point forward, demux_mpg should never say it finds
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
800 &quot;30fps NTSC content.&quot;
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
801 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
802
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
803 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
804 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
805 interlacing. Beware, however, because sometimes there is a tiny bit
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
806 of telecine mixed in, where you wouldn't expect. I've encountered TV
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
807 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
808 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
809 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
810 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
811 entire movie:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
812
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
813 <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
814
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
815 Using <option>-benchmark</option> makes
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
816 <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
817 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
818 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
819 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
820 occurred.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
821 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
822
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
823 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
824 Sometimes progressive video is referred to as &quot;soft-telecine&quot;
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
825 because it is intended to be telecined by the DVD player.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
826 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
827 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
828
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
829 <sect3 id="menc-feat-telecine-ident-telecined">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
830 <title>Telecined</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
831 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
832 Telecined video was originally filmed at 23.976, but was telecined
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
833 <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
834 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
835
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
836 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
837 <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
838 framerate changes when it plays telecined video.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
839 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
840
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
841 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
842 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
843 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
844 You can look closely at this by
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
845 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
846 <listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
847 <screen>mplayer dvd://1 -speed 0.1</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
848 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
849 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
850 Seek to a part with motion.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
851 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
852 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
853 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
854 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
855 video is telecined. If you see some other pattern, then the video
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
856 may have been telecined using some non-standard method and
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
857 <application>MEncoder</application> cannot losslessly convert it
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
858 to progressive. If you don't see any pattern at all, then it is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
859 most likely interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
860 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
861 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
862 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
863
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
864 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
865 Sometimes telecined video is referred to as &quot;hard-telecine&quot;.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
866 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
867 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
868
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
869 <sect3 id="menc-feat-telecine-ident-interlaced">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
870 <title>Interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
871 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
872
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
873 Interlaced video was originally filmed at 59.94 fields per second,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
874 and stored on the DVD as 29.97 frames per second. The interlacing is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
875 a result of combining pairs of fields into frames, because within
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
876 each frame, each field is 1/59.94 seconds apart.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
877 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
878
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
879 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
880 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
881 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
882 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
883
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
884 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
885 When you view an interlaced video closely with <option>-speed 0.1</option>,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
886 you will see that every single frame is interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
887 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
888 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
889
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
890 <sect3 id="menc-feat-telecine-ident-mixedpt">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
891 <title>Mixed progressive and telecine</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
892 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
893 All of a &quot;mixed progressive and telecine&quot; video was originally
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
894 23.976 frames per second, but some parts of it ended up being telecined.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
895 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
896
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
897 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
898 When <application>MPlayer</application> plays this category, it will
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
899 (often repeatedly) switch back and forth between &quot;30fps
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
900 NTSC&quot; and &quot;24fps progressive NTSC&quot;. Watch the bottom of
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
901 <application>MPlayer's</application> output to see these messages.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
902 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
903
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
904 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
905 You should check the &quot;30fps NTSC&quot; sections to make sure
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
906 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
907 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
908 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
909
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
910 <sect3 id="menc-feat-telecine-ident-mixedpi">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
911 <title>Mixed progressive and interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
912 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
913 In &quot;mixed progressive and interlaced&quot; content, progressive
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
914 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
915 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
916
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
917 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
918 This category looks just like &quot;mixed progressive and telecine&quot;,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
919 until you examine the 30fps sections and see that they don't have the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
920 telecine pattern.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
921 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
922 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
923
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
924 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
925
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
926 <sect2 id="menc-feat-telecine-encode">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
927 <title>How to encode each category</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
928 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
929 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
930 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
931 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
932 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
933
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
934 <sect3 id="menc-feat-telecine-encode-progressive">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
935 <title>Progressive</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
936 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
937 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
938 parameter you need to be sure to use is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
939 <option>-ofps 23.976</option>. Otherwise, <application>MEncoder</application>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
940 will try to encode at 29.97 fps and duplicate frames.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
941 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
942
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
943 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
944 <screen>mencoder dvd://1 -nosound -ovc lavc -ofps 23.976</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
945 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
946 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
947
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
948 <sect3 id="menc-feat-telecine-encode-telecined">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
949 <title>Telecined</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
950 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
951 Telecine can be reversed to retrieve the original 23.976 content,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
952 using a process called inverse-telecine.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
953 <application>MPlayer</application> contains two filters to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
954 accomplish this: <option>detc</option> and
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
955 <option>ivtc</option>. You can read the manual page to see their
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
956 differences, but for DVDs I've never had a problem with
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
957 <option>ivtc</option>. Note that you should
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
958 <emphasis role="bold">always</emphasis> inverse-telecine before any
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
959 rescaling; unless you really know what you're doing,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
960 inverse-telecine before cropping, too
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
961 <link linkend="menc-feat-telecine-footnotes">[1]</link>. Again,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
962 <option>-ofps 23.976</option> is needed, too.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
963 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
964
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
965 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
966 <screen>mencoder dvd://1 -nosound -vf ivtc=1 -ovc lavc -ofps 23.976</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
967 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
968 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
969
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
970 <sect3 id="menc-feat-telecine-encode-interlaced">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
971 <title>Interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
972 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
973 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
974 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
975 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
976 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
977 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
978 3).
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
979 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
980
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
981 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
982 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
983
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
984 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
985 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
986 <systemitem class="library">libavcodec</systemitem> has two
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
987 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
988 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
989 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
990 <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
991 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
992 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
993
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
994 <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
995 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
996 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
997 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
998 these filters available to choose from, each with its own advantages
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
999 and disadvantages. Consult <option>mplayer -pphelp</option> to see
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1000 what's available (grep for &quot;deint&quot;), and search the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1001 <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
1002 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
1003 various filters. Again, the framerate is not changing, so no
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1004 <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
1005 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
1006 before scaling.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1007
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1008 <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
1009 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1010 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1011 Unfortunately, this option is buggy with
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1012 <application>MEncoder</application>; it ought to work well with
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1013 <application>MEncoder G2</application>, but that isn't here yet. You
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1014 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
1015 tfields</option> is to create a full frame out of each field, which
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1016 makes the framerate 59.94. The advantage of this approach is that no
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1017 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
1018 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
1019 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
1020 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
1021 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
1022 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
1023 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
1024 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
1025 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
1026 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
1027 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
1028 <option>tfields</option> you
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1029 <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
1030 <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
1031 framerate of your original source.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1032
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1033 <screen>mencoder dvd://1 -nosound -vf tfields=2 -ovc lavc -fps 59.94 -ofps 59.94</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1034 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1035 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1036 If you plan on downscaling dramatically, you can excise and encode
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1037 only one of the two fields. Of course, you'll lose half the vertical
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1038 resolution, but if you plan on downscaling to at most 1/2 of the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1039 original, the loss won't matter much. The result will be a
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1040 progressive 29.97 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
1041 <option>-vf field</option>, then crop
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1042 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1043 appropriately. Remember that you'll have to adjust the scale to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1044 compensate for the vertical resolution being halved.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1045 <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
1046 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1047 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1048 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1049
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1050 <sect3 id="menc-feat-telecine-encode-mixedpt">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1051 <title>Mixed progressive and telecine</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1052 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1053 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
1054 progressive video, the telecined parts have to be
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1055 inverse-telecined. There are two filters that accomplish this
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1056 natively, but a better solution most of the time is to use two
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1057 filters in conjunction (read onward for more detail).
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1058 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1059
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1060 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1061 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1062 Currently the most reliable method to deal with this type of video
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1063 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
1064 the non-telecined parts and then inverse-telecine the whole
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1065 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
1066 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
1067 softpulldown with either <option>detc</option> or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1068 <option>ivtc</option>, the final result will be entirely
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1069 progressive. Cropping and scaling should be done after the
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1070 inverse-telecine operations, and <option> -ofps 23.976</option> is
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1071 needed.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1072
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1073 <screen>mencoder dvd://1 -nosound -vf softpulldown,ivtc=1 -ovc lavc -ofps 23.976</screen>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1074 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1075 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1076 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1077 <option>-vf pullup</option> is designed to inverse-telecine
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1078 telecined material while leaving progressive data alone. Pullup
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1079 doesn't really work well with the current
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1080 <application>MEncoder</application>, though, and is really intended
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1081 for use with <application>MEncoder G2</application> (whenever it's
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1082 ready). It works fine without <option>-ofps</option>, but
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1083 <option>-ofps</option> is needed to prevent choppy output. With
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1084 <option>-ofps</option>, it sometimes fails. The problems arise from
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1085 <application>MEncoder's</application> behavior of dropping frames to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1086 maintain synchronization between the audio and video: it drops
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1087 frames before sending them through the filter chain, rather than
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1088 after. As a result, <option>pullup</option> is sometimes deprived
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1089 of the data it needs.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1090 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1091
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1092 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1093 If <application>MEncoder</application> drops too many frames in a
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1094 row, it starves <option>pullup</option>'s buffers and causes it to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1095 crash.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1096 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1097
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1098 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1099 Even if <application>MEncoder</application> only drops one frame,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1100 <option> pullup</option> still doesn't get to see it, and will end
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1101 up operating on an incorrect sequence of frames. Even though this
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1102 doesn't cause a crash, <option> pullup</option> won't be able to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1103 make correct decisions on how to reassemble progressive frames, and
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1104 will either match fields together incorrectly or drop several fields
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1105 to compensate.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1106 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1107 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1108
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1109 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1110 I haven't used <option>-vf filmdint</option> myself, but here's what
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1111 D Richard Felker III has to say:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1112
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1113 <blockquote><para>It's OK, but IMO it tries to deinterlace rather
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1114 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
1115 players &amp; progressive TVs) which gives ugly flickering and
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1116 other artefacts. If you're going to use it, you at least need to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1117 spend some time tuning the options and watching the output first
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1118 to make sure it's not messing up.</para></blockquote>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1119 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1120 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1121 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1122
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1123 <sect3 id="menc-feat-telecine-encode-mixedpi">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1124 <title>Mixed progressive and interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1125 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1126 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
1127 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
1128 duration/location of each type.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1129 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1130
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1131 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1132 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1133 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
1134 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
1135 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
1136 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
1137 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1138
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1139 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1140 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
1141 display the video on an interlaced device (with a TV card, for
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1142 example). If you have interlaced frames in a 23.976 frames per
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1143 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
1144 frames. Half of the interlaced "frames" will be displayed for three
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1145 fields' duration (3/59.94 seconds), resulting in a flicking
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1146 &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
1147 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
1148 deinterlacing filter like <option>lb</option> or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1149 <option>l5</option>.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1150 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1151
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1152 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1153 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
1154 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
1155 that can be more visible than with the second method, which shows
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1156 some progressive frames twice. 29.97 frames per second interlaced
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1157 video is already a bit choppy because it really should be shown at
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1158 59.94 fields per second, so the duplicate frames don't stand out as
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1159 much.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1160 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1161
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1162 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1163 Either way, it's best to consider your content and how you intend to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1164 display it. If your video is 90% progressive and you never intend to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1165 show it on a TV, you should favor a progressive approach. If it's
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1166 only half progressive, you probably want to encode it as if it's all
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1167 interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1168 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1169 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1170
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1171 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1172 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
1173 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
1174 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
1175 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1176
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1177 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1178 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1179
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1180 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1181
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1182 <sect2 id="menc-feat-telecine-footnotes">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1183 <title>Footnotes</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1184 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1185 <listitem><formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1186 <title>About cropping:</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1187 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1188 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
1189 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
1190 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
1191 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
1192 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
1193 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
1194 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
1195 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
1196 <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
1197 <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
1198 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1199 </formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1200
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1201 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1202 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
1203 bit more complicated. Instead of every four luma pixels in the
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1204 <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
1205 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
1206 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
1207 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
1208 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
1209 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
1210 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
1211 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
1212 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
1213 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
1214 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1215
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1216 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1217 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
1218 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
1219 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
1220 that cropping first may offer, you must crop vertically by multiples
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1221 of four or else the inverse-telecine filter won't have proper data.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1222 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1223
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1224 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1225 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
1226 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
1227 field</option> before cropping.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1228 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1229 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1230
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1231 <listitem><formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1232 <title>About encoding parameters and quality:</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1233 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1234 Just because I recommend <option>mbd=2</option> here doesn't mean it
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1235 shouldn't be used elsewhere. Along with <option>trell</option>,
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1236 <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
1237 <systemitem class="library">libavcodec</systemitem> options that
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1238 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
1239 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
1240 encoding). There are many other options to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1241 <systemitem class="library">libavcodec</systemitem> that increase
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1242 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
1243 the scope of this document.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1244 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1245 </formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1246 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1247
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1248 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1249
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1250 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1251
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1252 </sect1>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1253
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1254 </chapter>