[MPlayer-users] encoding for windows

Sten Eriksson sten at uppsala.se
Sun Apr 14 12:35:02 CEST 2002


Certron DiSoni wrote:
...
> can someone please tell me what I need to do? what codec to
> use, what fps, what size, bitrate, audio, any other
> options.....
> 
> i have done w/ cbr mp3, and ofps 24 and they haven't
> worked. the main feature of mencoder is speed and dvd - to
> - divx direct encoding. but, if I can't play on windows,
> then it is less useful. transcode has made good encodes for
> me, but it is not as fast.
> 
> this is a sample line:
> 
> for i in 1 2
> do
> mencoder -dvd 1 -x 640 -y 272 -ovc divx4 -divx4opts
> br=400:q=4:min_quant=0:max_quant=28 -oac mp3lame -lameopts
> cbr:br=128:mode=0 -sws 2 -pass $i -o outfile.avi
> done

Are you sure that you have the latest DivX on your windows-machine? 
(Download and install the latest DivX stuff from <http://www.divx.com/>)

I use the "lavc" codec, this requires ffmpeg:s libavcodec

1. Get a CVS-snapshot of ffmpeg, example:
    $ mkdir anoncvs ; cd anoncvs
    $ cvs -d 
:pserver:anonymous at cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login
    $ cvs -z3 
:pserver:anonymous at cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg

2. Copy the "libavcodec" directory contents into the "libavcodec" 
directory that the mplayer source-distribution has.

3. Configure as usual, check for "#define USE_LIBAVCODEC 1" in config.h


No 2-pass coding should be needed, it just slows things down. Here is 
how I produce DivX4 movies:

$ mencoder
     -ovc lavc \
     -lavcopts vcodec=mpeg4:vbitrate=1200:vhq:vme=5:vqmin=2 \
     -oac mp3lame \
     -lameopts br=320:q=0:vbr=2:mode=1 \
     -vop scale=560:448 -sws 2 \
     -dvd 1 \
     -o outfile.avi


-- 
    ----
  / Sten Eriksson                 | Mail: Sten at Uppsala.SE
/  Uppsala Kommun, Dataservice   | Tel. work:  +46 18 27 10 64   /
    Kontorsgruppen                | Tel. mob:   +46 709 17 09 44 /
                                                            ----




More information about the MPlayer-users mailing list