Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection

root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# gst-launch-1.0 rtspsrc location=rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream latency=200 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream
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:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5768): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Delayed linking failed.
Additional debug info:
./grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
failed delayed linking some pad of GstRTSPSrc named rtspsrc0 to some pad of GstRtpH264Depay named rtph264depay0
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Internal data stream error.
Additional debug info:
gstrtspsrc.c(6056): gst_rtspsrc_loop (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
streaming stopped, reason not-linked (-1)
Execution ended after 0:00:05.298452643
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

vlc VLC can play

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)

• Hardware Platform GPU
• DeepStream Version 6.1.0
• TensorRT Version 8.2

root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# deepstream-app --version-all

(gst-plugin-scanner:10): GStreamer-WARNING **: 08:06:03.846: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:10): GStreamer-WARNING **: 08:06:03.858: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so’: libtritonserver.so: cannot open shared object file: No such file or directory
deepstream-app version 6.1.0
DeepStreamSDK 6.1.0
CUDA Driver Version: 11.6
CUDA Runtime Version: 11.6
TensorRT Version: 8.2
cuDNN Version: 8.4
libNVWarp360 Version: 2.0.1d3
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-5.0#

• NVIDIA GPU Driver Version (valid for GPU only)
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# nvidia-smi
Thu May 26 08:08:20 2022
| NVIDIA-SMI 450.156.00 Driver Version: 450.156.00 CUDA Version: 11.6 |
Tesla T4 A piece of T4 GPU

• Issue Type( questions, new requirements, bugs)
vlc can play rtsp://admin:A12345678@xxx.xxx.xx.xx:1554/cam/realmonitor?channel=1&subtype=0

root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# gst-launch-1.0 rtspsrc location=rtsp://admin:A12345678@120.224.91.37:1554/cam/realmonitor?channel=1&subtype=0 latency=200 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
[1] 33
bash: !: command not found
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:A12345678@120.224.91.37:1554/cam/realmonitor?channel=1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Not found
Additional debug info:
gstrtspsrc.c(6514): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Not Found (404)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1#

vlc can play rtsp://admin:1234qwer@10.0.7.127:554/h264/ch1/main/av_stream

root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# gst-launch-1.0 rtspsrc location=rtsp://admin:1234qwer@10.0.7.127:554/h264/ch1/main/av_stream latency=200 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:1234qwer@10.0.7.127:554/h264/ch1/main/av_stream
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
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

Why can RTSP be successful, but VLC can play both links

Please add GST_DEBUG=5 to get more information.

gst-launch-1.0 --gst-debug-level=5 rtspsrc location=rtsp://admin:hik12345@xxx.xxx.xxx.xxx:3554/h264/ch1/main/av_stream latency=200 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false >log_new.txt 2>&1
log_new.txt (2.9 MB)
The log is too long. I uploaded the file

