How can I add multiple sources?

How do I want to add rtsp 2 sources?

Gst.init()

main_loop = GLib.MainLoop()
thread = Thread(target=main_loop.run)
thread.start()

pipeline = Gst.parse_launch("rtspsrc protocols=tcp  location=rtsp://admin:XXXX@10.117.129.XX ! rtph264depay ! h264parse ! nvv4l2decoder ! m.sink_0 nvstreammux name=m width=1920 height=1080  batch-size=1 live-source=1 batched-push-timeout= 40000 ! nvinfer config-file-path= dsnvanalytics_pgie_config.txt ! nvvideoconvert  ! nvdsosd ! nvegltransform ! nveglglessink")
pipeline.set_state(Gst.State.PLAYING)

try:
    while True:
        sleep(0.1)
except KeyboardInterrupt:
    pass

pipeline.set_state(Gst.State.NULL)
main_loop.quit()

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 version 6.0.1
DeepStreamSDK 6.0.1
CUDA Driver Version: 10.2
CUDA Runtime Version: 10.2
TensorRT Version: 8.2
cuDNN Version: 8.2
libNVWarp360 Version: 2.0.1d3

How do I want to add rtsp 2 sources?

Gst.parse_launch(“rtspsrc protocols=tcp location=rtsp://admin:XXXX@10.117.129.XX ! rtph264depay ! h264parse ! nvv4l2decoder ! m.sink_0 nvstreammux name=m width=1920 height=1080 batch-size=1 live-source=1 batched-push-timeout= 40000 ! nvinfer config-file-path= dsnvanalytics_pgie_config.txt ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink”)

image

Here have multiple source pipeline sample:

Gst-nvdspreprocess (Alpha) — DeepStream 6.0.1 Release documentation (nvidia.com)

Thank you very much

Can the results be shown separately?
It is now merged into a single window.

from

        rtspsrc location=rtsp://admin:XXXX@10.117.129.XX name=src ! decodebin ! m.sink_0 \
        rtspsrc location=rtsp://admin:XXXX@10.117.129.XXX  ! decodebin ! m.sink_1 \
        rtspsrc location=rtsp://admin:XXXX@10.114.129.XX8  ! decodebin ! m.sink_2 \
        nvstreammux name=m width=1920 height=1080  batch-size=3 live-source=1 batched-push-timeout= 40000 ! \
        nvinfer config-file-path= dsnvanalytics_pgie_config.txt ! \
        nvtracker ll-lib-file = /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so ll-config-file=config_tracker_NvDCF_perf.yml tracker-width=640 tracker-height=384 compute-hw=1 ! \
        nvinfer config-file-path= config_nvinfer.txt ! \
        nvdsanalytics name=nvanalytics config-file=config02.txt ! \
        nvmultistreamtiler width=1920 height=480  name=msrc ! nvvideoconvert  !  nvdsosd name=nvdtest ! nvegltransform ! nveglglessin

How do I assign name(src) to all 3 sources?

for


nvanalytics = pipeline.get_by_name('nvanalytics')

nvanalytics_src_pad=nvanalytics.get_static_pad("src")
if not nvanalytics_src_pad:
    sys.stderr.write(" Unable to get src pad \n")
else:
    nvanalytics_src_pad.add_probe(Gst.PadProbeType.BUFFER, nvanalytics_src_pad_buffer_probe, 0)

nvstreamdemux can separate video source.

Gst-nvstreamdemux — DeepStream 6.0.1 Release documentation (nvidia.com)

Thank you

One more question

from

        rtspsrc location=rtsp://admin:XXXX@10.117.129.XX name=src ! decodebin ! m.sink_0 \
        rtspsrc location=rtsp://admin:XXXX@10.117.129.XXX  ! decodebin ! m.sink_1 \
        rtspsrc location=rtsp://admin:XXXX@10.114.129.XX8  ! decodebin ! m.sink_2 \
        nvstreammux name=m width=1920 height=1080  batch-size=3 live-source=1 batched-push-timeout= 40000 ! \
        nvinfer config-file-path= dsnvanalytics_pgie_config.txt ! \
        nvtracker ll-lib-file = /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so ll-config-file=config_tracker_NvDCF_perf.yml tracker-width=640 tracker-height=384 compute-hw=1 ! \
        nvinfer config-file-path= config_nvinfer.txt ! \
        nvdsanalytics name=nvanalytics config-file=config02.txt ! \
        nvmultistreamtiler width=1920 height=480  name=msrc ! nvvideoconvert  !  nvdsosd name=nvdtest ! nvegltransform ! nveglglessin

How do I assign a name (src) to all 3 sources as one?

for get_static_pad(“src”)


nvanalytics = pipeline.get_by_name('nvanalytics')

nvanalytics_src_pad=nvanalytics.get_static_pad("src")
if not nvanalytics_src_pad:
    sys.stderr.write(" Unable to get src pad \n")
else:
    nvanalytics_src_pad.add_probe(Gst.PadProbeType.BUFFER, nvanalytics_src_pad_buffer_probe, 0)

Suppose need assign different name.

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