VideoEncoder.allocateOutputBuffer

gst.buffer.Buffer allocateOutputBuffer(size_t size)

Helper function that allocates a buffer to hold an encoded video frame for encoder's current #GstVideoCodecState.

Parameters

sizesize of the buffer

Returns

allocated buffer