[Libva] Measuring fps and frame dropped with gst-vaapi plugins

Gwenole Beauchesne gb.devel at gmail.com
Thu Jan 10 21:26:52 PST 2013


Hi,

2013/1/10 Tay, Boon Wooi <boon.wooi.tay at intel.com>:

> Does anyone know if there is such capability from gstreamer-vaapi?

1. Dropped frames. Programmatically, you usually get a QoS message
(GST_MESSAGE_QOS) at the application level, where you can call
gst_message_parse_qos_stats() to get `processed' and `dropped' fields.

2. FPS. There is no reliable tool for that. On GenX, with X11, you
will render at most at 60 fps by default. So running with sync=false
will cap your results to 60 fps. The other thing is that you would
need to also call vaSyncSurface() / gst_vaapi_surface_sync() before
updating your measurement metrics. Otherwise, that won't be accurate,
VA processing is async.

Regards,
Gwenole.


More information about the Libva mailing list