Mercurial > mplayer.hg
comparison DOCS/encoding.html @ 3027:7b85ba8c9be5
mostly fixes, some updates
author | gabucino |
---|---|
date | Tue, 20 Nov 2001 14:19:31 +0000 |
parents | 20157c719b2c |
children | 75820a3febac |
comparison
equal
deleted
inserted
replaced
3026:1b65a4abf104 | 3027:7b85ba8c9be5 |
---|---|
15 other interesting stuff.</P> | 15 other interesting stuff.</P> |
16 | 16 |
17 <P><B><I>Compiling</I></B> | 17 <P><B><I>Compiling</I></B> |
18 <UL> | 18 <UL> |
19 <LI>read <B>MPlayer</B>'s compilation instructions, it contains info about | 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> | 20 how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI> |
21 <LI>download the newest <B>DivX4linux</B> libs | 21 <LI>download the newest <B>DivX4linux</B> libs |
22 from <A HREF="http://avifile.sourceforge.net/download.htm">avifile.sourceforge.net</A>, | 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) | 23 and have them PROPERLY installed. This is needed for DivX4 (1/2 pass) |
24 encoding.</LI> | 24 encoding. And since this is mandatory (now), MEncoder is Linux-only.</LI> |
25 <LI>download and install <B>libmp3lame</B> (from lame 3.89beta or lame CVS). This | 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 | 26 is needed for CBR/VBR MP3 audio encoding ability. Note that a single |
27 <CODE>lame</CODE> binary isn't sufficient. BTW: the less optimization | 27 <CODE>lame</CODE> binary isn't sufficient. BTW: the less optimization |
28 you use for lame, the better the quality will be. You can test | 28 you use for lame, the better the quality will be. You can test |
29 quality by running <CODE>make test</CODE> after lame's compiling process | 29 quality by running <CODE>make test</CODE> after lame's compiling process |
30 is over. The resulting number should be less than <B>30</B>. Don't | 30 is over. The resulting number should be less than <B>30</B>. Don't |
31 panic if it's <B>400</B> or so, you shouldn't heard any audible | 31 panic if it's <B>400</B> or so, you shouldn't heard any audible |
32 quality decrease. Oh, and if your compiler doesn't even run <CODE>make test</CODE> ... | 32 quality decrease. Oh, and if your compiler doesn't even run <CODE>make test</CODE> ... |
33 Well, delete that <B>GCC 2.96</B>.</LI> | 33 Well, delete that <B>GCC 2.96</B>.</LI> |
34 <LI>use <CODE>./configure</CODE> with optional parameters as usual | 34 <LI>use <CODE>./configure</CODE> with optional parameters as usual |
35 (use <CODE>--enable-tv</CODE> to include V4L tuner grabbing code), and | 35 (use <CODE>--enable-tv</CODE> to include V4L tuner grabbing code), and |
36 type : <CODE>make mencoder</CODE> , then <CODE>make install</CODE> . | 36 type : <CODE>make mencoder</CODE> , then <CODE>make install</CODE>.</LI> |
37 </UL> | 37 </UL> |
38 </P> | 38 </P> |
39 | 39 |
40 <P>You are ready. As you probably know, other encoding tools need the | 40 <P>You are ready. As you probably know, other encoding tools need the |
41 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> | 41 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> |
65 </P> | 65 </P> |
66 | 66 |
67 <P><B><I>Encoding 2-pass DivX4</I></B></P> | 67 <P><B><I>Encoding 2-pass DivX4</I></B></P> |
68 | 68 |
69 <P>The name comes from the fact that this method encodes the file <I>twice</I>. | 69 <P>The name comes from the fact that this method encodes the file <I>twice</I>. |
70 The first encoding (dubbed <I>pass</I>) creates a temporary file with a size | 70 The first encoding (dubbed <I>pass</I>) creates some temporary files with a |
71 of few megabytes. In the second pass, the output file is created, using the | 71 size of few megabytes (do not delete them yet). In the second pass, the output |
72 bitrate data from the temporary file. The resulting file will have much | 72 file is created, using the bitrate data from the temporary file. The resulting |
73 better image quality. If this is the first time you heard about this, you | 73 file will have much better image quality. If this is the first time you heard |
74 should consult some guides available on the Net.</P> | 74 about this, you should consult some guides available on the Net.</P> |
75 | 75 |
76 <P>This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two | 76 <P>This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two |
77 commands are needed :<BR> | 77 commands are needed :<BR> |
78 <CODE> mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 | 78 <CODE> mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 |
79 -o movie.avi -pass 1<BR> | 79 -o movie.avi -pass 1<BR> |