Which is the better way of video storage in jetson

Hi,
Please try like:

        if frame_number == 300:
            valve1.set_property('drop', True)
        if frame_number == 450 :
            valve1.set_property('drop', False)

It may not work properly to set the property for every frame.

Case 1: Set drop = False by default, and

inside function tried your suggestion,

if frame_number == 300:
valve1.set_property(‘drop’, True)
if frame_number == 450 :
valve1.set_property(‘drop’, False)

but only 300th frame is skipping. after 300th frame its again started to store. I want it like, if i set the property to “True” in spefic frame then it should stay “True” till i change it to false.

Hi,
It seems like the behavior is different in python. Could you try like this:
Not able to resume data flow in pipeline after valve plugin is set to False in a timer call back

To register a timeout callback and set the property. It works in C and please try python.

i have changed pipeline order based on ur above reference,

if frame_number == 400:
valve1.set_property(‘drop’, True)
if frame_number == 600:
valve1.set_property(‘drop’, False)

now the frames are dropped after 400, but not resuming again.

Hi,
From the results, valve plugin may not work as expected. One more thing we can try is to drop the frames in prob function like:
DeepStream SDK FAQ - #2 by ChrisDing

6. Use GST_PAD_PROBE_DROP macro to drop the buffer in the attached probe.

Please try this method and see if it works.

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