[MEncoder-users] Flashvideo for YouTube using mencoder

Rich Felker dalias at aerifal.cx
Fri Feb 22 06:35:47 CET 2008


On Fri, Feb 22, 2008 at 05:53:36AM +0100, Ben wrote:
> Hi,
> 
> I've been using mencoder to publish video on YouTube quite succesfully
> by uploading FLV files under 350 kbit/s so that YouTube does not convert them.
> I'm just posting here what I think works really well, and would like to
> improve quality further if possible.
> 
> My source is usually a HuffYUV lossless avi created using ffdshow, both
> video and audio have already been filtered and resized/scaled/resampled,
> so basically I only want the best transfer/conversion to FLV1, and for that
> I prefer to use mencoder.
> 
> Here's an example encode command:
> 
> mencoder.exe lillydave.avi -o lillydave.flv
> -mc 0 -ofps 29.97 -srate 44100
              ^^^^^
This is incorrect. The correct value is 30000/1001.

> -oac mp3lame -lameopts vbr=2:q=8:aq=0:mode=1:lowpassfreq=16000
> -ovc lavc -of lavf -lavfopts format=flv -lavcopts
> vcodec=flv:vbitrate=261:keyint=148:
> mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2
> 
> The result of which was; http://youtube.com/watch?v=DYbibozTnWk
> I prefer to use 24 or 25 frames/sec, but in this example I have maintained
> framerate all the way to the flv, and the original was 29.970 fps.

30000/1001.

Rich



More information about the MEncoder-users mailing list