marcoslucianops / DeepStream-Yolo

NVIDIA DeepStream SDK 7.0 / 6.4 / 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models
MIT License
1.37k stars 343 forks source link

Custom RTSP output address #540

Open boxbox-0427 opened 1 month ago

boxbox-0427 commented 1 month ago

The default rtsp address is rtsp://localhost:8554/ds-test, how should I change it? For example:

[source0]
uri=rtsp:xxx0

[source1]
uri=rtsp:xxx1

....

[sink0]
rtsp-output-address=rtsp:localhost:8554/demo00

[sink1]
rtsp-output-address=rtsp:localhost:8554/demo01

Can it be realized?

And I found this link.

jhowrez commented 2 weeks ago

Hi @boxbox-0427 , If you walk through the source files in the sdk as nvidia pointed out in the link and change specifically the /opt/nvidia/deepstream/deepstream/source/apps/apps-common/src/deepstream_sink_bin.c file, it's possible to change the path for the gst rtsp server sink. To accomplish an individual endpoint per stream you'll need to create a custom field for the NvDsSinkBin struct, parse it and modify the create_udp_binto use this new field.