近来使用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
分享到:
相关推荐
ffmpeg.exe能解析的格式:(asx,asf,mpg,wmv,3gp,mp4,mov,avi,flv等) 对ffmpeg.exe无法解析的文件格式(wmv9,rm,rmvb等), 可以先用别的工具(mencoder)转换为avi(ffmpeg能解析的)格式; mencoder.exe;drv...
ffmpeg+mencoder两种视频转换成flv的文件 mencoder转化的好 较占资源 等好用 还有个web中嵌入的播放flv的播放器
NULL 博文链接:https://tw-wangzhengquan.iteye.com/blog/1545256
最新版FFMPEG,支持水印命令,可将多种常见格式视频文件转换为FLV或者其他格式,最新版mencoder,支持将rm,RMVB,WMV转换为AVI,flv或者其他多种格式。亲测通过。
NULL 博文链接:https://shuaigg-babysky.iteye.com/blog/458089
利用ffmpeg和mencoder将不同的视频文件转换为flv格式,并将文件的第一帧生成为图片
mencoder.exe ffmpeg.exe 将视频文件转换成.flv 的两个文件.
flvmdi,flv修复工具,针对ffgpeg+mencoder转化后的问题 程序源码如下 string flv_file = System.IO.Path.ChangeExtension(playFile, ".flv"); string flvmdi = Server.MapPath("../JS/videotool/flvmdi.exe"); //...
mencoder 视频转码 可以转换不同格式的视频。视频编程开发必备利器哦。
提供ffmpeg和mencoder程序,可将常见视频格式(包括rm和rmvb)转换为FLV视频格式。
mencoder视频格式转换+ffmpeg视频截图DEMO 可将任意格式视频转换为flv格式再截取一张图片
有些FLV文件是由FFMPEG、Mencoder转的,Meta Data是损坏的,播放起来很是不方便。FLVMDI(FLV MetaData Injector)是专门用来修复此类FLV文件的工具。 上传文件:flvmdi_with_GUI.rar 文件说明:flvmdi.exe#flvmdi...
这是我做的在线转换程序,不过你需要先安装ffmpeg,mencoder,flvmdi,mediainfo,mpc系列暴风阴影,可以加水印,需要avs。有问题联系我的qq:120442560
可以在线转化flv,转换的格式也比较多,包括rmvb,rm,AVI等
详解java调用ffmpeg转换视频格式为flv 注意:下面的程序是在Linux下运行的,如果在windows下rmvb转换成avi会出现问题,想成功需要...但是有些格式是ffmpeg不能处理的比如rmvb,这样的可以先调用mencoder先把格式转换
,能够将.asf|.flv|.avi|.mpg|.3gp|.mov|.wmv|.rm|.rmvb格式的文件转换成flv格式,里面包含mencoder.exe,mencoder.exe,ffmpeg.exey以及详细的视频格式转换代码,经过测试使用
ffmpeg能解析的格式:(asx,asf,mpg,wmv,mkv,3gp,mp4,mov,avi,flv等),对ffmpeg无法解析的文件格式(wmv9,rm,rmvb等), 可以先用别的工具(mencoder)转换为avi(ffmpeg能解析的)格式.
里面包含mencoder.exe,mencoder.exe,ffmpeg.exey以及详细的视频格式转换代码,经过测试使用
ffmpeg将视频格式进行转换,比如avi转换为flv,一般其他格式转avi用mencoder
在视频方面,它使用MEncoder作为后端,并支持与运用CUDA技术加速移动设备视频转换,充分发挥了MEncoder所提供的丰富特性;在音频方面,它使用MPlayer和Winamp的输入插件和作为解码器,结合各种不同的编码器,能够在...