Mercurial > mplayer.hg
annotate DOCS/encoding.html @ 2848:33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
author | gabucino |
---|---|
date | Sun, 11 Nov 2001 22:30:31 +0000 (2001-11-11) |
parents | 62bcea66003e |
children | 4a1802c5bbee |
rev | line source |
---|---|
2674 | 1 <HTML> |
2 <BODY BGCOLOR=white> | |
3 | |
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | |
5 | |
2745 | 6 <P><B><A NAME=2.4>2.4. Encoding with MEncoder</A></B></P> |
2674 | 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 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
29 type : <CODE>make mencoder</CODE> , then <CODE>make install</CODE> . |
2674 | 30 </UL> |
31 </P> | |
32 | |
33 <P>You are ready. As you probably know, other encoding tools need the | |
34 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> | |
35 | |
36 <P><B><I>MEncoder features</I></B> : | |
37 <UL> | |
38 <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B> | |
39 <LI>encoding/multiplexing to interleaved AVI files with proper index</LI> | |
40 <LI>1 or 2 pass <B>DivX4</B> video</LI> | |
41 <LI><B>VBR</B> MP3 audio</LI> | |
42 <LI>PCM audio</LI> | |
43 <LI>stream copying (only from AVI/ASF now, and CBR audio only)</LI> | |
44 <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI> | |
45 <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding | |
46 29.97fps VOB to 24fps AVI)</LI> | |
47 </UL> | |
48 </P> | |
49 | |
50 <P><B><I>Planned features</I></B> : | |
51 <UL> | |
52 <LI>using audio from separate file (AC3, MP3, OGG)</LI> | |
53 <LI>VBR audio stream copy</LI> | |
54 <LI>even wider variety of available en/decoding formats/codecs | |
55 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI> | |
56 </UL> | |
57 </P> | |
58 | |
2848
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
59 <P><B><I>Encoding 2-pass DivX4</I></B></P> |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
60 |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
61 <P>The name comes from the fact that this method encodes the file <I>twice</I>. |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
62 The first encoding (dubbed <I>pass</I>) creates a temporary file with a size |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
63 of few megabytes. In the second pass, the output file is created, using the |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
64 bitrate data from the temporary file. The resulting file will have much |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
65 better image quality. If this is the first time you heard about this, you |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
66 should consult some guides available on the Net.</P> |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
67 |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
68 <P>This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
69 commands are needed :<BR> |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
70 <CODE> mplayer -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
71 -o movie.avi -pass 1<BR> |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
72 mplayer -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2</CODE></P> |
33c32f3d9f1f
many small updates, fixes (some/more to be completed soon)
gabucino
parents:
2745
diff
changeset
|
73 |
2674 | 74 <P><B><I>Examples</I></B></P> |
75 | |
76 <P>Using <B>MEncoder</B> is the easiest thing on Earth. See the following :</P> | |
77 | |
78 <P>Encoding from DVD, title 2 :<BR> | |
79 <CODE> mencoder -dvd 2 -o title2.avi</CODE></P> | |
80 | |
81 <P>Encoding from HTTP :<BR> | |
82 <CODE> mencoder http://mplayer.hq/example.avi -o example.avi</CODE></P> | |
83 | |
84 <P>Encoding from standard input :<BR> | |
85 <CODE> rar p test-SVCD.rar | mencoder -divx4opts br=800 -ofps 24 -pass 1 -- -</CODE></P> | |
86 | |
87 <P>For all available options, <B><I>check the MEncoder man page !</I></B> | |
88 <P> | |
89 </FONT> | |
90 </BODY> | |
91 </HTML> |