Mercurial > mplayer.hg
diff DOCS/encoding.html @ 3438:963b39283f48
fixes, and some new stuff. sorry forgot :)
author | gabucino |
---|---|
date | Mon, 10 Dec 2001 17:37:18 +0000 |
parents | 7f06ef6c0168 |
children | 66e418645b67 |
line wrap: on
line diff
--- a/DOCS/encoding.html Mon Dec 10 17:22:52 2001 +0000 +++ b/DOCS/encoding.html Mon Dec 10 17:37:18 2001 +0000 @@ -5,7 +5,7 @@ <P><B><A NAME=2.4>2.4. Encoding with MEncoder</A></B></P> -<P><B><I>Overview</I></B> +<A NAME=2.4.1><P><B><I>Overview</I></B> <P><B>MEncoder</B> (<B>MPlayer</B>'s Movie Encoder) is a simple movie encoder, designed to encode MPlayer-playable movies (<B>AVI/DVD/VCD/VOB/MPG/MOV/VIV/NET</B>) to other MPlayer-playable formats (see @@ -14,7 +14,7 @@ copying abilities. In the future, there will be cropping, resizing filters, and other interesting stuff.</P> -<P><B><I>Compiling</I></B> +<A NAME=2.4.2><P><B><I>Compiling</I></B> <UL> <LI>read <B>MPlayer</B>'s compilation instructions, it contains info about how to install <I>libdvdread</I> for <B>DVD</B> support, etc.</LI> @@ -43,7 +43,7 @@ <P>You are ready. As you probably know, other encoding tools need the <I>avifile</I> library installed. <B>MEncoder</B> doesn't need it at all.</P> -<P><B><I>MEncoder features</I></B> : +<A NAME=2.4.3><P><B><I>MEncoder features</I></B> : <UL> <LI>encoding from the wide range of fileformats and decoders of <B>MPlayer</B></LI> <LI>encoding from <B>V4L compatible TV tuners</B></LI> @@ -51,10 +51,11 @@ <LI>1 or 2 pass <B>DivX4</B> video</LI> <LI><B>VBR</B> MP3 audio</LI> <LI>PCM audio</LI> - <LI>stream copying (only from AVI/ASF now, and CBR audio only)</LI> + <LI>stream copying (CBR audio only)</LI> <LI>input A/V synchronizing (PTS-based, can be disabled with -mc 0 option)</LI> <LI>FPS correction with <CODE>-ofps</CODE> option (useful when encoding 29.97fps VOB to 24fps AVI)</LI> + <LI>movie rescaling</LI> </UL> </P> @@ -67,7 +68,7 @@ </UL> </P> -<P><B><I>Encoding 2-pass DivX4</I></B></P> +<A NAME=2.4.3.1><P><B><I>Encoding 2-pass DivX4</I></B></P> <P>The name comes from the fact that this method encodes the file <I>twice</I>. The first encoding (dubbed <I>pass</I>) creates some temporary files with a @@ -82,11 +83,49 @@ -o movie.avi -pass 1<BR> mencoder -dvd 2 -ovc divx4 -oac mp3lame -divx4opts br=1100 -o movie.avi -pass 2</CODE></P> -<P><B><I>Syntax</I></B></P> +<A NAME=2.4.3.2><P><B><I>Rescaling movies</I></B></P> + +<P>Often the need to resize movie images' size emerges. Its reasons can be many, + examples are decreasing output file size, encoding SVCDs to DivX. Ripped DVDs + are mostly rescaled, for example a 4:3 DVD should be 640x480, especially + when you want it to fit to 1 CD, and have good quality at the same time. + SVCDs have 480x480 size, and their header contains the aspect ratio the + player should use (Ex.: 480x480 + 4:3 = 640x480). However when encoding to + AVI (DivX) files, you have be aware that AVI headers don't store this + value. Thus, the only solution is rescaling.</P> + +<P>The output size is specified with the <CODE>-x</CODE>, and <CODE>-y</CODE> + options. Furthermore, there are 3 rescaling filters in <B>MEncoder</B>, <I>0 + : fast 1 : bilinear</I>, <I>2 : bilinear</I>, <I>bicubic</I> (best quality). + They can be specified with the <CODE>-sws</CODE> option. If not specified, + <B>MEncoder</B> will use 0 : fast bilinear.</P> + +<P>Rescaling is very simple :<BR> +<CODE> mencoder sample-svcd.mpg -divx4opts br=1300 -x 640 -y 480 -sws 2 -o output.avi</CODE></P> + +<A NAME=2.4.3.3><P><B><I>Stream copying</I></B></P> -<P> <CODE>mencoder [options] <input file> [options] ...</P> +<P><B>MEncoder</B> can handle input streams in two ways : <B>encode</B> or + <B>copy</B> them. This section is about <B>copying</B>.</P> -<P><B><I>Available options</I></B></P> +<P> +<UL> + <LI><B>Video stream</B> (option <CODE>-ovc copy</CODE>) : nice stuff can be done :)<BR> + Like, putting (not converting!) FLI or VIVO or MPEG1 video into an AVI file ! + Of course only <B>MPlayer</B> can play such files :) And it probably has no + real life value at all. Rationally : video stream copying can be useful for + example when only the audio stream has to be encoded (like, uncompressed PCM + to MP3).</LI> + + <LI><B>Audio stream</B> (option <CODE>-oac copy</CODE>) : straightforward.</LI> +</UL> +</P> + +<A NAME=2.4.4><P><B><I>Syntax</I></B></P> + +<P> <CODE>mencoder [options] [input file] [options] ...</P> + +<A NAME=2.4.5><P><B><I>Available options</I></B></P> <P>NOTE : for all available options, <B>read the manpage !</B></P> @@ -187,13 +226,16 @@ </TR> </TABLE> -<P><B><I>Examples</I></B></P> +<A NAME=2.4.6><P><B><I>Examples</I></B></P> <P>Using <B>MEncoder</B> is the easiest thing on Earth. See the following :</P> <P>Encoding from DVD, title 2 :<BR> <CODE> mencoder -dvd 2 -o title2.avi</CODE></P> +<P>Encoding from DVD, title 2, with rescaling :<BR> + <CODE> mencoder -dvd 2 -x 640 -y 480 -sws 2 -o title2.avi</CODE></P> + <P>Encoding from HTTP :<BR> <CODE> mencoder http://mplayer.hq/example.avi -o example.avi</CODE></P>