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
关键字: 多媒体
近来使用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
mencoder转flv - python mplayer ffmpeg vp6 - JavaEye技术网站
python包包收集 - shake863 - JavaEye技术网站
python类型转换、数值操作 - canofy - JavaEye技术网站
Python 数据库开发 - 天生我材必有用,千金散尽还复来 - JavaEye技术网站
FLV文件结构解析 - noahgenius 战斗的事业 - JavaEye技术网站
卡布奇诺 - JavaEye技术网站
JSTL使用 - - JavaEye技术网站
enum用法 - - JavaEye技术网站
ant 安装 - - JavaEye技术网站
CR,LF回车和换行(转) - Null - JavaEye技术网站
代码重构阅读心得[转] - fhqllt - JavaEye技术网站
哈佛大学凌晨四点半的景象[转] - - JavaEye技术网站
代码重构阅读心得[转] - fhqllt - JavaEye技术网站
Eclipse编码格式修改(转) - - JavaEye技术网站
<转> Office技巧集锦 - laorer - JavaEye技术网站
【转】SQL模糊查询 - 柏拉图的永恒 - JavaEye技术网站
[转]实现业务系统中的用户权限管理- JavaEye技术网站
负载均衡技术 - - JavaEye技术网站
Hibernate 参数设置一览表 - scenery_86 - JavaEye技术网站
改变input属性 - laiseeme - JavaEye技术网站
Android SDK安装 - oxen - JavaEye技术网站
linux之iptables - piaoling - JavaEye技术网站
html文本编辑器 - liyunqiangyq - JavaEye技术网站
Command命令模式 - smartwgd - JavaEye技术网站