crop=W:H:X:Y
参数说明
- w: the width of the output video
- h: the height of the output video
- x: the horizontal position from where to begin cropping, starting from the left (with the absolute left margin being 0). defaults to the center
(iw-ow)/2
- y: the vertical position from where to begin cropping, starting from the top of the video (the absolute top being 0). defaults to the center
(ih-oh)/2
- other variables:
- t: the timestamp expressed in seconds
- n: the number of input frame, starting from 0;
- a: same as iw/ih
命令用例
注意:输入必须是视频文件,不能是图片文件。
- 静态剪切某个位置
# crop in center 100*100 pixel
ffplay -i input.mp4 -vf "crop=100:100"