Mercurial > mplayer.hg
comparison DOCS/encoding.html @ 2674:aadcae54d45c
started mencoder documentation
| author | gabucino |
|---|---|
| date | Sun, 04 Nov 2001 11:20:11 +0000 |
| parents | |
| children | 62bcea66003e |
comparison
equal
deleted
inserted
replaced
| 2673:1d79b0f4889a | 2674:aadcae54d45c |
|---|---|
| 1 <HTML> | |
| 2 <BODY BGCOLOR=white> | |
| 3 | |
| 4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | |
| 5 | |
| 6 <P><B><A NAME=2.3>2.3. Encoding with MEncoder</A></B></P> | |
| 7 | |
| 8 <P><B><I>Overview</I></B> | |
| 9 <P><B>MEncoder</B> (<B>MPlayer</B>'s Movie Encoder) is a simple movie encoder, | |
| 10 designed to encode MPlayer-playable movies | |
| 11 (<B>AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET</B>) to other MPlayer-playable formats (see | |
| 12 below). Currently it's in beta stage, and encodes only to <B>DivX4</B> (1 or 2 | |
| 13 passes) video, <B>PCM</B>/<B>MP3</B>/<B>VBRMP3</B> audio. Also has stream | |
| 14 copying abilities. In the future, there will be cropping, resizing filters, and | |
| 15 other interesting stuff.</P> | |
| 16 | |
| 17 <P><B><I>Compiling</I></B> | |
| 18 <UL> | |
| 19 <LI>read <B>MPlayer</B>'s compilation instructions, it contains info about | |
| 20 how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI> | |
| 21 <LI>download the newest <B>DivX4linux</B> libs | |
| 22 from <A HREF="http://avifile.sourceforge.net/download.htm">avifile.sourceforge.net</A>, | |
| 23 and have them PROPERLY installed. This is needed for DivX4 (1/2 pass) | |
| 24 encoding.</LI> | |
| 25 <LI>download and install <B>libmp3lame</B> (from lame 3.89beta or lame CVS). This | |
| 26 is needed for CBR/VBR MP3 audio encoding ability. Note that a single | |
| 27 <CODE>lame</CODE> binary isn't sufficient.</LI> | |
| 28 <LI>use <CODE>./configure</CODE> with optional parameters as usual, and | |
| 29 type : <CODE>make mencoder</CODE> . You have to install it manually for | |
| 30 now. | |
| 31 </UL> | |
| 32 </P> | |
| 33 | |
| 34 <P>You are ready. As you probably know, other encoding tools need the | |
| 35 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> | |
| 36 | |
| 37 <P><B><I>MEncoder features</I></B> : | |
| 38 <UL> | |
| 39 <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B> | |
| 40 <LI>encoding/multiplexing to interleaved AVI files with proper index</LI> | |
| 41 <LI>1 or 2 pass <B>DivX4</B> video</LI> | |
| 42 <LI><B>VBR</B> MP3 audio</LI> | |
| 43 <LI>PCM audio</LI> | |
| 44 <LI>stream copying (only from AVI/ASF now, and CBR audio only)</LI> | |
| 45 <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI> | |
| 46 <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding | |
| 47 29.97fps VOB to 24fps AVI)</LI> | |
| 48 </UL> | |
| 49 </P> | |
| 50 | |
| 51 <P><B><I>Planned features</I></B> : | |
| 52 <UL> | |
| 53 <LI>using audio from separate file (AC3, MP3, OGG)</LI> | |
| 54 <LI>VBR audio stream copy</LI> | |
| 55 <LI>even wider variety of available en/decoding formats/codecs | |
| 56 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI> | |
| 57 </UL> | |
| 58 </P> | |
| 59 | |
| 60 <P><B><I>Examples</I></B></P> | |
| 61 | |
| 62 <P>Using <B>MEncoder</B> is the easiest thing on Earth. See the following :</P> | |
| 63 | |
| 64 <P>Encoding from DVD, title 2 :<BR> | |
| 65 <CODE> mencoder -dvd 2 -o title2.avi</CODE></P> | |
| 66 | |
| 67 <P>Encoding from HTTP :<BR> | |
| 68 <CODE> mencoder http://mplayer.hq/example.avi -o example.avi</CODE></P> | |
| 69 | |
| 70 <P>Encoding from standard input :<BR> | |
| 71 <CODE> rar p test-SVCD.rar | mencoder -divx4opts br=800 -ofps 24 -pass 1 -- -</CODE></P> | |
| 72 | |
| 73 <P>For all available options, <B><I>check the MEncoder man page !</I></B> | |
| 74 <P> | |
| 75 </FONT> | |
| 76 </BODY> | |
| 77 </HTML> |
