if I put a Custom variable in [source],how can I get its value in gstdsexample.cpp?
e.g.
[source 0]
my_variable=5
gstdsexample.cpp
printf(“my variable is %d”,my_variable)
if I put a Custom variable in [source],how can I get its value in gstdsexample.cpp?
e.g.
[source 0]
my_variable=5
gstdsexample.cpp
printf(“my variable is %d”,my_variable)
Hi,
This is not supported by default. You would need to customize the config parser to read/store custom variables. The source code of parser is
deepstream_sdk_v4.0.2_jetson\sources\apps\sample_apps\deepstream-app\deepstream_app_config_parser.c
Hi,
I want to add sid in [source u%],like
[source 0]
…
…
sid=2
[source 1]
…
…
sid=3
not using dsexample to parser the configuration file.I want to Integrate “sid” into the whole.
Could you tell me what should I do?
hi,
You can implement your custom metadata and read the metadata in dsexample. Please refer to the sample:
deepstream_sdk_v4.0.2_jetson\sources\apps\sample_apps\deepstream-user-metadata-test