`
pypy
  • 浏览: 90604 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

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......." no longer available in new version of mencoder......
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



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics