Is there a way to change the frequency of payload generation interval in deepstream 5.0?

• Hardware Platform (Jetson / GPU)
Jetson Xavier NX
• DeepStream Version
DeepStream 5.0
• JetPack Version (valid for Jetson only)
• TensorRT Version

I am developing an application based on deepstream-test5-app of deepstream 5.0.
Is there a way to change the frequency of payload generation interval with deepstream 5.0? Referring to the document, it states that the feature of Payload generation interval is from DS6.0, but I want to know how to configure it in DS5.0.


This looks like a Deepstream related issue. We will move this post to the Deepstream forum.


1 Like

Sorry for the late.
What do you mean payload generation interval? nvmsgconv payload?

@Amycao thank you for your response. Yes, it is about nvmsgconv payload. As the default setting, the payload is generated and sent every 30 frames. However I want to reduce the frequency such as every 300 frames or more.

There one property to control this,
frame-interval : Frame interval at which payload is generated
You can refer to test4 sample:
there one global parameter:
static gint frame_interval = 30;
You can change this as you want.

@Amycao in which file is the parameter written? I searched with frame_interval, but I can’t find…


There is no parameter of frame_interval in deepstream_test4_app.c which is not modified on my environment. Does it work by adding the line in deepstream_test5_app.c? As described at the top, I want to change the frequency in deepstream-test5 app.

You can add it in test5, and add send message per frequency condition.

@Amycao I added the line in line 142, run make, and run the program, but it doesn’t change the frequency… If possible, could you show me the complete example of the code? I attached the code I am trying with. Thanks,

deepstream_test5_app_main.c (35.6 KB)

You can refer to test4 sample, function osd_sink_pad_buffer_probe, line
if (is_first_object && !(frame_number % frame_interval)) {
modify in test5 sample, function bbox_generated_probe_after_analytics accordingly.

1 Like

@Amycao thank you so much for your support. I will try.

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