How can’t i retain the trt model on GPU after processing the entire video in the application and add the new video to run, i must not load engine again.
I try runtime_source_add_delete but when it warning:
Warning: gst-resource-error-quark: No Sources found at the input of muxer. Waiting for sources. (3): gstnvstreammux.cpp(2777): gst_nvstreammux_src_push_loop (): /GstPipeline:pipeline0/GstNvStreamMux:Stream-muxer
Just use it like a normal element. When you need to add or remove a source, send the corresponding http request. The parameters required by these requests are described in detail in the documentation.
source = Gst.ElementFactory.make("nvmultiurisrcbin", "nvmultiurisrcbin")
if not source:
sys.stderr.write(" Unable to create Source \n")