Mercurial > mplayer.hg
annotate DOCS/Polish/encoding.html @ 4073:5f28d9d7d346
Changed the return value of the start function. Doesn't return the fd
anymore. Just -1 for fail and 0 for OK.
author | bertrand |
---|---|
date | Thu, 10 Jan 2002 01:42:31 +0000 |
parents | ed33540a982b |
children | d5c692754cf2 |
rev | line source |
---|---|
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
1 <HTML> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
2 <BODY BGCOLOR=white> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
3 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
5 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
6 <P><B><A NAME=2.4>2.4. Encoding with MEncoder</A></B></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
7 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
8 <P><B><A NAME=2.4.1>2.4.1. Overview</B></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
9 |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
10 <P><B>MEncoder</B> (<B>MPlayer</B>'s Movie Encoder) is a simple movie encoder, |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
11 designed to encode MPlayer-playable movies |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
12 (<B>AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET</B>) to other MPlayer-playable formats (see |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
13 below). Currently it's in beta stage, and encodes only to <B>DivX4</B> (1 or 2 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
14 passes) video, <B>PCM</B>/<B>MP3</B>/<B>VBRMP3</B> audio. Also has stream |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
15 copying abilities. In the future, there will be cropping, resizing filters, and |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
16 other interesting stuff.</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
17 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
18 <P><B><A NAME=2.4.2>2.4.2. Compiling</B></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
19 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
20 <P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
21 <UL> |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
22 <LI><B>OPTIONAL</B> - read <B>MPlayer</B>'s compilation instructions, it contains info about |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
23 how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI> |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
24 <LI><B>OPTIONAL</B> - download the newest <B>DivX4linux</B> libs |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
25 from <A HREF="http://avifile.sourceforge.net/download.htm">avifile.sourceforge.net</A>, |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
26 and have them PROPERLY installed. This is needed for DivX4 (1/2 pass) |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
27 encoding. And since this is mandatory (now), MEncoder is Linux-only.</LI> |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
28 <LI><B>OPTIONAL</B> - for libavcodec support, install libavcodec as |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
29 described in the <A HREF="codecs.html#2.2.1.2">libavcodec section</A>.</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
30 <LI><B>OPTIONAL</B> - download and compile <B>libmp3lame</B> (from lame 3.89beta or lame CVS).<BR> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
31 <B>WARNING : DO NOT COMPILE LAME WITH <U>GCC 2.96</U> ! It won't |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
32 work properly !</B><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
33 This |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
34 is needed for CBR/VBR MP3 audio encoding ability. Note that a single |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
35 <CODE>lame</CODE> binary isn't sufficient. BTW: the less optimization |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
36 you use for lame, the better the quality will be. You can test |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
37 quality by running <CODE>make test</CODE> after lame's compiling process |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
38 is over. The resulting number should be less than <B>30</B>. Don't |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
39 panic if it's <B>400</B> or so, you shouldn't heard any audible |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
40 quality decrease. Oh, and if your compiler doesn't even run <CODE>make test</CODE> ... |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
41 Well, delete that <B>GCC 2.96</B>.</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
42 <LI>use <CODE>./configure</CODE> with optional parameters as usual |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
43 (use <CODE>--enable-tv</CODE> to include V4L tuner grabbing code), and |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
44 type : <CODE>make mencoder</CODE> , then <CODE>make install</CODE>.</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
45 </UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
46 </P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
47 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
48 <P>You are ready. As you probably know, other encoding tools need the |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
49 <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
50 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
51 <P><B><A NAME=2.4.3>2.4.3. MEncoder features</B></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
52 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
53 <P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
54 <UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
55 <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B></LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
56 <LI>encoding from <B>V4L compatible TV tuners</B></LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
57 <LI>encoding/multiplexing to interleaved AVI files with proper index</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
58 <LI>1 or 2 pass <B>DivX4</B> video</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
59 <LI><B>VBR</B> MP3 audio</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
60 <LI>PCM audio</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
61 <LI>stream copying (CBR audio only)</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
62 <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
63 <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
64 29.97fps VOB to 24fps AVI)</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
65 <LI>movie rescaling</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
66 </UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
67 </P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
68 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
69 <P><B><I>Planned features</I></B> : |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
70 <UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
71 <LI>using audio from separate file (AC3, MP3, OGG)</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
72 <LI>VBR audio stream copy</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
73 <LI>even wider variety of available en/decoding formats/codecs |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
74 (creating VOB files with DivX4/Indeo5/VIVO streams :)</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
75 </UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
76 </P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
77 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
78 <P><B><A NAME=2.4.3.1>2.4.3.1. Encoding 2-pass DivX4</B></P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
79 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
80 <P>The name comes from the fact that this method encodes the file <I>twice</I>. |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
81 The first encoding (dubbed <I>pass</I>) creates some temporary files (*.log) with a |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
82 size of few megabytes, do not delete them yet (you can delete the AVI). In the second pass, the |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
83 2-pass output file is created, using the bitrate data from the temporary files. The resulting |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
84 file will have much better image quality. If this is the first time you heard |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
85 about this, you should consult some guides available on the Net.</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
86 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
87 <P>This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
88 commands are needed :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
89 <CODE> mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
90 -o movie.avi -pass 1<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
91 mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
92 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
93 <P><B><A NAME=2.4.3.2>2.4.3.2. Rescaling movies</B></P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
94 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
95 <P>Often the need to resize movie images' size emerges. Its reasons can be many, |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
96 examples are decreasing output file size, encoding SVCDs to DivX. Ripped DVDs |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
97 are mostly rescaled, for example a 4:3 DVD should be 640x480, especially |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
98 when you want it to fit to 1 CD, and have good quality at the same time. |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
99 SVCDs have 480x480 size, and their header contains the aspect ratio the |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
100 player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
101 AVI (DivX) files, you have be aware that AVI headers don't store this |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
102 value. Thus, the only solution is rescaling.</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
103 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
104 <P><B>MEncoder can scale input images if they come in YV12 format (for example: |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
105 ffdivx, odivx drivers, or mpeg1/2). The output size is specified with the |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
106 <CODE>-x</CODE>, and <CODE>-y</CODE> options. Furthermore, there are 3 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
107 rescaling filters in <B>MEncoder</B>, <I>0 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
108 : fast bilinear</I>, <I>1 : bilinear</I>, <I>2 : bicubic</I> (best quality). |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
109 They can be specified with the <CODE>-sws</CODE> option. If not specified, |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
110 <B>MEncoder</B> will use 0 : fast bilinear.</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
111 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
112 <P>Rescaling is very simple :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
113 <CODE> mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
114 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
115 <P><B><A NAME=2.4.3.3>2.4.3.3. Stream copying</B></P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
116 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
117 <P><B>MEncoder</B> can handle input streams in two ways : <B>encode</B> or |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
118 <B>copy</B> them. This section is about <B>copying</B>.</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
119 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
120 <P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
121 <UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
122 <LI><B>Video stream</B> (option <CODE>-ovc copy</CODE>) : nice stuff can be done :)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
123 Like, putting (not converting!) FLI or VIVO or MPEG1 video into an AVI file ! |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
124 Of course only <B>MPlayer</B> can play such files :) And it probably has no |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
125 real life value at all. Rationally : video stream copying can be useful for |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
126 example when only the audio stream has to be encoded (like, uncompressed PCM |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
127 to MP3).</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
128 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
129 <LI><B>Audio stream</B> (option <CODE>-oac copy</CODE>) : straightforward.</LI> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
130 </UL> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
131 </P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
132 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
133 <P><B><A NAME=2.4.3.4>2.4.3.4. Fixing AVIs with broken index</B></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
134 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
135 <P>Easiest thing. We simply copy the video and audio streams, and |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
136 <B>MEncoder</B> generates the index. Of course this cannot fix possible bugs in |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
137 the video and/or audio streams.</P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
138 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
139 <P>Command : <CODE>mencoder input.avi -ovc copy -oac copy -o output.avi</CODE></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
140 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
141 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
142 <P><B><A NAME=2.4.3.5>2.4.3.5. Encoding with the <I>libavcodec</I> codec family</B></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
143 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
144 <P>libavcodec provides simple encoding to a lot of interesting video and audio |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
145 formats (currently its audio codecs are unsupported). You can encode to the |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
146 following codecs :</P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
147 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
148 <P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
149 <UL> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
150 <LI>mjpeg - Motion JPEG</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
151 <LI>h263 - H263</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
152 <LI>h263p - H263 Plus</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
153 <LI>mpeg4 - DivX4</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
154 <LI>msmpeg4 - the old DivX</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
155 <LI>rv10 - an old RealVideo codec</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
156 <LI>mpeg1video - MPEG1 video :)</LI> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
157 </UL> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
158 </P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
159 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
160 <P>The first column contains the codec names that should be passed after the |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
161 <CODE>vcodec</CODE> config, like : <CODE>-lavcopts vcodec=msmpeg4</CODE></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
162 |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
163 <P><B><A NAME=2.4.4>2.4.4. Syntax</B></P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
164 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
165 <P> <CODE>mencoder [options] [input file] [options] ...</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
166 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
167 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
168 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
169 <P>NOTE : for all available options, <B>read the manpage !</B></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
170 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
171 <TABLE BORDER=0> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
172 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
173 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
174 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
175 <I>-o</I> filename</TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
176 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
177 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
178 specify output filename |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
179 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
180 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
181 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
182 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
183 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
184 <I>-x</I> width in pixels</TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
185 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
186 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
187 rescale output video to given pixels width |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
188 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
189 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
190 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
191 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
192 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
193 <I>-y</I> height in pixels</TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
194 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
195 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
196 rescale output video to given pixels height |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
197 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
198 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
199 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
200 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
201 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
202 <I>-sws</I> 0-2</TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
203 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
204 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
205 type of scaling method<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
206 0 - fast bilinear<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
207 1 - bilinear<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
208 2 - bicubic (best quality)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
209 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
210 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
211 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
212 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
213 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
214 <I>-ovc</I> codecname</TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
215 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
216 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
217 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
218 <B>help</B> - get list of available codecs<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
219 <B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
220 <B>divx4</B> - encode to DivX4<BR> |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
221 <B>lavc</B> - encode with a codec from libavcodec<BR> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
222 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
223 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
224 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
225 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
226 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
227 <I>-oac</I> codecname</TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
228 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
229 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
230 Encode with the given codec (codec names are from codecs.conf). Examples:<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
231 <B>help</B> - get list of available codecs<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
232 <B>copy</B> - no encoding, just copy the stream (only from AVI/ASF now)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
233 <B>pcm</B> - encode to uncompressed PCM<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
234 <B>mp3lame</B> - encode to MP3 (using Lame)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
235 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
236 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
237 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
238 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
239 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
240 <I>-divx4opts</I></TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
241 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
242 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
243 If encoding to DivX4, you can specify its parameters here, like:<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
244 <CODE>-divx4opts br=1800:deinterlace:key=250</CODE><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
245 Common options: <B>(for full list, check the manpage!)</B><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
246 <B>help</B> - get help<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
247 <B>br</B>=XXX - specify bitrate in kbit <4-16000> or bit <16001-24000000><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
248 <B>q</B>=XXXX - quality (1-fastest, 5-best - default 5)<BR> |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
249 <B>key</B>=XXXX - keyframe interval<BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
250 </TD> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
251 </TR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
252 <TR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
253 <TD> </TD> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
254 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
255 <I>-lavcopts</I></TD> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
256 <TD> </TD> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
257 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
258 If encoding with libavcodec, you can specify its parameters here, like:<BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
259 <CODE>-lavcopts vcodec=msmpeg4:vbitrate=1800:vhq:keyint=250</CODE><BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
260 Common options: <B>(for full list, check the manpage!)</B><BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
261 <B>help</B> - get help<BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
262 <B>vcodec</B>=XXX - select videocodec (for the full list, see the libavcodec section above)<BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
263 <B>vbitrate</B>=XXX - specify bitrate in kbit <4-16000> or bit <16001-24000000><BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
264 <B>vhq</B> - high quality<BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
265 <B>keyint</B>=XXX - keyframe interval<BR> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
266 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
267 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
268 <TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
269 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
270 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
271 <I>-lameopts</I></TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
272 <TD> </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
273 <TD><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
274 If encoding to MP3 with libmp3lame, you can specify its parameters here, like:<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
275 <CODE>-lameopts q=3</CODE><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
276 <CODE>-lameopts br=192:cbr</CODE><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
277 Common options: <B>(for full list, check the manpage!)</B><BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
278 <B>help</B> - get help<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
279 <B>cbr</B> - select <B>CBR</B> MP3 (default is <B>VBR</B>)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
280 <B>br</B>=XXX - specify bitrate in kbit <0-1024> (this is for <B>CBR</B> only!)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
281 <B>q</B>=XXXX - quality (0-highest, 9-fastest - default 0) (this is for <B>VBR</B> only!)<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
282 </TD> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
283 </TR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
284 </TABLE> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
285 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
286 <P><B><A NAME=2.4.6>2.4.6. Examples</B></P> |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
287 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
288 <P>Using <B>MEncoder</B> is the easiest thing on Earth. See the following :</P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
289 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
290 <P>Encoding from DVD, title 2 :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
291 <CODE> mencoder -dvd 2 -o title2.avi</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
292 |
3879
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
293 <P>The same, but with libavcodec family, MJPEG compression :<BR> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
294 <CODE> mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg</CODE></P> |
ed33540a982b
"updated documentation.html (and new chapter translated in it),
gabucino
parents:
3523
diff
changeset
|
295 |
3523
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
296 <P>Encoding from DVD, title 2, with rescaling :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
297 <CODE> mencoder -dvd 2 -x 640 -y 480 -sws 2 -o title2.avi</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
298 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
299 <P>Encoding from HTTP :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
300 <CODE> mencoder http://mplayer.hq/example.avi -o example.avi</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
301 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
302 <P>Encoding from a pipe :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
303 <CODE> rar p test-SVCD.rar | mencoder -divx4opts br=800 -ofps 24 -pass 1 -- -</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
304 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
305 <P>Encoding multiple *.vob files :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
306 <CODE> cat *.vob | mencoder <options> -</CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
307 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
308 <P>Encoding from tuner (for tuner options <A HREF="documentation.html#2.5">see the TV input section !</A>) :<BR> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
309 <CODE> mencoder -tv on:driver=v4l:width=640:height=480 <options></CODE></P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
310 |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
311 <P>For all available options, <B><I>check the MEncoder man page !</I></B> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
312 <P> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
313 </FONT> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
314 </BODY> |
dadab20dc2b4
began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff
changeset
|
315 </HTML> |