Skip to content

vcrop

Video crop

Register name used to load filter: vcrop
This filter is not checked during graph resolution and needs explicit loading.
Filters of this class can connect to each-other.

This filter is used to crop raw video data.

Options

wnd (str): size of output to crop, indicated as TxLxWxH. If % is indicated after a number, the value is in percent of the source width (for L and W) or height (for T and H). An absolute offset (+x, -x) can be added after percent
copy (bool, default: false): copy the source pixels. By default the filter will try to forward crop frames by adjusting offsets and strides of the source if possible (window contained in frame)
round (enum, default: up): adjust dimension to be a multiple of 2
up: up rounding
down: down rounding
allup: up rounding on formats that do not require it (RGB, YUV444)
alldown: down rounding on formats that do not require it (RGB, YUV444)