How to handle if RTSP url is invalid or it got disrupted in between?

virtual rtspserver. as you said, virtual camera (that is ,streaming a video through RTSP using ffmpeg and Happy RTSP server).

please use forum private email to share the private information.

this is the ffmeg command i used

ffmpeg -re -stream_loop -1 -i sample_1080p_h265.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8556/screenffmpeg -re -stream_loop -1 -i sample_1080p_h265.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8556/screen

sample_1080p_h265.mp4 is a sample video in the deepstream image. The ffmpeg command is changing the codec of the video, and nvurisrcbin doesn’t support it.

could you help to get some low-level log? Thanks! here is the method:
a. set env variable by this : “export LIBV4L2_LOG_FILENAME=/home/v4l2.log
b. gst-launch-1.0 -v nvurisrcbin uri=rtsp://admin:123456@192.168.99.93 ! nveglglessink
c. after 20 seconds, please provide the log /home/v4l2.log.

v4l2.log (75.5 KB)

after checking “v4l2.log”, “request == VIDIOC_DQBUF” will return 0, it is inconsistent with log_nvurisrcbin.txt. in log_nvurisrcbin.txt, ioctl hung. to narrow down this issue, I build a new libgstnvvideo4linux2.so with adding some logs for DS6.2. could you help to do some tests? Thanks!
libgstnvvideo4linux2.zip (115.9 KB)

  1. backup old /opt/nvidia/deepstream/deepstream/lib/gst-plugins/libgstnvvideo4linux2.so, replace libgstnvvideo4linux2.so with the new one.
    then test gst-launch-1.0 -v nvurisrcbin uri=rtsp://admin:123456@192.168.99.93 ! nveglglessink >log_nvurisrcbin.txt 2>log_nvurisrcbin.txt
    then please share the log_nvurisrcbin.txt.
  2. can you try nvurisrcbin in DS6.3?

1.downloaded the zip file and updated the ibgstnvvideo4linux2.so file , since the file size is greater than 100MB I have split into two log files
log_nvurisrcbin_after_changing_so_file.txt (83.7 MB)
log_nvurisrcbin_after_changing_so_file2.txt (32.6 MB)

  1. Running the command inside deepstream 6.3 without replacing any file

log_nvurisrcbin_DS_6_3.txt (80.0 MB)

to narrow down this issue. could you do some tests?

  1. can you see the normal output video by this command?
    gst-launch-1.0 rtspsrc location=rtsp://xx ! rtph264depay ! h264parse ! queue ! nvv4l2decoder ! nveglglessink
  2. can you see the normal output video by this command?
    gst-launch-1.0 rtspsrc location=rtsp://xx ! rtph264depay ! h264parse config-interval=-1 ! queue ! nvv4l2decoder ! nveglglessink
  3. can we access that camera? because we can’t reproduce this issue. please use forum private email to share the private information.

i apologize for late reply, i thought i replied for this query. Both the command works fine on my device. Where can i find the forum private email?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

it should be in forum avatar’s profile.

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