Video Operators

The following operators can be applied to a video stream:

OperatorTypeDescription
deinterlaceobjectConverts the stream from interlaced to progressive frames.
cropobjectRemoves pixels from an input stream.
scaleobjectResizes an input stream relative to the output stream dimensions.
translateobjectPositions an input stream relative to the output stream dimensions.
rotateobjectRotates an input stream.
opacityobjectSets the opacity of an input stream.
overlayarrayLists the input streams overlaid onto an output stream.

deinterlace

Specifies the method used to deinterlace a video stream`.

MethodDescription
weaveCombines both fields into a frame (60i to 30p).
blendBlends both fields after vertical interpolation to frame height (60i to 30p).
telecineInverse telecine (60i to 24p).
fieldInterpolates both fields (60i to 60p).
westonWeston three field algorithm (60i to 30p).

crop

Removes pixels from the top, bottom, left and right edges of the stored image.

scale

Resizes a video stream relative to the target image dimensions.

PropertyTypeDescription
modeenumResizing mode.
horizontalnumberHorizontal scaling factor. A value of 1.0 represents 100% of the target image width.
verticalnumberVertical scaling factor. A value of 1.0 represents 100% of the target image height.
interpolatorenumResizing interpolator: bilinear, bicubic or lanczos.

The resizing mode specifies the method used to scale the source image to the target image dimensions.

ModeDescription
fillResizes to the target dimensions ignoring the source aspect ratio.
cropPreserves the source image aspect ratio by cropping pixels outside the target dimensions.
maskPreserves the source image aspect ratio by masking any unfilled target pixels.

rotate

Rotates a video stream by the specified angle in degrees.

translate

Positions a video stream relative to the target image dimension.

PropertyTypeDescription
horizontalnumberHorizontal translation factor. A value of 1.0 represents 100% of the target image width.
verticalnumberVertical translation factor. A value of 1.0 represents 100% of the target image height.

opacity

Sets the normalized opacity of a video stream. A value of 1.0 represents 100% opacity.

overlay

Combines multiple video streams. Each element of the array supports the following properties:

PropertyTypeDescription
namestringIdentifies the input stream.
propertiesobjectInput stream configuration properties.
filterarrayList of filters applied to the input stream.