How to get stream videoquality?

My bot has a function to guide live recognition to chat when it goes live.

Then we want to include the graphic quality that the streamer can provide.
Precisely, with transcoding.