Mercurial > mplayer.hg
comparison DOCS/encoding.html @ 3912:7510f142e7aa
stuff.
| author | gabucino |
|---|---|
| date | Mon, 31 Dec 2001 01:12:55 +0000 |
| parents | 686ba9f9393c |
| children | 569c256d3291 |
comparison
equal
deleted
inserted
replaced
| 3911:0c1e7b47d35c | 3912:7510f142e7aa |
|---|---|
| 99 SVCDs have 480x480 size, and their header contains the aspect ratio the | 99 SVCDs have 480x480 size, and their header contains the aspect ratio the |
| 100 player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to | 100 player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to |
| 101 AVI (DivX) files, you have be aware that AVI headers don't store this | 101 AVI (DivX) files, you have be aware that AVI headers don't store this |
| 102 value. Thus, the only solution is rescaling.</P> | 102 value. Thus, the only solution is rescaling.</P> |
| 103 | 103 |
| 104 <P><B>MEncoder can scale input images if they come in YV12 format (for example: | 104 <P><B>MEncoder</B> can scale input images if they come in YV12 format (for example: |
| 105 ffdivx, odivx drivers, or mpeg1/2). The output size is specified with the | 105 ffdivx, odivx drivers, or mpeg1/2). The output size is specified with the |
| 106 <CODE>-x</CODE>, and <CODE>-y</CODE> options. Furthermore, there are 3 | 106 <CODE>-x</CODE>, and <CODE>-y</CODE> options. Furthermore, there are 3 |
| 107 rescaling filters in <B>MEncoder</B>, <I>0 | 107 rescaling filters in <B>MEncoder</B>, <I>0 |
| 108 : fast bilinear</I>, <I>1 : bilinear</I>, <I>2 : bicubic</I> (best quality). | 108 : fast bilinear</I>, <I>1 : bilinear</I>, <I>2 : bicubic</I> (best quality). |
| 109 They can be specified with the <CODE>-sws</CODE> option. If not specified, | 109 They can be specified with the <CODE>-sws</CODE> option. If not specified, |
| 139 <P>Command : <CODE>mencoder input.avi -ovc copy -oac copy -o output.avi</CODE></P> | 139 <P>Command : <CODE>mencoder input.avi -ovc copy -oac copy -o output.avi</CODE></P> |
| 140 | 140 |
| 141 | 141 |
| 142 <P><B><A NAME=2.4.3.5>2.4.3.5. Encoding with the <I>libavcodec</I> codec family</B></P> | 142 <P><B><A NAME=2.4.3.5>2.4.3.5. Encoding with the <I>libavcodec</I> codec family</B></P> |
| 143 | 143 |
| 144 <P>libavcodec provides simple encoding to a lot of interesting video and audio | 144 <P><A HREF="codecs.html#2.2.1.2">libavcodec</A> also provides simple encoding |
| 145 formats (currently its audio codecs are unsupported). You can encode to the | 145 to a lot of interesting video and audio formats (currently its audio codecs are |
| 146 following codecs :</P> | 146 unsupported by us). Currently you can encode to the following codecs :</P> |
| 147 | 147 |
| 148 <P> | 148 <P> |
| 149 <UL> | 149 <UL> |
| 150 <LI>mjpeg - Motion JPEG</LI> | 150 <LI>mjpeg - Motion JPEG</LI> |
| 151 <LI>h263 - H263</LI> | 151 <LI>h263 - H263</LI> |
| 158 </P> | 158 </P> |
| 159 | 159 |
| 160 <P>The first column contains the codec names that should be passed after the | 160 <P>The first column contains the codec names that should be passed after the |
| 161 <CODE>vcodec</CODE> config, like : <CODE>-lavcopts vcodec=msmpeg4</CODE></P> | 161 <CODE>vcodec</CODE> config, like : <CODE>-lavcopts vcodec=msmpeg4</CODE></P> |
| 162 | 162 |
| 163 <P>An example, with MJPEG compression :<BR> | |
| 164 <CODE> mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg -ffourcc mjpg</CODE></P> | |
| 165 | |
| 163 <P><B><A NAME=2.4.4>2.4.4. Syntax</B></P> | 166 <P><B><A NAME=2.4.4>2.4.4. Syntax</B></P> |
| 164 | 167 |
| 165 <P> <CODE>mencoder [options] [input file] [options] ...</P> | 168 <P> <CODE>mencoder [options] [input file] [options] ...</P> |
| 166 | 169 |
| 167 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P> | 170 <P><B><A NAME=2.4.5>2.4.5. Available options</B></P> |
