annotate DOCS/xml/en/mencoder.xml @ 12400:903ac68f2bc8

divx --> lavc, spelling, more sensible section name
author diego
date Mon, 03 May 2004 01:15:15 +0000
parents 9403b245fcda
children 58056bc98dd9
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">
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
18 <title>Encoding 2 or 3-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 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 <title>2-pass encoding</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 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
24 The first encoding (dubbed pass) creates some temporary files
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 (<filename>*.log</filename>) with a size of few megabytes, do not delete
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 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
27 file is created, using the bitrate data from the temporary files. The
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 resulting file will have much better image quality. If this is the first
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 time you heard about this, you should consult some guides available on the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 Net.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 <para>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
35 This example shows how to encode a DVD to a 2-pass MPEG4 (&quot;DivX&quot;) AVI.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 Just two commands are needed:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
37 <screen>rm frameno.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
38 remove this file, which can come from a previous 3-pass encoding (it interferes
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
39 with current one)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
41 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
42 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
43 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
44 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 <title>3-pass encoding</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 This is an extension of 2-pass encoding, where the audio encoding takes
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50 place in a separate pass. This method enables estimation of recommended
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 video bitrate in order to fit on a CD. Also, the audio is encoded only
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 once, unlike in 2-pass mode. The schematics:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 <procedure>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 <step><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 Remove conflicting temporary file:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 <screen>rm frameno.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 </para></step>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
61 <step><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 <emphasis>First pass:</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
63
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 <screen>mencoder <replaceable>file/DVD</replaceable> -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi</screen>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
65
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 An audio-only avi file will be created, containing
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 <emphasis role="bold">only</emphasis> the requested audio stream. Don't forget
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
68 <option>-lameopts</option>, if you need to set it. If you were encoding a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 long movie, <application>MEncoder</application> prints the recommended
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 bitrate values for 650Mb, 700Mb, and 800Mb destination sizes, after this
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 pass finishes.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 </para></step>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 <step><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 <emphasis>Second pass:</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 mencoder <replaceable>file/DVD</replaceable> -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=<replaceable>bitrate</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 This is the first pass of video encoding. Optionally specify the video
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
79 bitrate <application>MEncoder</application> printed at the end of the previous pass.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 </para></step>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81 <step><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 <emphasis>Third pass:</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 <screen>
11820
62539b5964c8 100l bug fix for a wrong command line by Christian Ohm <chr.ohm@gmx.net>,
diego
parents: 11780
diff changeset
84 mencoder <replaceable>file/DVD</replaceable> -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=<replaceable>bitrate</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 This is the second pass of video encoding. Specify the same bitrate
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 as in the previous pass unless you really know what you are doing.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 In this pass, audio from <filename>frameno.avi</filename> will be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89 inserted into the destination file...and it's all ready!
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 </para></step>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 </procedure>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 <title>Example of 3-pass encoding</title>
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 <screen>rm frameno.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
97 remove this file, which can come from a previous 3-pass encoding
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 (it interferes with current one)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
99 <screen>
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10065
diff changeset
100 mencoder dvd://2 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
101 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
102 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
103 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108 <sect1 id="menc-feat-mpeg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 <title>Encoding to MPEG format</title>
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 <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
112 files. It's probably useful only with
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
113 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
114 <emphasis>mpeg1video</emphasis> codec, because players - except
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
115 <application>MPlayer</application> - expect MPEG1 video, and MPEG1 layer 2 (MP2)
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
116 audio streams in MPEG files.
9675
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 <para>
11680
f2f7c22847b3 added capital letter at the beginning of the sentence
paszczi
parents: 11540
diff changeset
120 This feature is not very useful right now, aside that it probably has many bugs,
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
121 but the more importantly because <application>MEncoder</application> currently
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
122 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
123 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 <para>
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
126 To change <application>MEncoder's</application> output file format,
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
127 use the <option>-of mpeg</option> option.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
133 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
134 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 <sect1 id="menc-feat-rescale">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 <title>Rescaling movies</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 Often the need to resize movie images' size emerges. Its reasons can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 many: decreasing file size, network bandwidth,etc. Most people even do
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 rescaling when converting DVDs or SVCDs to DivX AVI. This is <emphasis role="bold">bad</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146 Instead of even you doing so, read the <link linkend="aspect">Preserving aspect ratio</link>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 section.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 The scaling process is handled by the <literal>scale</literal> video filter:
9677
142c42fa0986 sync with HTML
nicolas
parents: 9675
diff changeset
152 <option>-vf scale=<replaceable>width</replaceable>:<replaceable>height</replaceable></option>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 Its quality can be set with the <option>-sws</option> option.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 If it's not specified, <application>MEncoder</application> will use 0: fast
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 bilinear.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 <screen>
9677
142c42fa0986 sync with HTML
nicolas
parents: 9675
diff changeset
161 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
162 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167 <sect1 id="menc-feat-streamcopy">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 <title>Stream copying</title>
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 <application>MEncoder</application> can handle input streams in two ways:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 them. This section is about <emphasis role="bold">copying</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 MPEG1 video into an AVI file! Of course only
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 <application>MPlayer</application> can play such files :) And it probably
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 has no real life value at all. Rationally: video stream copying can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183 useful for example when only the audio stream has to be encoded (like,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 uncompressed PCM to MP3).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 <emphasis role="bold">Audio stream</emphasis> (option <option>-oac copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 straightforward. It is possible to take an external audio file (MP3,
10429
diego
parents: 10184
diff changeset
189 WAV) and mux it into the output stream. Use the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
190 <option>-audiofile <replaceable>filename</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
191 for this.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 <sect1 id="menc-feat-fix-avi">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 <title>Fixing AVIs with broken index or interleaving</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 Easiest thing. We simply copy the video and audio streams, and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 <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
203 the video and/or audio streams. It also fixes files with broken interleaving,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 thus the <option>-ni</option> option won't be needed for them anymore.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208 Command:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 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
211 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 <sect2 id="menc-feat-appending">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 <title>Appending multiple AVI files</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 <para>
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
219 As a side-effect, the broken AVI fixer function enables <application>MEncoder</application>
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
220 to append 2 (or more) AVI files:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224 Command:
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
225 <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
226 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 <note><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 This expects <filename>1.avi</filename> and <filename>2.avi</filename> to use
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 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
231 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
232 <link linkend="menc-feat-fix-avi">above</link>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 <sect1 id="menc-feat-enc-libavcodec">
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
238 <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
239 codec family</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
241 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
242 <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
243 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
244 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
245
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 <informaltable frame="all">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 <tgroup cols="2">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 <thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 <row><entry>Codec name</entry><entry>Description</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 </thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 <tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 <row><entry>mjpeg</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 Motion JPEG
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
255 <row><entry>ljpeg</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
256 Lossless JPEG
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
257 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 <row><entry>h263</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 H263
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 <row><entry>h263p</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 H263 Plus
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 <row><entry>mpeg4</entry><entry>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
265 ISO standard MPEG4 (DivX 5, XVID compatible)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 <row><entry>msmpeg4</entry><entry>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
268 pre-standard MPEG4 variant by MS, v3 (aka DivX3)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 <row><entry>msmpeg4v2</entry><entry>
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
271 pre-standard MPEG4 by MS, v2 (used in old asf files)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
273 <row><entry>wmv1</entry><entry>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 Windows Media Video, version 1 (aka WMV7)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
276 <row><entry>wmv2</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
277 Windows Media Video, version 2 (aka WMV8)
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
278 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 <row><entry>rv10</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 an old RealVideo codec
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
282 <row><entry>mpeg1video</entry><entry>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
283 MPEG1 video
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
284 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
285 <row><entry>mpeg2video</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
286 MPEG2 video
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 <row><entry>huffyuv</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 lossless compression
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 </entry></row>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
291 <row><entry>asv1</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
292 ASUS Video v1
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
293 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
294 <row><entry>asv2</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
295 ASUS Video v2
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
296 </entry></row>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
297 <row><entry>ffv1</entry><entry>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
298 FFmpeg's lossless video codec
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
299 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 </tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 </tgroup>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 </informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304 The first column contains the codec names that should be passed after the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 <literal>vcodec</literal> config, like: <option>-lavcopts vcodec=msmpeg4</option>
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 An example, with MJPEG compression:
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10065
diff changeset
311 <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
312 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
314 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
315
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317 <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
318 <title>Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321 <application>MEncoder</application> is capable of creating movies from one
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 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
323 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 <title>Explanation of the process:</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 will use <systemitem class="library">libpng</systemitem>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 <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
335 chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.).
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340 <title>Examples</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
342 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
343
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
346 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
347 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
348 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
349 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
355 Creating an MPEG4 file from some JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
357 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
358 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
362 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 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
365 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
367 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
368 </screen>
9675
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 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
374 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
375 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
376 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
377 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
379 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
380
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381 <note><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 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
383 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
384
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387 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
388 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
390 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
391 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
394
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
395 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
396 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397 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
398 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
400 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
401 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
402 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
403 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
408
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
409
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
410 <sect1 id="menc-feat-extractsub">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
411 <title>Extracting DVD subtitles to Vobsub file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
412
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
413 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
414 <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
415 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
416 <filename>.idx</filename> and <filename>.sub</filename> and are usually
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 packaged in a single <filename>.rar</filename> archive.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
418 <application>MPlayer</application> can play these with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
419 <option>-vobsub</option> and <option>-vobsubid</option> options.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
420 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
421
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
422 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
423 You specify the basename (i.e without the <filename>.idx</filename> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 <filename>.sub</filename> extension) of the output files with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425 <option>-vobsubout</option> and the index for this subtitle in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
426 resulting files with <option>-vobsuboutindex</option>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
427 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
428
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
429 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
430 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
431 indicate the <filename>.ifo</filename> file needed to construct the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
432 resulting <filename>.idx</filename> file.
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>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
436 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
437 <filename>.ifo</filename> file you will need to use the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
438 <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
439 the <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
440 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
441
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
442 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
443 Each run will append the running subtitle if the <filename>.idx</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
444 and <filename>.sub</filename> files already exist. So you should remove any
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
445 before starting.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
446 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
447
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
448 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
449 <title>Copying two subtitles from a DVD while doing 3-pass encoding</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
450 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
451 rm subtitles.idx subtitles.sub
10184
b6c63ab184a4 Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents: 10065
diff changeset
452 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
453 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
454 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
455 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
456 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
457
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
458 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
459 <title>Copying a french subtitle from an MPEG file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
460 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
461 rm subtitles.idx subtitles.sub
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
462 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
463 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
464 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
465
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
466 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
467
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
468 <sect1 id="aspect">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
469 <title>Preserving aspect ratio</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
470 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
471 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
472 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
473 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
474 (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
475 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
476 way!
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
477 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
478
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
479 <para>There is</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
480
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
481 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
482 MPEG4 has an unique feature: the video stream can contain its needed aspect
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
483 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
484 <emphasis role="bold">no</emphasis> video players outside which support this
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
485 attribute of MPEG4, except <application>MPlayer</application>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
486 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
487
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
488 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
489 This feature can be used only with
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
490 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
491 <systemitem>mpeg4</systemitem> codec. Keep in mind: although
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
492 <application>MPlayer</application> will correctly play the created file,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
493 other players will use the wrong aspect ratio.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
494 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
495
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
496 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
497 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
498 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
499 <systemitem>crop</systemitem> filters.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
500 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
501
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
502 <para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
503 Usage
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
504 <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
505 </para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
506 </sect1>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
507
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
508 <sect1 id="custommatrices"><title>Custom inter/intra matrices</title>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
509
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
510 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
511 With this feature of
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
512 <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
513 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
514 (P-frames/predicted frames) matrices. It is supported by many of the codecs:
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
515 <systemitem>mpeg1video</systemitem> and <systemitem>mpeg2video</systemitem>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
516 are reported as working.
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
517 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
518
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
519 <para>
11732
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
520 A typical usage of this feature is to set the matrices preferred by the
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
521 <ulink url="http://www.kvcd.net/">KVCD</ulink> specifications.
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
522 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
523
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
524 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
525 The <emphasis role="bold">KVCD &quot;Notch&quot; Quantization Matrix:</emphasis>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
526 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
527
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
528 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
529 Intra:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
530 <screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
531 8 9 12 22 26 27 29 34
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
532 9 10 14 26 27 29 34 37
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
533 12 14 18 27 29 34 37 38
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
534 22 26 27 31 36 37 38 40
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
535 26 27 29 36 39 38 40 48
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
536 27 29 34 37 38 40 48 58
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
537 29 34 37 38 40 48 58 69
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
538 34 37 38 40 48 58 69 79
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
539 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
540
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
541 Inter:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
542 <screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
543 16 18 20 22 24 26 28 30
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
544 18 20 22 24 26 28 30 32
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
545 20 22 24 26 28 30 32 34
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
546 22 24 26 30 32 32 34 36
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
547 24 26 28 32 34 34 36 38
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
548 26 28 30 32 34 36 38 40
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
549 28 30 32 34 36 38 42 42
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
550 30 32 34 36 38 40 42 44
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
551 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
552 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
553
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
554 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
555 Usage:
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
556 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
557 $ 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
558 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
559 </para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
560
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
561 <para>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
562 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
563 $ mencoder <replaceable>input.avi</replaceable> -ovc lavc -lavcopts
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
564 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
565 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
566 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
567 :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
568 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
569 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
570 </screen>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
571 </para>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
572 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
573
11732
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
574 <sect1 id="menc-feat-dvd-mpeg4">
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
575 <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
576
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
577 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
578 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
579 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
580 there is no file size goal (other than perhaps fitting the result into 2GB).
11823
diego
parents: 11822
diff changeset
581 <systemitem class="library">libavcodec</systemitem>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
582 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
583 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
584 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
585
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
586 <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
587 <title>Cropping</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
588 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
589 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
590 (<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
591 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
592 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
593 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
594 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
595 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
596 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
597 movies have this aspect ratio.
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
598 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
599 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
600
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
601 <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
602 <title>Quality level</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
603 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
604 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
605 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
606 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
607 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
608 level, but multiple encoding passes are not needed. With
11823
diego
parents: 11822
diff changeset
609 <systemitem class="library">libavcodec</systemitem>,
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
610 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
611 <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
612 <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
613 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
614 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
615 </para></sect2>
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 <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
618 <title>Files over 2GB</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
619 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
620 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
621 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
622 Either
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
623
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
624 <itemizedlist>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
625 <listitem><para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
626 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
627 on the fly or
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
628 </para></listitem>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
629 <listitem><para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
630 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
631 <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
632 </para></listitem>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
633 </itemizedlist>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
634
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
635 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
636 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
637
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
638 <para>
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
639 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
640 <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
641 and picture quality are acceptable. You can also use
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
642 <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
643 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
644 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
645 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
646 <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
647 option without using
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
648 <link linkend="menc-feat-mpeg4">3 pass encoding</link>.
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
649 </para>
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
650
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
651 <para>
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
652 The third and possibly the best option may be to slightly scale down
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
653 the resolution. The uniform slight softening and loss of detail is
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
654 visually more appealing than the blockiness and other artifacts
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
655 caused by MPEG compression. Scaling down also effectively reduces the
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
656 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
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-deinterlacing">
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
660 <title>Deinterlacing</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
661 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
662 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
663 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
664 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
665 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
666 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
667 that stage.
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
668 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
669
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
670 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
671 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
672 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
673 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
674 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
675 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
676 experiment with different deinterlacing filters. See
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
677 <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
678 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
679 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
680
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
681 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
682 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
683 <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
684 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
685 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
686 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
687 </para></sect2>
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 <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
690 <title>Inverse telecine</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
691 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
692 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
693 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
694 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
695 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
696 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
697 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
698 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
699 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
700 <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
701 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
702 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
703
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
704 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
705 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
706 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
707 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
708 <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
709 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
710 </para></sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
711
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
712 <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
713 <title>Scaling and aspect ratio</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
714 <para>
11780
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
715 For best quality, do not scale the movie while ripping. Scaling down
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
716 obviously loses detail, and scaling up causes artifacts and obviously
8e7098f960f8 some little clarifications and additions
diego
parents: 11747
diff changeset
717 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
718 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
719 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
720 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
721 <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
722 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
723 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
724 <option>-lavcopts autoaspect</option> to
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
725 <application>MEncoder</application> and things will
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
726 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
727 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
728 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
729 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
730
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
731 <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
732 <title>Summing it up</title>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
733 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
734 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
735 might be
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
736
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
737 <screen>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
738 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
739 -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
740 </screen>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
741
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
742 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
743 <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
744 <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
745 <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
746 these options.
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
747 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
748
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
749 <para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
750 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
751 <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
752 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
753 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
754 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
755 <option>-vf</option>, for example
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
756 <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
757 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
758 </para>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
759 </sect2>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
760
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
761 </sect1>
d5784b575959 DVD ripping section added courtesy of Samuli K¸«£rkk¸«£inen with some
diego
parents: 11710
diff changeset
762
11905
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
763 <sect1 id="menc-feat-telecine">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
764 <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
765
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
766 <formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
767 <title>Introduction</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
768 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
769 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
770 is written in this document:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
771 <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
772 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
773 description of what telecine is.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
774 </para></formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
775
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
776 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
777 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
778 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
779 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
780 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
781 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
782 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
783 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
784 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
785
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
786 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
787 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
788 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
789 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
790 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
791 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
792 form the first field.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
793 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
794
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
795 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
796 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
797 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
798 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
799 <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
800 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
801 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
802 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
803
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
804 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
805 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
806 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
807 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
808 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
809 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
810 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
811 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
812 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
813
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
814 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
815 Notes:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
816 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
817 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
818 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
819 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
820 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
821 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
822 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
823 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
824 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
825 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
826 <systemitem class="library">libavcodec</systemitem> for maximum
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
827 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
828 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
829 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
830 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
831 <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
832 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
833 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
834
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
835 <sect2 id="menc-feat-telecine-ident">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
836 <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
837
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
838 <sect3 id="menc-feat-telecine-ident-progressive">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
839 <title>Progressive</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
840 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
841 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
842 on the DVD without alteration.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
843 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
844
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
845 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
846 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
847 <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
848 soon as the movie begins to play:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
849
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
850 <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
851
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
852 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
853 &quot;30fps NTSC content.&quot;
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
854 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
855
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
856 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
857 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
858 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
859 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
860 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
861 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
862 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
863 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
864 entire movie:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
865
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
866 <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
867
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
868 Using <option>-benchmark</option> makes
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
869 <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
870 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
871 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
872 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
873 occurred.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
874 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
875
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
876 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
877 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
878 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
879 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
880 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
881
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
882 <sect3 id="menc-feat-telecine-ident-telecined">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
883 <title>Telecined</title>
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 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
886 <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
887 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
888
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
889 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
890 <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
891 framerate changes when it plays telecined video.
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
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
894 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
895 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
896 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
897 You can look closely at this by
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
898 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
899 <listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
900 <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
901 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
902 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
903 Seek to a part with motion.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
904 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
905 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
906 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
907 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
908 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
909 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
910 <application>MEncoder</application> cannot losslessly convert it
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
911 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
912 most likely interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
913 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
914 </orderedlist>
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 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
919 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
920 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
921
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
922 <sect3 id="menc-feat-telecine-ident-interlaced">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
923 <title>Interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
924 <para>
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 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
927 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
928 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
929 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
930 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
931
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 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
934 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
935 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
936
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
937 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
938 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
939 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
940 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
941 </sect3>
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 <sect3 id="menc-feat-telecine-ident-mixedpt">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
944 <title>Mixed progressive and telecine</title>
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 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
947 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
948 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
949
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 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
952 (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
953 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
954 <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
955 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
956
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
957 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
958 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
959 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
960 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
961 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
962
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
963 <sect3 id="menc-feat-telecine-ident-mixedpi">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
964 <title>Mixed progressive and interlaced</title>
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 In &quot;mixed progressive and interlaced&quot; content, progressive
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
967 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
968 </para>
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 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
971 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
972 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
973 telecine pattern.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
974 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
975 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
976
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
977 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
978
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
979 <sect2 id="menc-feat-telecine-encode">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
980 <title>How to encode each category</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
981 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
982 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
983 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
984 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
985 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
986
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
987 <sect3 id="menc-feat-telecine-encode-progressive">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
988 <title>Progressive</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
989 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
990 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
991 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
992 <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
993 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
994 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
995
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
996 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
997 <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
998 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
999 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1000
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1001 <sect3 id="menc-feat-telecine-encode-telecined">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1002 <title>Telecined</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1003 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1004 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
1005 using a process called inverse-telecine.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1006 <application>MPlayer</application> contains two filters to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1007 accomplish this: <option>detc</option> and
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1008 <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
1009 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
1010 <option>ivtc</option>. Note that you should
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1011 <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
1012 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
1013 inverse-telecine before cropping, too
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1014 <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
1015 <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
1016 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1017
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1018 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1019 <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
1020 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1021 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1022
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1023 <sect3 id="menc-feat-telecine-encode-interlaced">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1024 <title>Interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1025 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1026 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
1027 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
1028 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
1029 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
1030 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
1031 3).
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1032 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1033
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1034 <orderedlist>
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
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1037 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
1038 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
1039 <systemitem class="library">libavcodec</systemitem> has two
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1040 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
1041 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
1042 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
1043 <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
1044 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
1045 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
1046
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1047 <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
1048 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1049 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1050 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
1051 these filters available to choose from, each with its own advantages
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1052 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
1053 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
1054 <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
1055 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
1056 various filters. Again, the framerate is not changing, so no
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1057 <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
1058 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
1059 before scaling.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1060
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1061 <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
1062 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1063 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1064 Unfortunately, this option is buggy with
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1065 <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
1066 <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
1067 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
1068 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
1069 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
1070 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
1071 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
1072 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
1073 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
1074 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
1075 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
1076 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
1077 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
1078 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
1079 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
1080 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
1081 <option>tfields</option> you
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1082 <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
1083 <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
1084 framerate of your original source.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1085
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1086 <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
1087 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1088 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1089 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
1090 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
1091 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
1092 original, the loss won't matter much. The result will be a
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1093 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
1094 <option>-vf field</option>, then crop
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1095 <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
1096 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
1097 compensate for the vertical resolution being halved.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1098 <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
1099 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1100 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1101 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1102
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1103 <sect3 id="menc-feat-telecine-encode-mixedpt">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1104 <title>Mixed progressive and telecine</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1105 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1106 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
1107 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
1108 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
1109 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
1110 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
1111 </para>
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 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1114 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1115 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
1116 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
1117 the non-telecined parts and then inverse-telecine the whole
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1118 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
1119 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
1120 softpulldown with either <option>detc</option> or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1121 <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
1122 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
1123 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
1124 needed.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1125
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1126 <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
1127 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1128 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1129 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1130 <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
1131 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
1132 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
1133 <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
1134 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
1135 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
1136 <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
1137 <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
1138 <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
1139 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
1140 frames before sending them through the filter chain, rather than
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1141 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
1142 of the data it needs.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1143 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1144
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1145 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1146 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
1147 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
1148 crash.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1149 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1150
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1151 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1152 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
1153 <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
1154 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
1155 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
1156 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
1157 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
1158 to compensate.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1159 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1160 </listitem>
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 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1163 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
1164 D Richard Felker III has to say:
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1165
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1166 <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
1167 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
1168 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
1169 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
1170 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
1171 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
1172 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1173 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1174 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1175
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1176 <sect3 id="menc-feat-telecine-encode-mixedpi">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1177 <title>Mixed progressive and interlaced</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1178 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1179 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
1180 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
1181 duration/location of each type.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1182 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1183
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1184 <itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1185 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1186 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
1187 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
1188 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
1189 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
1190 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1191
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1192 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1193 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
1194 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
1195 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
1196 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
1197 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
1198 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
1199 &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
1200 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
1201 deinterlacing filter like <option>lb</option> or
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1202 <option>l5</option>.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1203 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1204
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1205 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1206 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
1207 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
1208 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
1209 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
1210 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
1211 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
1212 much.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1213 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1214
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1215 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1216 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
1217 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
1218 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
1219 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
1220 interlaced.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1221 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1222 </listitem>
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 <listitem><para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1225 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
1226 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
1227 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
1228 </para></listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1229
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1230 </itemizedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1231 </sect3>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1232
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1233 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1234
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1235 <sect2 id="menc-feat-telecine-footnotes">
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1236 <title>Footnotes</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1237 <orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1238 <listitem><formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1239 <title>About cropping:</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1240 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1241 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
1242 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
1243 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
1244 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
1245 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
1246 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
1247 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
1248 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
1249 <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
1250 <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
1251 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1252 </formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1253
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1254 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1255 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
1256 bit more complicated. Instead of every four luma pixels in the
11913
60a38618e6e4 duplicate words and spaces removed
nicolas
parents: 11905
diff changeset
1257 <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
1258 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
1259 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
1260 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
1261 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
1262 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
1263 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
1264 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
1265 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
1266 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
1267 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1268
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1269 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1270 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
1271 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
1272 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
1273 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
1274 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
1275 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1276
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1277 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1278 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
1279 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
1280 field</option> before cropping.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1281 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1282 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1283
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1284 <listitem><formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1285 <title>About encoding parameters and quality:</title>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1286 <para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1287 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
1288 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
1289 <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
1290 <systemitem class="library">libavcodec</systemitem> options that
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1291 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
1292 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
1293 encoding). There are many other options to
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1294 <systemitem class="library">libavcodec</systemitem> that increase
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1295 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
1296 the scope of this document.
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1297 </para>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1298 </formalpara>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1299 </listitem>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1300
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1301 </orderedlist>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1302
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1303 </sect2>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1304
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1305 </sect1>
e1730b82a762 Telecine HOWTO by Corey Hickey <bugfood-ml@fatooh.org>, some modifications
diego
parents: 11823
diff changeset
1306
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1307 </chapter>