FPS via GStreamer

Hello everyone.
Is it possible to show the number of FPS on the OpenGL window when streaming on rtp?
The command I run on the host PC is the following:

gst-launch-1.0 -v udpsrc port=5005 caps = “application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96” ! rtph264depay ! decodebin ! videoconvert ! autovideosink


You can run with fpsdisplaysink like:

... ! videoconvert ! fpsdisplaysink text-overlay=0 video-sink=autovideosink -v

Thanks for the reply.
I have already tried to use the command with “fpsdisplaysink” but I get the following error:
WARNING: erroneous pipeline: no element “fpsdisplaysink”

How I can solve?

It is in plugins-bad package.

By default it is installed. A bit strange it disappears. You may try to re-install it through apt install.

I managed to install the missing plugin, but now the error is this:

WARNING: erroneous pipeline: could not link autovideosink0 to fpsdisplaysink0

By removing autovideosinkand adding fpsdisplaysink I can see the following information in the window: rendered, dropped, current and average.

Unfortunately I still can’t see any information on the current fps.


/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendere
d: 127, dropped: 0, current: 30.00, average: 30.45

Do you see this print? it shows current fps and average fps.

What fps does the current and average information refer to?
From what I understand there are 3 types of fps: input, output and network.

current shows fps of current 500ms. average shows fps from beginning.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.