This RTSP link, execute command will not exit terminal, I can’t output to file, select --gst-debug-level=4
gst-launch-1.0 --gst-debug-level=4 rtspsrc location=rtsp://admin:A12345678@xxx.xxx.xx.xx:1554/cam/realmonitor?channel=1&subtype=0 latency=200 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
[1] 211
bash: !: command not found
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# 0:00:00.000803531 211 0x5582b73b2cc0 INFO GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
0:00:00.001973931 211 0x5582b73b2cc0 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.002500122 211 0x5582b73b2cc0 INFO GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.002696790 211 0x5582b73b2cc0 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin “staticelements”
0:00:00.002726841 211 0x5582b73b2cc0 INFO GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin “staticelements”, result: 1
0:00:00.002773281 211 0x5582b73b2cc0 INFO GST_REGISTRY gstregistry.c:1720:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.022138754 211 0x5582b73b2cc0 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.x86_64.bin in 0.019309 seconds
0:00:00.022217313 211 0x5582b73b2cc0 INFO GST_REGISTRY gstregistry.c:1579:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.024026330 211 0x5582b73b2cc0 INFO GST_REGISTRY gstregistry.c:1678:scan_and_update_registry: Registry cache has not changed
0:00:00.024046883 211 0x5582b73b2cc0 INFO GST_REGISTRY gstregistry.c:1755:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.024058802 211 0x5582b73b2cc0 INFO GST_INIT gst.c:806:init_post: GLib runtime version: 2.64.6
0:00:00.024068928 211 0x5582b73b2cc0 INFO GST_INIT gst.c:808:init_post: GLib headers version: 2.63.1
0:00:00.024076528 211 0x5582b73b2cc0 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.024105495 211 0x5582b73b2cc0 INFO GST_PIPELINE gstparse.c:336:gst_parse_launch_full: parsing pipeline description 'rtspsrc location=rtsp://admin:A12345678@120.224.91.37:1554/cam/realmonitor?channel=1 ’
0:00:00.026225053 211 0x5582b73b2cc0 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrtsp.so” loaded
0:00:00.026248149 211 0x5582b73b2cc0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “rtspsrc”
0:00:00.027763027 211 0x5582b73b2cc0 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstasf.so” loaded
0:00:00.027786373 211 0x5582b73b2cc0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “rtspwms”
0:00:00.028365181 211 0x5582b73b2cc0 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstrealmedia.so” loaded
0:00:00.028381845 211 0x5582b73b2cc0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “rtspreal”
0:00:00.028451394 211 0x5582b73b2cc0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “pipeline”
Setting pipeline to PAUSED …
0:00:00.028564193 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next READY
0:00:00.028599704 211 0x5582b73b2cc0 INFO task gsttask.c:453:gst_task_set_lock: setting stream lock 0x5582b76011a8 on task 0x5582b760c050
0:00:00.028615903 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to READY
0:00:00.028628303 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.028660638 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child ‘rtspsrc0’ changed state to 2(READY) successfully
0:00:00.028674571 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2647:gst_element_continue_state: committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.028684626 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed NULL to READY (PAUSED pending)
0:00:00.028709579 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2655:gst_element_continue_state: continue state change READY to PAUSED, final PAUSED
0:00:00.028723312 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next PAUSED
0:00:00.028806649 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to PAUSED
0:00:00.028838818 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.028853274 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2995:gst_bin_change_state_func: child ‘rtspsrc0’ changed state to 3(PAUSED) successfully without preroll
0:00:00.028865057 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to PAUSED
0:00:00.028874927 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed READY to PAUSED (VOID_PENDING pending)
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:A12345678@120.224.91.37:1554/cam/realmonitor?channel=1
Progress: (open) Retrieving server options
0:00:00.200058035 211 0x5582b73a8b60 INFO rtspsrc gstrtspsrc.c:7766:gst_rtspsrc_retrieve_sdp: Now using version: 1.0
Progress: (open) Retrieving media info
0:00:00.263060004 211 0x5582b73a8b60 WARN rtspsrc gstrtspsrc.c:6514:gst_rtspsrc_send: error: Not found
0:00:00.263089531 211 0x5582b73a8b60 WARN rtspsrc gstrtspsrc.c:6514:gst_rtspsrc_send: error: Not Found (404)
0:00:00.263145991 211 0x5582b73a8b60 INFO GST_ERROR_SYSTEM gstelement.c:2140:gst_element_message_full_with_details: posting message: Not found
0:00:00.263205603 211 0x5582b73a8b60 INFO GST_ERROR_SYSTEM gstelement.c:2167:gst_element_message_full_with_details: posted error message: Not found
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Not found
0:00:00.263320359 211 0x5582b73a8b60 WARN rtspsrc gstrtspsrc.c:7951:gst_rtspsrc_open: can’t get sdp
Additional debug info:
gstrtspsrc.c(6514): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Not Found (404)
0:00:00.263376311 211 0x5582b73a8b60 WARN rtspsrc gstrtspsrc.c:6031:gst_rtspsrc_loop: we are not connected
ERROR: pipeline doesn’t want to preroll.
0:00:00.263415338 211 0x5582b73a8b60 INFO task gsttask.c:312:gst_task_func: Task going to paused
Setting pipeline to PAUSED …
0:00:00.263470098 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to PAUSED
0:00:00.263514871 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2995:gst_bin_change_state_func: child ‘rtspsrc0’ changed state to 3(PAUSED) successfully without preroll
0:00:00.263537042 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to PAUSED
Setting pipeline to READY …
0:00:00.263630409 211 0x5582b73a8b60 INFO task gsttask.c:314:gst_task_func: Task resume from paused
0:00:00.263680068 211 0x5582b73a8b60 INFO task gsttask.c:312:gst_task_func: Task going to paused
0:00:00.263688114 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to READY
0:00:00.263727468 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:00.263781827 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child ‘rtspsrc0’ changed state to 2(READY) successfully
0:00:00.263821948 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to READY
0:00:00.263842998 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:00.263884074 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2090:gst_bin_get_state_func: getting state
Setting pipeline to NULL …
0:00:00.263941179 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state: current READY pending VOID_PENDING, desired next NULL
0:00:00.263984402 211 0x5582b73a8b60 INFO task gsttask.c:314:gst_task_func: Task resume from paused
0:00:00.264033819 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to NULL
0:00:00.264061428 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:00.264109843 211 0x5582b73b2cc0 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func: child ‘rtspsrc0’ changed state to 1(NULL) successfully
0:00:00.264166023 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2675:gst_element_continue_state: completed state change to NULL
0:00:00.264190579 211 0x5582b73b2cc0 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed: notifying about state-changed READY to NULL (VOID_PENDING pending)
Freeing pipeline …
0:00:00.264276486 211 0x5582b73b2cc0 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func: removed child “rtspsrc0”
0:00:00.264351163 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x5582b7601020 dispose
0:00:00.264373097 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose: 0x5582b7601020 parent class dispose
0:00:00.264394909 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x5582b76080a0 dispose
0:00:00.264434649 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose: 0x5582b76080a0 parent class dispose
0:00:00.264459182 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x5582b76080a0 finalize
0:00:00.264479742 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize: 0x5582b76080a0 finalize parent
0:00:00.264547143 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x5582b7605010 dispose
0:00:00.264569043 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose: 0x5582b7605010 parent class dispose
0:00:00.264600049 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x5582b7605010 finalize
0:00:00.264620077 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize: 0x5582b7605010 finalize parent
0:00:00.264642976 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x5582b7601020 finalize
0:00:00.264672582 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize: 0x5582b7601020 finalize parent
0:00:00.264702010 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x5582b760a1b0 dispose
0:00:00.264772390 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose: 0x5582b760a1b0 parent class dispose
0:00:00.264793950 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x5582b760a1b0 finalize
0:00:00.264828118 211 0x5582b73b2cc0 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize: 0x5582b760a1b0 finalize parent
0:00:00.264857602 211 0x5582b73b2cc0 INFO GST_INIT gst.c:1083:gst_deinit: deinitializing GStreamer
0:00:00.270751300 211 0x5582b73b2cc0 INFO GST_INIT gst.c:1232:gst_deinit: deinitialized GStreamer

