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

Yuan, Feng feng.yuan at intel.com
Thu Jan 10 17:53:51 PST 2013


You can try this patch, there's an definition of FPS_CALCULATION(name) to calculate function framerate.
I normally use it to calculate encode/decode/sink framerates.
For example, if you want check fps of
vaapisink, you can write FPS_CALCULATION (vaapisink) in gst_vaapisink_show_frame
vaapidecode, you can write FPS_CALCULATION (vaapisink) in gst_vaapidecode_step just before gst_pad_push

only vaapisink may drop frame, and if this happened, usually there will be GST_WARNING log output from <GstBaseSink>

Thanks,
Wind

From: libva-bounces+feng.yuan=intel.com at lists.freedesktop.org [mailto:libva-bounces+feng.yuan=intel.com at lists.freedesktop.org] On Behalf Of Tay, Boon Wooi
Sent: Thursday, January 10, 2013 6:12 PM
To: libva at lists.freedesktop.org
Subject: [Libva] Measuring fps and frame dropped with gst-vaapi plugins

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

Thanks,
BoonWooi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20130111/ef0f0f7e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-vaapi-fps-calculation-for-debug.patch.tar.bz2
Type: application/octet-stream
Size: 1096 bytes
Desc: 0001-vaapi-fps-calculation-for-debug.patch.tar.bz2
URL: <http://lists.freedesktop.org/archives/libva/attachments/20130111/ef0f0f7e/attachment.obj>


More information about the Libva mailing list