Kms.EncoderEncoders reads pixel data from a Crtc and output it in a suitable format for a Connector.
The Linux documentation says that exposing encoders to user-space was a design mistake. With the newer atomic API, you can use Connector.crtc_id to get the CRTC directly.