Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) AGX XAVIER
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only) 4.4
• TensorRT Version 7.0
We are trying to capture an event that occurs in the live stream within 5 seconds duration video using a dynamic pipeline with nvv4l2h264enc, nvvideoconvert and file sink.
In the main pipeline we add a tee that dynamically add a recording pipeline when we call start_recording function .
In the start_recording function we add and link the recording pipeline elements(queue-> nvvideoconvert->capsfilter->nvv4l2h264enc->h264parse->qtmux->filesink), then we call g_timeout_add_seconds to set a 5 seconds timer and stop recording by calling timeout_cb_0 (timer callback).
In the timer callback we add an IDLE probe on the tee src pad and unlink the dynamic pipeline elements by calling unlink_cb (idle probes callback)
In the idle probes callback we send an EOS event and remove, set null state and unref pipeline elements
Unfortunately, we noticed that the memory use increases after saving each video, do you have any advice to avoid this memory leak problem?