Error while running multistream_detection_rtsp.sh

while running multi_stream_detection.sh I am encountering an error : “Setting number of rtsp sources to 1
Setting debug mode. using gst-top to print time and memory consuming elements
SHOW_FPS=1 GST_DEBUG=GST_TRACER:13 GST_DEBUG_DUMP_TRACE_DIR=. gst-top-1.0 gst-launch-1.0 hailoroundrobin mode=0 name=fun ! queue name=hailo_pre_infer_q_0 leaky=downstream max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! hailonet hef-path=/local/workspace/tappas/apps/h8/gstreamer/general/multistream_detection/resources/yolov5m_wo_spp_60p.hef nms-score-threshold=0.3 nms-iou-threshold=0.45 output-format-type=HAILO_FORMAT_TYPE_FLOAT32 ! queue name=hailo_postprocess0 leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailofilter so-path=/local/workspace/tappas/apps/h8/gstreamer/libs/post_processes//libyolo_hailortpp_post.so qos=false ! queue name=hailo_draw0 leaky=no max-size-buffers=30 max-size-bytes=0 max-size-time=0 ! hailooverlay ! hailostreamrouter name=sid src_0::input-streams=”<sink_0>" compositor name=comp start-time-selection=0 sink_0::xpos=0 sink_0::ypos=0 sink_1::xpos=640 sink_1::ypos=0 sink_2::xpos=1280 sink_2::ypos=0 sink_3::xpos=1920 sink_3::ypos=0 sink_4::xpos=0 sink_4::ypos=640 sink_5::xpos=640 sink_5::ypos=640 sink_6::xpos=1280 sink_6::ypos=640 sink_7::xpos=1920 sink_7::ypos=640 ! videoscale n-threads=8 name=disp_scale ! video/x-raw,width=640,height=640 ! fpsdisplaysink video-sink=‘xvimagesink’ name=hailo_display sync=false text-overlay=false rtspsrc location=rtsp://192.168.0.110/?h264x=4<admin_123> name=source_0 message-forward=true ! rtph264depay ! queue name=hailo_preprocess_q_0 leaky=no max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! decodebin ! queue leaky=downstream max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! videoscale n-threads=8 ! video/x-raw,pixel-aspect-ratio=1/1 ! videoconvert n-threads=8 ! video/x-raw,pixel-aspect-ratio=1/1 ! fun.sink_0 sid.src_0 ! queue name=comp_q_0 leaky=downstream max-size-buffers=5 max-size-bytes=0 max-size-time=0 ! comp.sink_0
Running Pipeline…
./multi_stream_detection_rtsp.sh: eval: line 135: syntax error near unexpected token `<’
"
while I have re verified the .sh file but not such token present in the code and I am using the rtsp link in format (RC_0=“rtsp://192.168.0.110/?h264x=4<admin_123>” )

I believe the issue is your rtsp source string.

Try this:

RC_0="rtsp://192.168.0.110/?h264x=4 user-id=admin_123 user-pw=pw_123"

I changed the rtsp link format but getting error:
"Running Pipeline…
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.0.110/?h264x=4
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING …
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:source_0: Delayed linking failed.
Additional debug info:
./grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstRTSPSrc:source_0:
failed delayed linking some pad of GstRTSPSrc named source_0 to some pad of GstRtpH264Depay named rtph264depay0

"

Hi @prateek.s
Please verify that you are able to read from the camera using just a simple pipeline reading from RTSP and displaying to screen.
There are plenty of examples online.
Note that the RTSP address is different between different cameras brands.
You can also use VLC to ensure that the RTSP URL rtsp://192.168.0.110/?h264x=4 is working and streaming video correctly.
After you approve that this works we can delve deeper.

now I have verified the rtsp link by running it on VLC player its running fine but while running the shell code for rtsp detection the error arose again.
"Running Pipeline…
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:admin_123@192.168.0.116:554
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING …
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:source_0: Delayed linking failed.
Additional debug info:
./grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstRTSPSrc:source_0:
failed delayed linking some pad of GstRTSPSrc named source_0 to some pad of GstRtpH264Depay named rtph264depay0
"

Please try to run a gstreamer pipeline (w/o hailo) to make sure this is not an issue with the camera configuration (VLC has better support than gstreamer).

In addition please share your system details.
camera model
OS version
TAPPAS version

**camera : "Basic Info**
**ModelIPC3615ER3-ADUPF28M**
**Network192.168.0.116/255.255.255.0/192.168.0.1**
**MAC Address48:ea:63:85:4b:7d**
**Version Info**
**Firmware VersionGIPC-B6102.26.46.230404**
**Hardware VersionA**
**Boot VersionV3.7**
**Serial No.210235C2W9F186003504"**

camera is working fine on VLC but facing error while running the sh file

i have tried changing the streames of camera from main stream to sub stream but same error

Try use rtsp strem for this camera in format:

Main stream rtsp://Camera IP address:554/media/video1
Sub stream rtsp://camera IP address:554/media/video2
Third stream rtsp://camera IP address:554/media/video3

I suggest using the second stream

Source: https://www.uniview.com/res/202310/26/20231026_1890323_How%20to%20Get%20the%20URLs%20for%20Uniview%20IPC%20and%20NVR_975509_168459_0.pdf

If the RTSP authentication is enabled on camera then please use the following URL:
rtsp://username:password@IP:RTSP port/media/videoX

Thanks for the reply but I am already using the IP in this format “rtsp://admin:admin_123@192.168.0.114:554/media/video1”
i think the error “failed delayed linking some pad of GstRTSPSrc named source_0 to some pad of GstRtpH264Depay named rtph264depay0”
is regarding the encoding/decoding segment of the stream connectivity.
may be you can provide some input in that error.

i have [quote=“giladn, post:6, topic:1231, full:true”]
Please try to run a gstreamer pipeline (w/o hailo) to make sure this is not an issue with the camera configuration (VLC has better support than gstreamer).

In addition please share your system details.
camera model
OS version
TAPPAS version
[/quote]

hi i am facing same issuei had check with camera is working fine but when i configured the rtsp source as mentioned in tappas github but it showing error unauthorized and then i check with creditionls, these are correct and if i rerun the script again it shows diffrent source as unauthorised so plz tell me why it happens
system details.
camera model:-rtsp:ip camera
OS version:rpi5
TAPPAS version: 3.29.1

i changed line from readonly SRC_0=“rtsp:///?h264x=4 ”
to like the below
readonly SRC_0=“rtsp://192.162.1.146/?h264x=4 user-id=admin12@ user-pw=admin456”

in apps/h8/gstreamer/general/multistream_detection/multi_stream_detection_rtsp.sh

@klausk any updates regarding it