Home > Technology > 使用批处理转换FLV

使用批处理转换FLV

Sat, 02 May 2009 02:11:56 +0800

经常有一些电影,要转换成FLV,以在MP4查看(或者其它原因,如大小),所以,写了个脚本进行转换。

前提有mencoder,这在mplayer的官网有下载。

配置好mencoder,使得在CMD方式下可以转换。

再使用以下BAT处理文件进行批量转换。

SET OPS=-of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=200:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:dia=-1:cmp=6:vb_strategy=1 -vf scale=320:240 -ofps 12 -srate 22050
FOR %%i IN (*.rmvb *.avi) do (mencoder %%i -o %%i.flv %OPS%)

OPS变量是mencoder的转换参数。详情参考mencoder的说明即可

Hots
评论
发表评论:


  [TIPS:首次发表评论的朋友,需要验证]
Tags
Recent Post
Recent Comments
Links
Copyright Notes
You can reship all of these articles without permission but MUST mark the original link in your post. Please contact with me() if u have advice or other arrangements.
Copyright©2007-2011 lewphee.com All rights reserved.