Multi rtsp steam out in same port

how to get multi rtsp steam out like http://192.168.3.111:8554/ds-test and http://192.168.3.111:8554/ds-test1

please provide an example with config.txt
below not work

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

[tiled-display]
enable=1
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0
square-seq-grid=1

[source0]
enable=1
type=3
uri=file:///tmp/card_video_files/00000000063000000.mp4
num-sources=1
gpu-id=0
#drop-frame-interval=5
cudadec-memtype=0

[source1]
enable=1
type=3
uri=file:///tmp/card_video_files/00000000064000000.mp4
num-sources=1
gpu-id=0
#drop-frame-interval=5
cudadec-memtype=0

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

[sink1]
enable=1
type=4
codec=1
enc-type=0
sync=0
qos=1
source-id=0
bitrate=4000000
profile=0
rtsp-port=8554
udp-port=5400
width=1920
height=1080

[sink2]
enable=1
type=4
codec=1
enc-type=0
sync=0
qos=1
source-id=1
bitrate=4000000
profile=0
rtsp-port=8555
udp-port=5400
width=1920
height=1080


[osd]
enable=1
gpu-id=0
border-width=1
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=2
batched-push-timeout=40000
width=2560
height=1440
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_yoloV8.txt

[tests]
file-loop=0

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 7.0 in docker

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)

deepstream-app is opensource. ds-test is hardcoded in start_rtsp_streaming of \opt\nvidia\deepstream\deepstream\sources\apps\apps-common\src\deepstream_sink_bin.c. you can modify it to customize.

how multi rtsp stream out with different factory and same port?

you can create multiple gst_rtsp_server_new with different port. please refer to start_rtsp_streaming for rtsp server is set.

python has an example?

please refer to this python code. you can create multiple GstRtspServer.RTSPServer.new().

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.