滤镜简述
crop
官网链接 => FFmpeg Filters Documentation
crop滤镜可以对视频进行裁剪,并且这个滤镜可以接受一些变量比如时间和帧数,这样我们实现动态裁剪,从而实现一些特效。
滤镜使用
参数
out_w <string> ..FV.....T. set the width crop area expression (default "iw")
w <string> ..FV.....T. set the width crop area expression (default "iw")
out_h <string> ..FV.....T. set the height crop area expression (default "ih")
h <string> ..FV.....T. set the height crop area expression (default "ih")
x <string> ..FV.....T. set the x crop area expression (default "(in_w-out_w)/2")
y <string> ..FV.....T. set the y crop area expression (default "(in_h-out_h)/2")