mencoder转flv - python mplayer ffmpeg vp6 - JavaEye技术网站

来源:百度文库 编辑:神马文学网 时间:2024/06/02 06:06:08
mencoder转flv
关键字: 多媒体
近来使用mencoder转码,统一转换成flv格式
本来想在仔细阅读man之前,先总体上感受一下这个大胃的mencoder
google一把后,发现,网络上基本上使用的命令是
mencoder -quiet -oac mp3lame -lameopts abr:br=48 -srate 22050 -afchannels=2 -ovc lavc -vf hqdn3d,scale=320:240 -lavcoptsvcodec=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 availablein 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 andremoves that parameter from the command line if needed.
To your other problems - besides rmvb isn't in the list of supportedvideo formats - I'm not sure if rmvb can be converted so easily withmencoder since it's a streaming container. So I would expect problemsjust like wmv.
But MPG shouldn't be a problem at all. So you should ask yourselfwhat you are missing when you upgrade to rc2. How do you do that? Andwhich version were you using till then and how did you installed thatversion?
新版的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