VideoEncoder.allocateOutputFrame

Helper function that allocates a buffer to hold an encoded video frame for encoder's current #GstVideoCodecState. Subclass should already have configured video state and set src pad caps.

The buffer allocated here is owned by the frame and you should only keep references to the frame, not the buffer.

class VideoEncoder
allocateOutputFrame

Parameters

frame gstvideo.video_codec_frame.VideoCodecFrame

a #GstVideoCodecFrame

size size_t

size of the buffer

Return Value

Type: gst.types.FlowReturn

gst.types.FlowReturn.Ok if an output buffer could be allocated