comparison DOCS/encoding.html @ 4177:cab4ac1467e4

many small updates
author gabucino
date Tue, 15 Jan 2002 17:04:01 +0000
parents 47fa35212fd1
children 970a09005860
comparison
equal deleted inserted replaced
4176:116abdd0aed1 4177:cab4ac1467e4
21 <UL> 21 <UL>
22 <LI><B>OPTIONAL</B> - read <B>MPlayer</B>'s compilation instructions, it contains info about 22 <LI><B>OPTIONAL</B> - read <B>MPlayer</B>'s compilation instructions, it contains info about
23 how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI> 23 how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI>
24 <LI><B>OPTIONAL</B> - download the newest <B>DivX4linux</B> libs 24 <LI><B>OPTIONAL</B> - download the newest <B>DivX4linux</B> libs
25 from <A HREF="http://avifile.sourceforge.net/download.htm">avifile.sourceforge.net</A>, 25 from <A HREF="http://avifile.sourceforge.net/download.htm">avifile.sourceforge.net</A>,
26 and have them PROPERLY installed. This is needed for DivX4 (1/2 pass) 26 and have them PROPERLY installed. You need them if you want DivX4
27 encoding. And since this is mandatory (now), MEncoder is Linux-only.</LI> 27 (1/2 pass) encoding.</LI>
28 <LI><B>OPTIONAL</B> - for libavcodec support, install libavcodec as 28 <LI><B>OPTIONAL</B> - for libavcodec support, install libavcodec as
29 described in the <A HREF="codecs.html#2.2.1.2">libavcodec section</A>.</LI> 29 described in the <A HREF="codecs.html#2.2.1.2">libavcodec section</A>.</LI>
30 <LI><B>OPTIONAL</B> - download and compile <B>libmp3lame</B> (from lame 3.89beta or lame CVS).<BR> 30 <LI><B>OPTIONAL</B> - download and compile <B>libmp3lame</B> (from lame 3.89beta or lame CVS).<BR>
31 <B>WARNING : DO NOT COMPILE LAME WITH <U>GCC 2.96</U> ! It won't 31 <B>WARNING : DO NOT COMPILE LAME WITH <U>GCC 2.96</U> ! It won't
32 work properly !</B><BR> 32 work properly !</B><BR>
37 quality by running <CODE>make test</CODE> after lame's compiling process 37 quality by running <CODE>make test</CODE> after lame's compiling process
38 is over. The resulting number should be less than <B>30</B>. Don't 38 is over. The resulting number should be less than <B>30</B>. Don't
39 panic if it's <B>400</B> or so, you shouldn't heard any audible 39 panic if it's <B>400</B> or so, you shouldn't heard any audible
40 quality decrease. Oh, and if your compiler doesn't even run <CODE>make test</CODE> ... 40 quality decrease. Oh, and if your compiler doesn't even run <CODE>make test</CODE> ...
41 Well, delete that <B>GCC 2.96</B>.</LI> 41 Well, delete that <B>GCC 2.96</B>.</LI>
42 <LI>use <CODE>./configure</CODE> with optional parameters as usual
43 (use <CODE>--enable-tv</CODE> to include V4L tuner grabbing code), and
44 type : <CODE>make mencoder</CODE> , then <CODE>make install</CODE>.</LI>
45 </UL> 42 </UL>
46 </P> 43 </P>
47 44
48 <P>You are ready. As you probably know, other encoding tools need the 45 <P>You are ready. As you probably know, other encoding tools need the
49 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> 46 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P>
51 <P><B><A NAME=2.4.3>2.4.3. MEncoder features</B></P> 48 <P><B><A NAME=2.4.3>2.4.3. MEncoder features</B></P>
52 49
53 <P> 50 <P>
54 <UL> 51 <UL>
55 <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B></LI> 52 <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B></LI>
56 <LI>encoding from <B>V4L compatible TV tuners</B></LI> 53 <LI>encoding to all the codecs of ffmpeg's
54 <A HREF=codecs.html#2.2.1.2>libavcodec</A></LI>
55 <LI>video encoding from <B>V4L compatible TV tuners</B></LI>
57 <LI>encoding/multiplexing to interleaved AVI files with proper index</LI> 56 <LI>encoding/multiplexing to interleaved AVI files with proper index</LI>
58 <LI>1 or 2 pass <B>DivX4</B> video</LI> 57 <LI>1 or 2 pass <B>DivX4</B> video</LI>
59 <LI><B>VBR</B> MP3 audio - <B>IMPORTANT NOTE</B> : VBR MP3 audio doesn't 58 <LI><B>VBR</B> MP3 audio - <B>IMPORTANT NOTE</B> : VBR MP3 audio doesn't
60 always play nicely on windows players! If you intend to encode AVIs 59 always play nicely on windows players! If you intend to encode AVIs
61 mainly for windows, encode with CBR!</LI> 60 mainly for windows, encode with CBR!</LI>
72 <UL> 71 <UL>
73 <LI>using audio from separate file (AC3, MP3, OGG)</LI> 72 <LI>using audio from separate file (AC3, MP3, OGG)</LI>
74 <LI>VBR audio stream copy</LI> 73 <LI>VBR audio stream copy</LI>
75 <LI>even wider variety of available en/decoding formats/codecs 74 <LI>even wider variety of available en/decoding formats/codecs
76 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI> 75 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI>
76 <LI>audio encoding from v4l</LI>
77 </UL> 77 </UL>
78 </P> 78 </P>
79 79
80 <P><B><A NAME=2.4.3.1>2.4.3.1. Encoding 2-pass DivX4</B></P> 80 <P><B><A NAME=2.4.3.1>2.4.3.1. Encoding 2-pass DivX4</B></P>
81 81
171 171
172 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P> 172 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P>
173 173
174 <P>NOTE : for all available options, <B>read the manpage !</B></P> 174 <P>NOTE : for all available options, <B>read the manpage !</B></P>
175 175
176 <TABLE BORDER=0> 176 <TABLE BORDER=1>
177 <TR> 177 <TR>
178 <TD>&nbsp;&nbsp;</TD>
179 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 178 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
180 <I>-o</I> filename</TD> 179 <I>-o</I> filename</TD>
181 <TD>&nbsp;&nbsp;</TD>
182 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 180 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
183 specify output filename 181 specify output filename
184 </TD> 182 </TD>
185 </TR> 183 </TR>
186 <TR> 184 <TR>
187 <TD>&nbsp;&nbsp;</TD>
188 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 185 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
189 <I>-x</I> width in pixels</TD> 186 <I>-x</I> width in pixels</TD>
190 <TD>&nbsp;&nbsp;</TD>
191 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 187 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
192 rescale output video to given pixels width 188 rescale output video to given pixels width
193 </TD> 189 </TD>
194 </TR> 190 </TR>
195 <TR> 191 <TR>
196 <TD>&nbsp;&nbsp;</TD>
197 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 192 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
198 <I>-y</I> height in pixels</TD> 193 <I>-y</I> height in pixels</TD>
199 <TD>&nbsp;&nbsp;</TD>
200 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 194 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
201 rescale output video to given pixels height 195 rescale output video to given pixels height
202 </TD> 196 </TD>
203 </TR> 197 </TR>
204 <TR> 198 <TR>
205 <TD>&nbsp;&nbsp;</TD>
206 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 199 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
207 <I>-sws</I> 0-2</TD> 200 <I>-sws</I> 0-2</TD>
208 <TD>&nbsp;&nbsp;</TD>
209 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 201 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
210 type of scaling method<BR> 202 type of scaling method<BR>
211 &nbsp;&nbsp;0 - fast bilinear<BR> 203 &nbsp;&nbsp;0 - fast bilinear<BR>
212 &nbsp;&nbsp;1 - bilinear<BR> 204 &nbsp;&nbsp;1 - bilinear<BR>
213 &nbsp;&nbsp;2 - bicubic (best quality)<BR> 205 &nbsp;&nbsp;2 - bicubic (best quality)<BR>
214 </TD> 206 </TD>
215 </TR> 207 </TR>
216 <TR> 208 <TR>
217 <TD>&nbsp;&nbsp;</TD>
218 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 209 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
219 <I>-ovc</I> codecname</TD> 210 <I>-ovc</I> codecname</TD>
220 <TD>&nbsp;&nbsp;</TD>
221 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 211 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
222 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> 212 Encode with the given codec (codec names are from codecs.conf). Examples:<BR>
223 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR> 213 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR>
224 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> 214 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR>
225 &nbsp;&nbsp;<B>divx4</B> - encode to DivX4<BR> 215 &nbsp;&nbsp;<B>divx4</B> - encode to DivX4<BR>
226 &nbsp;&nbsp;<B>lavc</B> - encode with a codec from libavcodec<BR> 216 &nbsp;&nbsp;<B>lavc</B> - encode with a codec from libavcodec<BR>
227 </TD> 217 </TD>
228 </TR> 218 </TR>
229 <TR> 219 <TR>
230 <TD>&nbsp;&nbsp;</TD>
231 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 220 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
232 <I>-oac</I> codecname</TD> 221 <I>-oac</I> codecname</TD>
233 <TD>&nbsp;&nbsp;</TD>
234 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 222 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
235 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> 223 Encode with the given codec (codec names are from codecs.conf). Examples:<BR>
236 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR> 224 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR>
237 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> 225 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR>
238 &nbsp;&nbsp;<B>pcm</B> - encode to uncompressed PCM<BR> 226 &nbsp;&nbsp;<B>pcm</B> - encode to uncompressed PCM<BR>
239 &nbsp;&nbsp;<B>mp3lame</B> - encode to MP3 (using Lame)<BR> 227 &nbsp;&nbsp;<B>mp3lame</B> - encode to MP3 (using Lame)<BR>
240 </TD> 228 </TD>
241 </TR> 229 </TR>
242 <TR> 230 <TR>
243 <TD>&nbsp;&nbsp;</TD>
244 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 231 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
245 <I>-divx4opts</I></TD> 232 <I>-divx4opts</I></TD>
246 <TD>&nbsp;&nbsp;</TD>
247 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 233 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
248 If encoding to DivX4, you can specify its parameters here, like:<BR> 234 If encoding to DivX4, you can specify its parameters here, like:<BR>
249 &nbsp;&nbsp;<CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR> 235 &nbsp;&nbsp;<CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR>
250 Common options: <B>(for full list, check the manpage!)</B><BR> 236 Common options: <B>(for full list, check the manpage!)</B><BR>
251 &nbsp;&nbsp;<B>help</B> - get help<BR> 237 &nbsp;&nbsp;<B>help</B> - get help<BR>
253 &nbsp;&nbsp;<B>q</B>=XXXX - quality (1-fastest, 5-best - default 5)<BR> 239 &nbsp;&nbsp;<B>q</B>=XXXX - quality (1-fastest, 5-best - default 5)<BR>
254 &nbsp;&nbsp;<B>key</B>=XXXX - keyframe interval<BR> 240 &nbsp;&nbsp;<B>key</B>=XXXX - keyframe interval<BR>
255 </TD> 241 </TD>
256 </TR> 242 </TR>
257 <TR> 243 <TR>
258 <TD>&nbsp;&nbsp;</TD>
259 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 244 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
260 <I>-lavcopts</I></TD> 245 <I>-lavcopts</I></TD>
261 <TD>&nbsp;&nbsp;</TD>
262 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 246 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
263 If encoding with libavcodec, you can specify its parameters here, like:<BR> 247 If encoding with libavcodec, you can specify its parameters here, like:<BR>
264 &nbsp;&nbsp;<CODE>-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250</CODE><BR> 248 &nbsp;&nbsp;<CODE>-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250</CODE><BR>
265 Common options: <B>(for full list, check the manpage!)</B><BR> 249 Common options: <B>(for full list, check the manpage!)</B><BR>
266 &nbsp;&nbsp;<B>help</B> - get help<BR> 250 &nbsp;&nbsp;<B>help</B> - get help<BR>
269 &nbsp;&nbsp;<B>vhq</B> - high quality<BR> 253 &nbsp;&nbsp;<B>vhq</B> - high quality<BR>
270 &nbsp;&nbsp;<B>keyint</B>=XXX - keyframe interval<BR> 254 &nbsp;&nbsp;<B>keyint</B>=XXX - keyframe interval<BR>
271 </TD> 255 </TD>
272 </TR> 256 </TR>
273 <TR> 257 <TR>
274 <TD>&nbsp;&nbsp;</TD>
275 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 258 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
276 <I>-lameopts</I></TD> 259 <I>-lameopts</I></TD>
277 <TD>&nbsp;&nbsp;</TD>
278 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 260 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
279 If encoding to MP3 with libmp3lame, you can specify its parameters here, like:<BR> 261 If encoding to MP3 with libmp3lame, you can specify its parameters here, like:<BR>
280 &nbsp;&nbsp;<CODE>-lameopts q=3</CODE><BR> 262 &nbsp;&nbsp;<CODE>-lameopts q=3</CODE><BR>
281 &nbsp;&nbsp;<CODE>-lameopts br=192:cbr</CODE><BR> 263 &nbsp;&nbsp;<CODE>-lameopts br=192:cbr</CODE><BR>
282 Common options: <B>(for full list, check the manpage!)</B><BR> 264 Common options: <B>(for full list, check the manpage!)</B><BR>