comparison DOCS/encoding.html @ 4680:b5d956f0b6ea

sok ize, mutyur, bizbasz.
author gabucino
date Tue, 12 Feb 2002 22:34:35 +0000
parents 55c8aefdef1b
children 860808c94265
comparison
equal deleted inserted replaced
4679:6347d9c6e115 4680:b5d956f0b6ea
56 <LI>1, 2 or 3 pass <B>DivX4</B> video</LI> 56 <LI>1, 2 or 3 pass <B>DivX4</B> video</LI>
57 <LI><B>VBR</B> MP3 audio - <B>IMPORTANT NOTE</B> : VBR MP3 audio doesn't 57 <LI><B>VBR</B> MP3 audio - <B>IMPORTANT NOTE</B> : VBR MP3 audio doesn't
58 always play nicely on windows players! If you intend to encode AVIs 58 always play nicely on windows players! If you intend to encode AVIs
59 mainly for windows, encode with CBR!</LI> 59 mainly for windows, encode with CBR!</LI>
60 <LI>PCM audio</LI> 60 <LI>PCM audio</LI>
61 <LI>stream copying (CBR audio only)</LI> 61 <LI>stream copying</LI>
62 <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI> 62 <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI>
63 <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding 63 <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding
64 29.97fps VOB to 24fps AVI)</LI> 64 29.97fps VOB to 24fps AVI)</LI>
65 <LI>movie rescaling</LI> 65 <LI>movie rescaling</LI>
66 </UL> 66 </UL>
67 </P> 67 </P>
68 68
69 <P><B><I>Planned features</I></B> : 69 <P><B><I>Planned features</I></B> :
70 <UL> 70 <UL>
71 <LI>using audio from separate file (AC3, MP3, OGG)</LI> 71 <LI>using audio from separate file (AC3, MP3, OGG)</LI>
72 <LI>VBR audio stream copy</LI>
73 <LI>even wider variety of available en/decoding formats/codecs 72 <LI>even wider variety of available en/decoding formats/codecs
74 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI> 73 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI>
75 <LI>audio encoding from v4l</LI> 74 <LI>audio encoding from v4l</LI>
76 </UL> 75 </UL>
77 </P> 76 </P>
173 <B>MEncoder</B> will use 0 : fast bilinear.</P> 172 <B>MEncoder</B> will use 0 : fast bilinear.</P>
174 173
175 <P>Rescaling is very simple :<BR> 174 <P>Rescaling is very simple :<BR>
176 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi</CODE></P> 175 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi</CODE></P>
177 176
177
178 <P><B><A NAME=2.4.3.3>2.4.3.3. Stream copying</B></P> 178 <P><B><A NAME=2.4.3.3>2.4.3.3. Stream copying</B></P>
179 179
180 <P><B>MEncoder</B> can handle input streams in two ways : <B>encode</B> or 180 <P><B>MEncoder</B> can handle input streams in two ways : <B>encode</B> or
181 <B>copy</B> them. This section is about <B>copying</B>.</P> 181 <B>copy</B> them. This section is about <B>copying</B>.</P>
182 182
190 to MP3).</LI> 190 to MP3).</LI>
191 191
192 <LI><B>Audio stream</B> (option <CODE>-oac copy</CODE>) : straightforward.</LI> 192 <LI><B>Audio stream</B> (option <CODE>-oac copy</CODE>) : straightforward.</LI>
193 </UL> 193 </UL>
194 </P> 194 </P>
195
195 196
196 <P><B><A NAME=2.4.3.4>2.4.3.4. Fixing AVIs with broken index or interleaving</B></P> 197 <P><B><A NAME=2.4.3.4>2.4.3.4. Fixing AVIs with broken index or interleaving</B></P>
197 198
198 <P>Easiest thing. We simply copy the video and audio streams, and 199 <P>Easiest thing. We simply copy the video and audio streams, and
199 <B>MEncoder</B> generates the index. Of course this cannot fix possible bugs in 200 <B>MEncoder</B> generates the index. Of course this cannot fix possible bugs in
225 <CODE>vcodec</CODE> config, like : <CODE>-lavcopts vcodec=msmpeg4</CODE></P> 226 <CODE>vcodec</CODE> config, like : <CODE>-lavcopts vcodec=msmpeg4</CODE></P>
226 227
227 <P>An example, with MJPEG compression :<BR> 228 <P>An example, with MJPEG compression :<BR>
228 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg</CODE></P> 229 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg</CODE></P>
229 230
231
230 <P><B><A NAME=2.4.4>2.4.4. Syntax</B></P> 232 <P><B><A NAME=2.4.4>2.4.4. Syntax</B></P>
231 233
232 <P>&nbsp;&nbsp;<CODE>mencoder [options] [input file] [options] ...</P> 234 <P>&nbsp;&nbsp;<CODE>mencoder [options] [input file] [options] ...</P>
233 235
236
234 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P> 237 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P>
235 238
236 <P>NOTE : for all available options, <B>read the manpage !</B></P> 239 <P>NOTE : for all available options, <B>read the manpage !</B></P>
240
241 <P>
242 As <B>MEncoder</B> is built on the same codebase as <B>MPlayer</B>, there
243 are many <B>MPlayer</B> options that have function in <B>MEncoder</B> too!
244 See, you can use <CODE>-sid</CODE> to rip a DVD with subtitles, or
245 <CODE>-noidx</CODE> to disregard buggy index of input AVI. <B>Be smart!</B>
246 </P>
237 247
238 <TABLE BORDER=1> 248 <TABLE BORDER=1>
239 <TR> 249 <TR>
240 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 250 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
241 <I>-o</I> filename</TD> 251 <I>-o</I> filename</TD>
271 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 281 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
272 <I>-ovc</I> codecname</TD> 282 <I>-ovc</I> codecname</TD>
273 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 283 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
274 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> 284 Encode with the given codec (codec names are from codecs.conf). Examples:<BR>
275 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR> 285 &nbsp;&nbsp;<B>help</B> - get list of available codecs<BR>
286 &nbsp;&nbsp;<B>null</B> - do not create a video stream in the output AVI<BR>
287 &nbsp;&nbsp;<B>raw</B> - create uncompressed video<BR>
288 &nbsp;&nbsp;<B>rawrgb</B> - ?<BR>
276 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> 289 &nbsp;&nbsp;<B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR>
277 &nbsp;&nbsp;<B>divx4</B> - encode to DivX4<BR> 290 &nbsp;&nbsp;<B>divx4</B> - encode to DivX4<BR>
278 &nbsp;&nbsp;<B>lavc</B> - encode with a codec from libavcodec<BR> 291 &nbsp;&nbsp;<B>lavc</B> - encode with a codec from libavcodec<BR>
292 &nbsp;&nbsp;<B>vfw</B> - encode with a Windows DLL<BR>
279 </TD> 293 </TD>
280 </TR> 294 </TR>
281 <TR> 295 <TR>
282 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> 296 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
283 <I>-oac</I> codecname</TD> 297 <I>-oac</I> codecname</TD>