Error while using rtsp sink

I am having the following error while trying to use RTSP sink.

 *** nvvideo-renderer: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

0:00:00.156409982 848375 0xaaaae75280d0 DEBUG             rtspserver rtsp-server.c:806:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> getting address info of 0.0.0.0/8554
0:00:00.156614628 848375 0xaaaae75280d0 DEBUG             rtspserver rtsp-server.c:891:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> opened sending server socket
0:00:00.156655749 848375 0xaaaae75280d0 DEBUG             rtspserver rtsp-server.c:918:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> listening on server socket 0xaaaae6bad520 with queue of 5
0:00:00.159567260 848375 0xaaaae75280d0 DEBUG             rtspserver rtsp-server.c:806:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> getting address info of 0.0.0.0/8554
0:00:00.159724448 848375 0xaaaae75280d0 DEBUG             rtspserver rtsp-server.c:877:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> failed to bind socket (Error binding to address 0.0.0.0:8554: Address already in use), try next
0:00:00.159785570 848375 0xaaaae75280d0 DEBUG             rtspserver rtsp-server.c:828:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> no more addresses 
0:00:00.159805379 848375 0xaaaae75280d0 ERROR             rtspserver rtsp-server.c:928:gst_rtsp_server_create_socket:<GstRTSPServer@0xaaaae69b93a0> failed to create socket
0:00:00.159818915 848375 0xaaaae75280d0 ERROR             rtspserver rtsp-server.c:1295:gst_rtsp_server_create_source:<GstRTSPServer@0xaaaae69b93a0> failed to create socket
0:00:00.159831331 848375 0xaaaae75280d0 ERROR             rtspserver rtsp-server.c:1341:gst_rtsp_server_attach:<GstRTSPServer@0xaaaae69b93a0> failed to create watch: Error binding to address 0.0.0.0:8554: Address already in use

But the port is not in use before running the application. After the application start I have this.

$ sudo netstat -tulpn | grep 8554
tcp        0      0 0.0.0.0:8554            0.0.0.0:*               LISTEN      848375/./rtsp_restr 

I need assistance in understanding the error and resolving

• Hardware Platform (Jetson / GPU): Jetson Orin
• DeepStream Version: 6.3
• JetPack Version (valid for Jetson only): 5.1.2
• TensorRT Version: 8.5.2.2

It seems there is an application binding port 8554. Can you change your current application’s port to another port and check if this issue still exists?

Are you running a sample code? Please share the reproducing steps if possible.

The error is there regardless of the port I am using.
I am trying to run “deepstream-6.3/sources/apps/sample_apps/deepstream-testsr” app

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 seems that there is a problem with the network service on your device. Could you try to test that with the gst-rtsp-server first?

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