Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 5.0.0
• JetPack Version (valid for Jetson only) 4.4.1
• TensorRT Version 7.1.3
• NVIDIA GPU Driver Version (valid for GPU only) -
• Issue Type( questions, new requirements, bugs) Questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing) -
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description) -
Hi, my objective is to add a new key to dsexample config in deepstream-app reference app.
[ds-example]
enable=1
processing-width=720
processing-height=480
full-frame=1
#batch-size for batch supported optimized plugin
batch-size=1
unique-id=15
gpu-id=0
**my-own-key=my-own-string**
At first, I tried adding new property in struct _GstDsExample
in gst-plugins/gst-dsexample/gstdsexample.h, as well as its corresponding PROP_xxx
enum, g_object_class_install_property
, gst_dsexample_set_property
, gst_dsexample_get_property
in gst-plugins/gst-dsexample/gstdsexample.cpp
However, it did not work.
I soon realised that I also need to modify files deepstream_config_file_parser.c and deepstream_dsexample.c in apps/apps-common/src, file deepstream_dsexample.h in apps/apps-common/includes
After all that, I managed to make some progress in gst_dsexample_set_property
, the following works
case PROP_xxx:
dsexample->xxx = g_value_get_string (value);
std::cout << dsexample->xxx << std::endl;
break;
However, in gst_dsexample_start
the property is gone.
static gboolean
gst_dsexample_start (GstBaseTransform * btrans)
{
GstDsExample *dsexample = GST_DSEXAMPLE (btrans); // suspect casting was wrong?
std::cout << dsexample->xxx << std::endl; // hits the following error
...
Error log:
** ERROR: <main:655>: Failed to set pipeline to PAUSED
Quitting
ERROR from common_msg_conv: Could not initialize supporting library.
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmsgconv/gstnvmsgconv.c(381): gst_nvmsgconv_start (): /GstPipeline:pipeline/GstNvMsgConv:common_msg_conv:
unable to open converter library
App run failed
It seems overly complicated just to add a new key in config. Can you please share a complete pointer on how to do so?
Many thanks!