How to use deepstream send massage to kafka?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.1
• NVIDIA GPU Driver Version (valid for GPU only) 510

I have different video sources and I create different kafka topic, I want every video sources correspond a topic, but I don’t know how to use deepstream sent different video sources massage to different kafka topic. What should I do to solve this problem?

This is my deepstream_app_config.txt

[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5

[tiled-display]
enable=1
rows=1
columns=2
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0

[source0]
enable=1
type=3
uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
num-sources=1
gpu-id=0
cudadec-memtype=0

[source1]
enable=1
type=3
uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/1-10.mp4
num-sources=1
gpu-id=0
cudadec-memtype=0

[sink0]
enable=1
type=2
sync=0
gpu-id=0
nvbuf-memory-type=0

[sink1]
enable=1
type=6
msg-conv-config=dstest5_msgconv_sample_config.txt
msg-conv-payload-type=1
msg-broker-proto-lib=/opt/nvidia/deepstream/deepstream-6.1/lib/libnvds_kafka_proto.so
msg-broker-conn-str=10.129.53.100;9092;videotest
topic=videotest
source-id=0

[osd]
enable=1
gpu-id=0
border-width=5
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
live-source=0
batch-size=1
batched-push-timeout=40000
width=1920
height=1080
enable-padding=0
nvbuf-memory-type=0

[primary-gie]
enable=1
gpu-id=0
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary_yoloV5.txt

[tests]
file-loop=0

We are investigating this request, we will take it into our roadmap

Can I obtain different RTSP stream device ID?

What do you mean by “device ID” for rtsp stream?

I have multiple webcams, and when I want to send a message to Kafka, each webcam has a unique ID. How Do I do that?


I thiink sensorId is Cameras ID,but I don’t know how to make a Sensorid correspond to a Cameras ID

The sensor id is designated by the app. DeepStream Reference Application - deepstream-app — DeepStream 6.1.1 Release documentation