Runtime_source_add_delete python-apps not working

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

nvosd.link(queue)
queue.link(nvvidconv2)
nvvidconv2.link(capsfilter)
capsfilter.link(encoder)
encoder.link(codeparser)
codeparser.link(container)
container.link(sink)

as the code in opticalflow sample shown, need to add some encode related plugin, you might dump the pipeline to compare, here is the method to dump pipeline:Python DeepStream program not generating dot file