Search code examples
androidvideo-streaminggstreamerframe-rate

fpsdisplaysink not working in Android


I had a video stream sever which is capable of capturing the video frames through camera using rtp.I had my android mobile as the client end and able to stream the output through the following pipeline:

udpsrc port=5004 ! application/x-rtp, clock-rate=90000, encoding-name=(string)H264, payload=96 ! queue ! rtph264depay ! h264parse ! decodebin ! autovideosink

However if i replace autovideosink with fpsdisplysink to check the framerate,it throws error.

Error: Unable to build pipeline:no element "fpsdisplaysink".

Is there anyother way to display the frame rate?

Here i'll be using gstreamer-1.0 version for streaming.


Solution

  • fpsdisplaysink element is working fine now,as i mis-spelled the PLUGIN name in Android makefile.Instead of GSTREAMER_PLUGINS_EFFECTS we added the name as GSTREAMER_PLUGINS_EFFECT.