Video Source Rectangle Region
rect
By default, the entire video is used as the area for processing. The rect parameter selects a sub-region of the source video to use for processing before applying other resize operations.
The value for rect is four integers or relative values representing the starting coordinates of x and y and the width and height, all separated by commas.
x: Accepts either an integer, float, orleft,center, andrightoptions.leftis equivalent to0,centeris equivalent to half of the difference of the video width minus therectwidth, andrightis the difference between the video width minus therectwidth.0.5positions the left edge of the rectangle at the center of the video.y: Accepts either an integer, float, ortop,middle, andbottomoptions.topis equivalent to0,middleis equivalent to the half the difference of the video height minus therectheight, andbottomis equivalent to the difference of the video height minus therectheight.0.5positions the top edge of the rectangle at the center of the video.w: can take either an integer (ex: 500) representing the pixel width, a float (ex:0.5) representing the scalar width, orfull, which is equivalent to the full width of the video.h: can take either an integer (ex: 500) representing the pixel height, a float (ex:0.5) representing the scalar height, orfull, which is equivalent to the full height of the video.