comparison DOCS/xml/en/encoding-guide.xml @ 16541:4a9808f6cacc

add some internal links between "codecs supported by mencoder" and "codecs featured by lavc". Added an audio encoding example. Moved the "codecs featured by lavc" in 2 shiny new sections (to allow the internal links to work)
author gpoirier
date Tue, 20 Sep 2005 19:57:09 +0000
parents 15563bd0874a
children 1d524afe2f9c
comparison
equal deleted inserted replaced
16540:08ad8e0cfdd5 16541:4a9808f6cacc
2215 2215
2216 <para> 2216 <para>
2217 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link> 2217 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>
2218 provides simple encoding to a lot of interesting video and audio formats. 2218 provides simple encoding to a lot of interesting video and audio formats.
2219 You can encode to the following codecs (more or less up to date): 2219 You can encode to the following codecs (more or less up to date):
2220 2220 </para>
2221
2222 <sect2 id="menc-feat-enc-libavcodec-video-codecs">
2223 <title><systemitem class="library">libavcodec</systemitem>'s video codecs</title>
2224
2225 <para>
2221 <informaltable frame="all"> 2226 <informaltable frame="all">
2222 <tgroup cols="2"> 2227 <tgroup cols="2">
2223 <thead> 2228 <thead>
2224 <row><entry>Video codec name</entry><entry>Description</entry></row> 2229 <row><entry>Video codec name</entry><entry>Description</entry></row>
2225 </thead> 2230 </thead>
2288 </tgroup> 2293 </tgroup>
2289 </informaltable> 2294 </informaltable>
2290 2295
2291 The first column contains the codec names that should be passed after the 2296 The first column contains the codec names that should be passed after the
2292 <literal>vcodec</literal> config, like: <option>-lavcopts vcodec=msmpeg4</option> 2297 <literal>vcodec</literal> config, like: <option>-lavcopts vcodec=msmpeg4</option>
2293 2298 </para>
2294 2299 <informalexample>
2300 <para>
2301 An example, with MJPEG compression:
2302 <screen>mencoder dvd://2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy</screen>
2303 </para>
2304 </informalexample>
2305 </sect2>
2306
2307 <sect2 id="menc-feat-enc-libavcodec-audio-codecs">
2308 <title><systemitem class="library">libavcodec</systemitem>'s audio codecs</title>
2309 <para>
2295 <informaltable frame="all"> 2310 <informaltable frame="all">
2296 <tgroup cols="2"> 2311 <tgroup cols="2">
2297 <thead> 2312 <thead>
2298 <row><entry>Audio codec name</entry><entry>Description</entry></row> 2313 <row><entry>Audio codec name</entry><entry>Description</entry></row>
2299 </thead> 2314 </thead>
2320 2335
2321 The first column contains the codec names that should be passed after the 2336 The first column contains the codec names that should be passed after the
2322 <literal>acodec</literal> option, like: <option>-lavcopts acodec=ac3</option> 2337 <literal>acodec</literal> option, like: <option>-lavcopts acodec=ac3</option>
2323 </para> 2338 </para>
2324 2339
2340 <informalexample>
2341 <para>
2342 An example, with AC3 compression:
2343 <screen>mencoder dvd://2 -o title2.avi -oac lavc -lavcopts acodec=ac3 -ovc copy</screen>
2344 </para>
2345 </informalexample>
2346
2325 <para> 2347 <para>
2326 Contrary to <systemitem class="library">libavcodec</systemitem>'s video 2348 Contrary to <systemitem class="library">libavcodec</systemitem>'s video
2327 codecs, its audio codecs do not make a wise usage of the bits they are 2349 codecs, its audio codecs do not make a wise usage of the bits they are
2328 given as they lack some minimal psychoacoustic model (if at all) 2350 given as they lack some minimal psychoacoustic model (if at all)
2329 which most other codec implementations feature. 2351 which most other codec implementations feature.
2330 However, note that all these audio codecs are very fast and work 2352 However, note that all these audio codecs are very fast and work
2331 out-of-the-box everywhere <application>MEncoder</application> has been 2353 out-of-the-box everywhere <application>MEncoder</application> has been
2332 compiled with <systemitem class="library">libavcodec</systemitem> (which 2354 compiled with <systemitem class="library">libavcodec</systemitem> (which
2333 is the case most of time), and do not depend on external libraries. 2355 is the case most of time), and do not depend on external libraries.
2334 </para> 2356 </para>
2335 2357 </sect2>
2336 <informalexample> 2358
2337 <para>
2338 An example, with MJPEG compression:
2339 <screen>mencoder dvd://2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -oac copy</screen>
2340 </para>
2341 </informalexample>
2342 2359
2343 <sect2 id="menc-feat-dvd-mpeg4-lavc-encoding-options"> 2360 <sect2 id="menc-feat-dvd-mpeg4-lavc-encoding-options">
2344 <title>Encoding options of libavcodec</title> 2361 <title>Encoding options of libavcodec</title>
2345 2362
2346 <para> 2363 <para>