deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.32k stars 312 forks source link

Problem Option Time-OUT with SIQURA Camera #275

Open dsalasjanda opened 1 year ago

dsalasjanda commented 1 year ago

I'm tying RTSPtoWeb with several Professionals cameras , an I had problems whit a SIQURA camera, we don't have the same problems wit other.

I show a similar error in (https://github.com/deepch/RTSPtoWeb/issues/236) but I don't understud how to solved or if it is solved.

Te stream seems to work well but the "[Unsupported NAL Type 6]" show every second, and after a 30 second the connection get close. We ask the camera manufacturer and they tell us that must be a problem of our client ( in this case RTSPtoWEB) I copy the logs:

INFO[2023-01-10T09:02:45Z] Success connection RTSP call=Start channel=0 func=StreamServerRunStream module=core stream=48d4469e-a1e7-4e91-88f2-83e52ceccb4f 2023/01/10 09:02:45 Set ICEServers [stun:stun.l.google.com:19302] 2023/01/10 09:02:45 [Codec Update SPS [103 66 128 30 218 2 208 246 255 192 8 0 6 196 0 0 46 236 0 10 255 82 16]] 2023/01/10 09:02:45 [Codec Update PPS [104 222 11 136]] 2023/01/10 09:02:45 [Unsupported NAL Type 6] 2023/01/10 09:02:46 [Unsupported NAL Type 6] 2023/01/10 09:02:47 [Unsupported NAL Type 6] 2023/01/10 09:02:48 [Unsupported NAL Type 6] 2023/01/10 09:02:49 [Unsupported NAL Type 6] 2023/01/10 09:02:50 [Unsupported NAL Type 6] 2023/01/10 09:02:51 [Unsupported NAL Type 6] 2023/01/10 09:02:52 [Unsupported NAL Type 6] 2023/01/10 09:02:53 [Unsupported NAL Type 6] 2023/01/10 09:02:54 [Unsupported NAL Type 6] 2023/01/10 09:02:55 [Unsupported NAL Type 6] 2023/01/10 09:02:56 [Unsupported NAL Type 6] 2023/01/10 09:02:57 [Unsupported NAL Type 6] 2023/01/10 09:02:58 [Unsupported NAL Type 6] 2023/01/10 09:02:59 [Unsupported NAL Type 6] 2023/01/10 09:03:00 [Unsupported NAL Type 6] 2023/01/10 09:03:01 [Unsupported NAL Type 6] 2023/01/10 09:03:02 [Unsupported NAL Type 6] 2023/01/10 09:03:03 [Unsupported NAL Type 6] 2023/01/10 09:03:04 [Unsupported NAL Type 6] 2023/01/10 09:03:05 [Unsupported NAL Type 6] 2023/01/10 09:03:06 [Unsupported NAL Type 6] 2023/01/10 09:03:07 [Unsupported NAL Type 6] 2023/01/10 09:03:08 [Unsupported NAL Type 6] 2023/01/10 09:03:09 [Unsupported Type 6] 2023/01/10 09:03:15 [RTSP Client RTP Read Header read tcp 10.22.41.26:60410->10.22.59.94:554: i/o timeout] 2023/01/10 09:03:15 [TEARDOWN rtsp://10.22.59.94/profiletoken_1_1/ RTSP/1.0 CSeq: 6 Authorization: Digest username="admin", realm="Siqura", nonce="61d80554b73326b131117a8acac0de62", uri="rtsp://10.22.59.94/profiletoken_1_1/", response="e92a96f91bbb4b9281b650031415b7cd" User-Agent: Lavf58.76.100 Session: 989389700

] 2023/01/10 09:03:15 [RTSP Client Close ] ERRO[2023-01-10T09:03:15Z] Stream error restart stream stream stop rtsp signal call=Restart INFO[2023-01-10T09:03:17Z] Run stream call=Run channel=0 func=StreamServerRunStreamDo module=core stream=48d4469e-a1e7-4e91-88f2-83e52ceccb4f 2023/01/10 09:03:17 [OPTIONS rtsp://10.22.59.94:554/ProfileToken_1_1 RTSP/1.0 CSeq: 1 User-Agent: Lavf58.76.100

dsalasjanda commented 1 year ago

We test whit other cameras and we show that the RTSTtoWEb send an "option" keepAlive Ping every 26 seconds, to keep the stream alive, but in this camera the manufacture of the camera expect the "option keepAlive before 20 seconds , or the the steam it is close by the camera.

Could yo tell us if there are any way to change that time or use the time that send the camera ???