

For example, in the left third, middle third and right third of the input box, we can use the command:įfmpeg -i input -vf crop=iw/3:ih:0:0 outputįfmpeg -i input -vf crop=iw/3:ih:iw/3:0 outputįfmpeg -i input -vf crop=iw/3:ih:iw/3*2:0 output (1) 裁剪 100x100 的区域,起点为(12,34).The value of x can be obtained from the value of y and vice versa.


Crop the width and height of the input video frame from the position indicated by the x and y values to the specified width and height.Course learning address: įFmpeg video multi-grid processing FFmpeg filter Video crop.
