Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) GPU • DeepStream Version Deepstream 6.2 • Issue Type( questions, new requirements, bugs) question • Language python
I was trying out runtim_source_add_delete in deepstream Python apps, and I added RTSP streams. Sometimes due to network issues or some other reason, the connection gets disrupted, and the application terminates. I am looking for some means to handle this issue, whether the inserted RTSP URL is incorrect or if the connection gets closed in between.
i just replaced the uridecodebin with nvurisrcbin and added a additional line bin.set_property("uri",uri) in create_uridecode_bin() in runtime_source_add_delete code in deepstream python apps
and got this error
gststruct=caps.get_structure(0)
AttributeError: 'NoneType' object has no attribute 'get_structure'
from the function `def cb_newpad(decodebin,pad,data)
do I have to make any other changes if I replace uridecodebin with nvurisrcbin
it seemed caps was null. I can’t reproduce this issue by testing deepstream_nvdsanalytics.py without code modification. for example, rtsp://127.0.0.1:8554/test is a valid RTSP source. when I tested rtsp://127.0.0.1:8554/test1, the app did not trigger cb_newpad function. here is the log: log-93.txt (2.5 KB)
running this command gives me a window with black screen gst-launch-1.0 -v nvurisrcbin uri=rtsp://admin:123456@192.168.99.93 rtsp-reconnect-interval=5 ! nveglglessink
how did you test? is it black at the first frame? is it black after rtsp reconnection?
can you dump some stream data? I will have a try. here is the command: gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! rtph264depay ! h264parse ! mux. mpegtsmux name=mux ! filesink location=output.ts
I can’t reproduce the issue after testing my stream. here is the commandline: gst-launch-1.0 nvurisrcbin uri=rtsp://127.0.0.1:8554/test ! nvvideoconvert ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12’ ! nvv4l2h264enc bitrate=1000000 ! filesink location=test.264