How to link fpsdisplaysink and fakesink in C-code

I can run the follow command well by using terminal:gst-launch-1.0 -v nvarguscamerasrc sensor-id=1 ! ‘video/x-raw(memory:NVMM),width=4000,height=3000,framerate=25/1’ ! tee name=t ! queue ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 t. ! queue ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 t. ! queue ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 t. ! queue ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0
It run well and the pipeline is as the follow figure :


But after I build and run the pipeline by using C-codem,the fakesink was change to autovideosink,but I didn’t create this plug-in(autovideosink) in the code,Is there something bug with my code?

verify_version.tar (820 KB)

Hi,
Please check if this sample helps:
frame rate - Display FPS in Gstreamer's C source - Stack Overflow

1 Like

Hello,DaneLL
It is a problem when using fakesink with fpsdisplaysink.

I used appsink instead of fpsdisplaysink to complete the verification.

1 Like

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