检测FFMPEG中是否支持-vf(closures)

根据FFMPEG文档 ,不再支持旧的裁剪和填充语法:

-croptop尺寸-cropbottom尺寸-cropleft尺寸-cropright尺寸

所有的裁剪选项已被删除。 改用-vf crop = width:height:x:y。

-padtop size -padbottom size -padleft size -padright size -padcolor hex_color

所有的垫选项已被删除。 使用-vf pad = width:height:x:y:color代替。

我正在编写一个FFMPEG简单的包装,我想知道是否有任何直接的方法来检测,如果我应该使用新的-vf语法或不。

我已经通过aptitude安装了最新的ffmpeg包(版本SVN-r0.5.1-4:0.5.1-1ubuntu1),但它似乎还不支持新的语法,所以我不知道该找什么。 ..任何帮助表示赞赏!

这可能就足够了,但是我不确定。 用ffmpeg 0.6.1,我得到了

 $ ffmpeg -h 2>&1 | grep crop -croptop size set top crop band size (in pixels) -cropbottom size set bottom crop band size (in pixels) -cropleft size set left crop band size (in pixels) -cropright size set right crop band size (in pixels) 

用ffmpeg git-8cf9a09,我得到了

 $ ffmpeg -h 2>&1 | grep crop -croptop size Removed, use the crop filter instead -cropbottom size Removed, use the crop filter instead -cropleft size Removed, use the crop filter instead -cropright size Removed, use the crop filter instead 

您最好在ffmpeg用户邮件列表上询问。