Pause recording to a file, start once a spefic event is detected

I have setup a pipeline in Deepstream with python to write output from nvdsosd element.

I have a queue

queue1 = Gst.ElementFactory.make("queue", "queue1")

and then the rest of the elements necessary to record to mp4 file

nvvidconv = Gst.ElementFactory.make("nvvideoconvert", "convertor")
capsfilter1 = Gst.ElementFactory.make("capsfilter", "capsfilter1")
capsfilter1.set_property("caps", 
  Gst.Caps.from_string("video/x-raw(memory:NVMM), format=RGBA"))

and so on.

Is there a simple way I could cache about 3-4 seconds of my stream inside the queue and start / stop recording depending on an event detected upstream (by nvinfer plugin)?

smart video record is a c lib, Smart Video Record — DeepStream 6.1.1 Release documentation, deepstream-testsr is a sample.
need to do python bindings, deepstream_python_apps/bindings at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

I know about this library, I was hoping if there was an easy way to implement it’s functionality using existing plugins for Python.

no this kind of plugin.

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