[MPlayer-users] How can I convert avi to flv using mplayer?

info at danielerossi.net info at danielerossi.net
Wed Oct 31 22:33:10 CET 2007



Dominik 'Rathann' Mierzejewski wrote:
> On Wednesday, 31 October 2007 at 18:14, Paul Minelly wrote:
>   
>> Hi all,
>>
>> How can I convert *.avi file to *.flv using mplayer?
>>     
>
> You can't.
>
>   
>> Is there any way to do it using mplayer but not mencoder?
>>     
>
> Of course not. Why would you use a player to convert anything?
> A player is for playback, not for conversion.
>
> Regards,
> R.
>
>   
but if you like with mencoder I suggest this command line (what I use):

mencoder %1 -ofps 15 -o %1.flv -of lavf -lavfopts 
i_certify_that_my_video_stream_does_not_use_b_frames /
-oac lavc -lavcopts acodec=mp3:abitrate=48 -srate 22050 -ovc lavc 
-lavcopts /
vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=/
0:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2 -vf scale=1024:768
flvtool2.exe u %1.flv

1. Substitute %1 with inputfile.
2. you may play around with some option, minimum is
mencoder -o test.flv -of lavf -lavfopts 
i_certify_that_my_video_stream_does_not_use_b_frames input.avi/
 -oac lavc -lavcopts acodec=mp3 -ovc lavc -lavcopts vcodec=flv

Hope that helps.
PS. In FFmpeg the command line is much simpler!



More information about the MPlayer-users mailing list