SinkElement

Inheritance diagram of SinkElement

SinkElement inheritance diagram

class savant.config.schema.SinkElement(element='???', element_type=None, version='v1', name=None, properties=<factory>, egress_frame_filter=PyFunc(module='savant.base.frame_filter', class_name='DefaultEgressFilter', kwargs=None, dev_mode=False))

A pipeline element that produces pipeline output.

element: str = '???'

Either a Gstreamer element name (gst factory name) or a short notation string to define element, element_type and version at the same time.

Short notation string format is <element>@<element_type>:<version>

Note

Version is v1 by default.

Examples.

The following three element definitions are equivalent:

- element: nvinfer
  element_type: attribute_model
  version: v1

...

- element: nvinfer@attribute_model:v1

...

- element: nvinfer@attribute_model

Some elements might not have subtypes, in this case version in the short notation can be defined immediately after the element:

- element: drawbin:v1
  location: /data/frames/image_%06d.jpg

Warning

Mixing short notation and full definition is not supported.

Examples of unsupported notation mixing:

- element: nvinfer@attribute_model
  version: v1

...

- element: nvinfer:v1
  element_type: attribute_model

...

- element: nvinfer
  element_type: attribute_model:v1
element_type: str | None = None

Element type/subtype, can be defined as a substring of the element.

For example, detector in

- element: nvinfer@detector
property full_name

Full element name.

name: str | None = None

GstElement instance name. Arbitrary string, useful for identifying pipeline elements.

version: str = 'v1'

Element version, can be defined as a substring of the element.

For example, v1 in

- element: nvinfer@detector:v1
properties: Dict[str, Any]

GstElement properties.

egress_frame_filter: PyFunc = PyFunc(module='savant.base.frame_filter', class_name='DefaultEgressFilter', kwargs=None, dev_mode=False)

Frame filter for egress frames.