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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2674
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
1 <HTML>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
2 <BODY BGCOLOR=white>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
3
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
5
2745
62bcea66003e oh my god what have i done...
gabucino
parents: 2674
diff changeset
6 <P><B><A NAME=2.4>2.4. Encoding with MEncoder</A></B></P>
2674
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
7
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
8 <P><B><I>Overview</I></B>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
9 <P><B>MEncoder</B> (<B>MPlayer</B>'s Movie Encoder) is a simple movie encoder,
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
10 designed to encode MPlayer-playable movies
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
11 (<B>AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET</B>) to other MPlayer-playable formats (see
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
12 below). Currently it's in beta stage, and encodes only to <B>DivX4</B> (1 or 2
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
13 passes) video, <B>PCM</B>/<B>MP3</B>/<B>VBRMP3</B> audio. Also has stream
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
14 copying abilities. In the future, there will be cropping, resizing filters, and
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
15 other interesting stuff.</P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
16
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
17 <P><B><I>Compiling</I></B>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
18 <UL>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
19 <LI>read <B>MPlayer</B>'s compilation instructions, it contains info about
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
20 how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
21 <LI>download the newest <B>DivX4linux</B> libs
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
22 from <A HREF="http://avifile.sourceforge.net/download.htm">avifile.sourceforge.net</A>,
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
23 and have them PROPERLY installed. This is needed for DivX4 (1/2 pass)
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
24 encoding.</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
25 <LI>download and install <B>libmp3lame</B> (from lame 3.89beta or lame CVS). This
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
26 is needed for CBR/VBR MP3 audio encoding ability. Note that a single
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
27 <CODE>lame</CODE> binary isn't sufficient.</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
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
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
30 </UL>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
31 </P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
32
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
33 <P>You are ready. As you probably know, other encoding tools need the
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
34 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
35
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
36 <P><B><I>MEncoder features</I></B> :
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
37 <UL>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
38 <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
39 <LI>encoding/multiplexing to interleaved AVI files with proper index</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
40 <LI>1 or 2 pass <B>DivX4</B> video</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
41 <LI><B>VBR</B> MP3 audio</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
42 <LI>PCM audio</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
43 <LI>stream copying (only from AVI/ASF now, and CBR audio only)</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
44 <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
45 <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
46 29.97fps VOB to 24fps AVI)</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
47 </UL>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
48 </P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
49
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
50 <P><B><I>Planned features</I></B> :
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
51 <UL>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
52 <LI>using audio from separate file (AC3, MP3, OGG)</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
53 <LI>VBR audio stream copy</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
54 <LI>even wider variety of available en/decoding formats/codecs
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
55 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
56 </UL>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
57 </P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
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>&nbsp;&nbsp;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 &nbsp;&nbsp;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
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
74 <P><B><I>Examples</I></B></P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
75
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
76 <P>Using <B>MEncoder</B> is the easiest thing on Earth. See the following :</P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
77
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
78 <P>Encoding from DVD, title 2 :<BR>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
79 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder -dvd 2 -o title2.avi</CODE></P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
80
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
81 <P>Encoding from HTTP :<BR>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
82 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mencoder http://mplayer.hq/example.avi -o example.avi</CODE></P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
83
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
84 <P>Encoding from standard input :<BR>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
85 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;rar p test-SVCD.rar | mencoder -divx4opts br=800 -ofps 24 -pass 1 -- -</CODE></P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
86
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
87 <P>For all available options, <B><I>check the MEncoder man page !</I></B>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
88 <P>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
89 </FONT>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
90 </BODY>
aadcae54d45c started mencoder documentation
gabucino
parents:
diff changeset
91 </HTML>