Deepstream-app FPS perf data for H264 and MP4 video file

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson AGX
• DeepStream Version v5.1
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) question

Using the same deepstream-app with the same configuration files, the FPS performance data shown by deepstream-app looks different for MP4 file and H264 file.

For MP4 file, the FPS hovers around 30++ fps.
**PERF: FPS 0 (Avg)
**PERF: 46.14 (45.33)
**PERF: 30.00 (33.73)
**PERF: 30.00 (32.12)
**PERF: 30.00 (31.48)
**PERF: 30.00 (31.14)
**PERF: 30.00 (30.92)
**PERF: 30.00 (30.78)
**PERF: 30.00 (30.67)
**PERF: 30.00 (30.59)
**PERF: 30.00 (30.55)
**PERF: 30.66 (30.49)
**PERF: 30.05 (30.45)
**PERF: 29.93 (30.46)
**PERF: 30.00 (30.43)
**PERF: 29.37 (30.35)
**PERF: 30.00 (30.33)
**PERF: 30.00 (30.31)
**PERF: 30.00 (30.29)
**PERF: 30.00 (30.28)
**PERF: 30.00 (30.26)

However, for H264 file, the FPS keep on increasing and showing 3-digits range.
**PERF: FPS 0 (Avg)
**PERF: 45.79 (45.39)
**PERF: 29.01 (32.78)
**PERF: 72.05 (49.92)
**PERF: 218.03 (100.85)
**PERF: 218.23 (128.09)
**PERF: 219.31 (145.39)
**PERF: 226.19 (158.22)
**PERF: 246.99 (170.37)
**PERF: 268.22 (182.13)
**PERF: 270.48 (191.58)
**PERF: 269.29 (199.19)
**PERF: 267.00 (205.19)
**PERF: 268.41 (210.29)
**PERF: 268.56 (214.70)
**PERF: 259.53 (217.80)

Is it because the FPS perf calculation in deepstream-app is not compatible for H264 file?

Hi,
The deviation looks to be from timestamp information. In h264 stream, it does no contain timestamp and frames are processed continuously. Could you set sync=false to the sinks and check again? You can set the property in config file.

I have tried setting the sync=0 in the [sink] group as below but still the FPS keeps on increasing and showing 3-digit range.

[sink0]
enable=1
#1-fakesink 2-EGL
type=1
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

**PERF: FPS 0 (Avg)
**PERF: 188.18 (185.73)
**PERF: 218.92 (211.29)
**PERF: 218.25 (214.63)
**PERF: 220.29 (216.25)
**PERF: 240.93 (222.09)
**PERF: 258.24 (228.78)
**PERF: 270.40 (235.48)

Hi,
If you would like to render in fixed framerate, we would suggest mux the h264 stream into mp4 or mkv file, so that it has timestamp information.

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