Gstreamer quality metrics

Does anyone know a way to get quantization scores, or something similar representing the quality of the encoding vs the raw video at a specified bitrate?

By using JM decoder Karsten Suehring

You can get QP values of each frame. Not sure if it is what you need. Other users can share experience.

I think QP values are exactly what I was looking for… but I am trying to work with h265 (omxh265enc)… and it looks like jm decoder is for h264 only. I know I can set a min & max qp… but this doesn’t really tell me what the realtime average qp is. (or even qp per frame) I’ve tried setting a lot of the debug flags, but can’t really find anything relating to the qp.

Here is a tool for h265