Filter

class mcai_worker_sdk.Filter(name, label)

Filter class to define FFmpeg filter that will be applied to the media stream.

Parameters:
  • name (str) – Name of the filter.

  • label (str) – Label associated to the filter (optional).

Note

For more details on available filters please refer to FFmpeg documentation

add_parameters()

Add parameters to a filter.

Keyword Arguments:
  • name1 (str) – value1

  • name2 (str) – value2

Examples

>>> crop_filter = mcai.Filter(name="crop", label="crop_filter")
>>> crop_filter.add_parameters(out_w=10, out_h=20)