I have a deepstream app based on deepstream-test3. I have added logic so that on an object detection new elements are dynamically added to the pipeline to record the video stream to a file.
The pipeline is like this:
rtsp sources ! decodebin ! streammux ! pgie ! tracker ! streamdemux ! queue ! nvvideoconvert ! nvdsosd ! TEE ! queue ! fakesink
On a detection event I add another tee pad to TEE above with the following:
new teepad ! queue ! convert ! caps_filter ! encoder ! parser ! muxer ! filesink
After a 15 second timer this dynamic file saving pipeline is removed.
It seems to be working well but I continually see these messages: NvMapMemCacheMaint:1075334668 failed  ?
Will attach log output from GST_DEBUG=3. I can see a lot of v4l2 buffer errors?!?
debug.log (2.87 MB)