AudioEncoder.finishFrame

Collects encoded data and pushes encoded data downstream. Source pad caps must be set when this is called.

If samples < 0, then best estimate is all samples provided to encoder (subclass) so far. buf may be NULL, in which case next number of samples are considered discarded, e.g. as a result of discontinuous transmission, and a discontinuity is marked.

Note that samples received in #GstAudioEncoderClass.handle_frame() may be invalidated by a call to this function.

class AudioEncoder
finishFrame

Parameters

buffer gst.buffer.Buffer

encoded data

samples int

number of samples (per channel) represented by encoded data

Return Value

Type: gst.types.FlowReturn

a #GstFlowReturn that should be escalated to caller (of caller)