mencoder转flv

近来使用mencoder转码,统一转换成flv格式

本来想在仔细阅读man之前,先总体上感受一下这个大胃的mencoder

google一把后,发现,网络上基本上使用的命令是

mencoder -quiet -oac mp3lame -lameopts abr:br=48 -srate 22050 -af channels=2 -ovc lavc -vf hqdn3d,scale=320:240 -lavcopts vcodec=flv:vbitrate=238:mbd=2:trell:turbo:keyint=45 -ofps 12 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames src.avi -o dst.flv

于是验证之,
> that "Unknown suboption
> i_certify_that_my_video_stream_does_not_use_b_frames"

仔细阅读文档

it say "i_cer......." [color=red]no longer available in new version of mencoder[/color]......
Should I remove "i_cer..." from convert.php ?
Could you help me to solve these 2 problem (rmvb and "i_cer....")?

That's right - that lavfopts parameter is obsolet now.
But the script should be able to recognize your mplayer version and removes that parameter from the command line if needed.
To your other problems - besides rmvb isn't in the list of supported video formats - I'm not sure if rmvb can be converted so easily with mencoder since it's a streaming container. So I would expect problems just like wmv.
But MPG shouldn't be a problem at all. So you should ask yourself what you are missing when you upgrade to rc2. How do you do that? And which version were you using till then and how did you installed that version?


新版的mencoder已经不再对 i_certify_that_my_video_stream_does_not_use_b_frames 支持了,(其实从2007年的版本就不再支持了,可能大家用的版本比较老,)建议,升级到最新的版本,

总结:

可用的转码参考命令行如下

mencoder -quiet -oac mp3lame -lameopts abr:br=56 -srate 22050 -af channels=2 -ovc lavc -vf harddup,hqdn3d,scale=176:-3 -lavcopts vcodec=flv:vbitrate=152:mbd=2:trell:v4mv:turbo:keyint=45 -ofps 15 -of lavf src.avi -o src.flv

质量与速度的权衡参考如下

very_hd
"mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2:keyint=45"

hd "mbd=2:trell:v4mv:last_pred=2:dia=-1:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo:keyint=45"

fast
"mbd=2:trell:v4mv:turbo:keyint=45"

old
"mbd=2:trell:turbo:keyint=45"


附上一些找新全资料的地方

http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值