[MPlayer-users] Re: best encoder ?
Rémi Guyomarch
rguyom at pobox.com
Mon Jul 22 11:04:01 CEST 2002
On Mon, Jul 22, 2002 at 10:31:20AM +0200, Karsten Müller wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi Folks,
>
> I have a (not so) simple question:
> I want to convert my VDR recordings (MPEG PES streams) to divx.
>
> What's the best encoder to do that ?
ff's libavcodec without any doubt.
But it requires some tuning. Here's what I use for MPEG-2 -> DivX :
[Note that I use libvcodec's internal 2-pass mode (vpass=x) instead of
the old DivX4-inspired external 2-pass mode (-pass x)]
INFILE="foo.mpg"
OUTFILE="bar.avi"
FILTERS="-vop scale=624:384,crop=654:572:33:2 -sws 9"
VBITRATE="890"
ABITRATE="96"
MISC=""
AUDIO0="-oac mp3lame -lameopts br=$ABITRATE:vbr=3:q=0"
AUDIO1="-oac copy"
AUDIO2="-oac copy"
VIDEOCOMMON="-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$VBITRATE:vhq:vrc_strategy=1:vqmin=2:vlelim=4:vcelim=7:v4mv:vqcomp=0.7"
VIDEO1="$VIDEOCOMMON:vqblur=0.3:vpass=1"
VIDEO2="$VIDEOCOMMON:vpass=2"
rm -f frameno.avi lavc_stats.txt
$ENCODER -ovc frameno $AUDIO0 $FILTERS $MISC -o frameno.avi $INFILE
$ENCODER $VIDEO1 $AUDIO1 $FILTERS $MISC -o /dev/null $INFILE
$ENCODER $VIDEO2 $AUDIO2 $FILTERS $MISC -o $OUTFILE $INFILE
--
Rémi
More information about the MPlayer-users
mailing list