How to create multiple instances of a custom element , in a custom deepstream pipeline

How to create multiple instances of a custom element , in a custom deepstream pipeline.

nvinfer1 = gst_element_factory_make(“nvinfer”, “nvinfer1”);
nvinfer2 = gst_element_factory_make(“nvinfer”, “nvinfer2”);

Deepstream is handling the multiple instances of the same element(nvinfer) when linked in a pipeline.
I have a custom element named “classinfer”. and i want to use the same element multiple times in the pipeline.
But it doesnt work at the time of initialization with my custom element.

classinfer = gst_element_factory_make(“classinfer”, “classinfer”);
classinfer1 = gst_element_factory_make(“classinfer”, “classinfer2”);

How can i use the same custom element(classinfer) multiple times in my custom deepstream pipeline.

So there may be some bug in your plugin. You may need to debug for the root cause. There is no limitation to create multiple instances with GStreamer plugin. Plugin Writer's Guide

Thank you.

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