GstBase.BaseParseClass

Fields

Name

Type

Access

Description

convert

object

r

Optional. Convert between formats.

detect

object

r

Optional. Called until it doesn’t return Gst.FlowReturn.OK anymore for the first buffers. Can be used by the subclass to detect the stream format.

get_sink_caps

object

r

Optional. Allows the subclass to do its own sink get caps if needed.

handle_frame

object

r

Parses the input data into valid frames as defined by subclass which should be passed to GstBase.BaseParse.finish_frame(). The frame’s input buffer is guaranteed writable, whereas the input frame ownership is held by caller (so subclass should make a copy if it needs to hang on). Input buffer (data) is provided by baseclass with as much metadata set as possible by baseclass according to upstream information and/or subclass settings, though subclass may still set buffer timestamp and duration if desired.

parent_class

Gst.ElementClass

r

the parent class

pre_push_frame

object

r

Optional. Called just prior to pushing a frame (after any pending events have been sent) to give subclass a chance to perform additional actions at this time (e.g. tag sending) or to decide whether this buffer should be dropped or not (e.g. custom segment clipping).

set_sink_caps

object

r

Optional. Allows the subclass to be notified of the actual caps set.

sink_event

object

r

Optional. Event handler on the sink pad. This function should chain up to the parent implementation to let the default handler run.

sink_query

object

r

Optional. Query handler on the sink pad. This function should chain up to the parent implementation to let the default handler run

src_event

object

r

Optional. Event handler on the source pad. Should chain up to the parent to let the default handler run.

src_query

object

r

Optional. Query handler on the source pad. Should chain up to the parent to let the default handler run

start

object

r

Optional. Called when the element starts processing. Allows opening external resources.

stop

object

r

Optional. Called when the element stops processing. Allows closing external resources.

Methods

None

Details

class GstBase.BaseParseClass

Subclasses can override any of the available virtual methods or not, as needed. At minimum handle_frame needs to be overridden.