[MEncoder-users] WMV to FLV Question

dragon at gamerstube.com dragon at gamerstube.com
Thu May 15 14:42:08 CEST 2008


I am trying to build a high quality video hosting site and are having
issues with WMV3 and a few other file types. The script I purchased uses
the below commands to encode the videos, but from reading here I know that
there are changes I need to make to suit my needs - I am just not sure
what changes.

The biggest problem right now is the laggy playback of encoded WMV files.
>From reading here it appears that I need to control the frames per second
down to 25 on encoding this file type, but I cant seem to figure out how.

I am resizing the videos as suggested by a larger high quality video
hosting site.

here are my config settings:
$config['vbitrate'] = 3168;
$config['vresize_x'] = 1280;
$config['vresize_y'] = 720;


The Script(first part applies only right now since I am resizing):
if($config[vresize] == 1) {$encodecommand="$config[mencoder]
$config[vdodir]/$vdoname -o $config[flvdodir]/".$vid."x.flv -of lavf -oac
mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts
vcodec=flv:vbitrate=$config[vbitrate]:mbd=2:mv0:trell:v4mv:keyint=10:cbp:last_pred=3
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -vop
scale=$config[vresize_x]:$config[vresize_y] -srate $config[sbitrate]";}

else {$encodecommand="$config[mencoder] $config[vdodir]/$vdoname -o
$config[flvdodir]/".$vid."x.flv -of lavf -oac mp3lame -lameopts abr:br=56
-ovc lavc -lavcopts
vcodec=flv:vbitrate=$config[vbitrate]:mbd=2:mv0:trell:v4mv:keyint=10:cbp:last_pred=3
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -srate
$config[sbitrate]";}


Thanks for any help
-Joe

p.s. not entirely sure how to reply to replies here... my apologies.




More information about the MEncoder-users mailing list