renaming custom gst-dsexample

Hi, I am encountering some issue in calling a custom gst-dsexample using deepstream-app -c.

I changed gstdsexmple.cpp ‘dsexample’ to ‘dsexample2’
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
dsexample2,
DESCRIPTION, dsexample_plugin_init, VERSION, LICENSE, BINARY_PACKAGE, URL)

And changed to Makefile to:
LIB:=libgstnvdsexample2.so

And gst-inspect-1.0 shows both dsexample and dsexample2.

However, how do i call the new plugin from deepstream config file?
I tried [ds-example2], [ds-example-2]. How do you check the registered gstplugin name for deepstream-app?

Thanks.

HI,
you should also need modify from dsexample to dsexample2,
return gst_element_register (plugin, “dsexample”, GST_RANK_PRIMARY, GST_TYPE_DSEXAMPLE);

deepstream config file for ds_example defined here
/home/nvidia/nvgstiva-app_sources/nvgstiva-app/src/nvgstiva_config_file_parser.c:194:#define CONFIG_GROUP_DSEXAMPLE “ds-example”
you do not need to setup for it, just use the original.

check the registered plugin name:
gst-inspect-1.0 “plugin”
paste one clip:

Plugin Details:
Name dsexample
Description NVIDIA example plugin for integration with DeepStream on Jetson

you can find the macros for the elements from /home/nvidia/nvgstiva-app_sources/nvgstiva-app/includes/nvgstiva_config.h

here is for dsexample,
#define NVIVA_ELEM_DSEXAMPLE_ELEMENT “dsexample”

if you want to use your new added plugin, you can define macro here, and create header /home/nvidia/nvgstiva-app_sources/nvgstiva-app/includes/ here, reference nvgstiva_dsexample.h or anyone in the dir, and source /home/nvidia/nvgstiva-app_sources/nvgstiva-app/src/ here, you also need modify function create_processing_instance in
/home/nvidia/nvgstiva-app_sources/nvgstiva-app/src/nvgstiva_app.c
add to where should be added.

Thanks. I will try it out!