Reduce FPS in deepstream test 2

• Jetson Nano B01
• DeepStream 5.1
• JetPack Version 4.5
• TensorRT Version 7.1.3
• Question type
• Requirement details: Read h264 file in deepstream test 2 w/ Python API with a lower frame rate, for example, 1 FPS and not 20-30 FPS as default

I tried to add a sleep time in osd_sink_pad_buffer_probe but reports:

Warning: gst-core-error-quark: A lot of buffers are being dropped. (13): gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstEglGlesSink:nvvideo-renderer:
There may be a timestamping problem, or this computer is too slow.
Warning: gst-core-error-quark: A lot of buffers are being dropped. (13): gstbasesink.c(2902): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstEglGlesSink:nvvideo-renderer:
There may be a timestamping problem, or this computer is too slow.

osd_sink_pad_buffer_probe will hold gstbuffer, it is a blocking operation and will block the whole pipeline. You can not do any time consuming operation in the pad probe functions. Probes (gstreamer.freedesktop.org)