The #GstVideoEncoder:qos property will enable the Quality-of-Service features of the encoder which gather statistics about the real-time performance of the downstream elements. If enabled, subclasses can use gstvideo.video_encoder.VideoEncoder.getMaxEncodeTime to check if input frames are already late and drop them right away to give a chance to the pipeline to catch up.
This base class is for video encoders turning raw video into encoded video data.
GstVideoEncoder and subclass should cooperate as follows.
Configuration
Data processing
Shutdown phase
Subclass is responsible for providing pad template caps for source and sink pads. The pads need to be named "sink" and "src". It should also be able to provide fixed src pad caps in @getcaps by the time it calls @gst_video_encoder_finish_frame.
Things that subclass need to take care of: