FPS in Deepstream Test Apps

Continuing the discussion from FPS in test apps.:

• Hardware Platform (Jetson / GPU) Tesla P4
• DeepStream Version 5.1

@DaneLLL Hi I was looking out for adding FPS display for deepstream test apps that are in c++ and came across the below post and got the solution working and fps is displayed in the terminal log

Output in the terminal

*************************************************
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 20, dropped: 0, current: 39.67, average: 39.67
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 40, dropped: 0, current: 38.32, average: 38.98
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 58, dropped: 0, current: 34.70, average: 37.54
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 77, dropped: 0, current: 36.09, average: 37.18
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 97, dropped: 0, current: 36.44, average: 37.02
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 117, dropped: 0, current: 38.77, average: 37.31
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75
Fps info: rendered: 134, dropped: 0, current: 33.34, average: 36.75

Here the video, Im running it over a video file that has a fps of 25 frames/sec.

But while I run the video after adding the code block provided in the solution post, the video frames are faster.

Is there any way/method to fix this issue. Please advice

Please set “sync” property of sink plugin to TRUE if you want the pipeline work according to the source video frame rate.

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