Your stream have H265 format, please change rtph264depay to rtph265depay and try again.

I replaced the plugin, but the result was the same

root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# gst-launch-1.0 rtspsrc location=rtsp://admin:A12345678@xxx.xxx.xx.xx:1554/cam/realmonitor?channel=1&subtype=0 latency=200 ! rtph265depay ! h265parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
[1] 68
bash: !: command not found
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:A12345678@120.224.91.37:1554/cam/realmonitor?channel=1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Not found
Additional debug info:
gstrtspsrc.c(6514): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Not Found (404)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# gst-launch-1.0 rtspsrc location=rtsp://admin:hik12345@xxx.xxx.xxx.xxx:3554/h264/ch1/main/av_stream latency=200 ! rtph265depay ! h265parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream
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:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5768): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.
^Chandling interrupt.
Interrupt: Stopping pipeline …
Execution ended after 0:00:19.452965917
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1#

I see you quit the process by ctrl-c, can you let it run into end?
rtspsrc first try with UDP protocl, but it failed, retrying with TCP.

Okay, but I executed the command, and I’m still waiting, and I don’t feel like I’m getting any output
root@ht-2288H-V5:/opt/nvidia/deepstream/deepstream-6.1# gst-launch-1.0 rtspsrc location=rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream latency=200 ! rtph265depay ! h265parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! fakesink sync=false
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream
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:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5768): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.

Can you change fakesink to x264enc ! qtmux ! filesink location=xxx to see if the pipeline run well? if your input source is live video, it will not end until you give one signal to end the pipeline. after run for a while, you can quit the process and check the output video.

root@ht-2288H-V5:~/workspace# gst-launch-1.0 rtspsrc location=rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream latency=200 ! rtph265depay ! h265parse ! nvv4l2decoder ! nvvideoconvert ! video/x-raw, format=(string)BGRx ! videoconvert ! x264enc ! qtmux ! filesink location=testdddd sync=false

(gst-plugin-scanner:11): GStreamer-WARNING **: 09:13:13.621: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:11): GStreamer-WARNING **: 09:13:13.632: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so’: libtritonserver.so: cannot open shared object file: No such file or directory
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream
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:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5768): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a tcp connection.
Redistribute latency…
^Chandling interrupt.
Interrupt: Stopping pipeline …
Execution ended after 0:01:01.149741922
Setting pipeline to PAUSED …
Setting pipeline to READY …
^C

testdddd.h264 (8.8 MB)

I executed the command, output the file, I changed the suffix, but the file still won’t open

You can use GST_DEBUG=rtspsrc:5 to just get rtspsrc debug information for easy debug.
Your issue is related to rtsp stream, you also can try rtspsrc protocl to specific like TCP.

gst-launch-1.0 --gst-debug-level=5 rtspsrc location=rtsp://admin:hik12345@xxx.xxx.xxx.xxx:3554/h264/ch1/main/av_stream protocols=tcp ! fakesink >log_new.txt 2>&1
log_new.txt (23.9 MB)
The command is written like this,Is that right?

Yes.

So is it a streaming address problem?

There no error in the log.
Can you play it through vlc?

yes rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream
vlc can play

Please debug from your side since we do not have the rtsp stream you used.

Seems your rtsp stream is public, i can access it now.
Try this pipeline, it works on my side.

gst-launch-1.0 rtspsrc location=rtsp://admin:hik12345@115.233.219.110:3554/h264/ch1/main/av_stream latency=200 protocols=tcp ! rtph264depay ! nvv4l2decoder ! nvvideoconvert ! “video/x-raw, format=(string)NV12” ! x264enc ! matroskamux ! filesink location=testdddd.mkv sync=false

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