mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.45k stars 151 forks source link

Tons of connection issues on 2.9.2 #1218

Open bobloadmire opened 1 month ago

bobloadmire commented 1 month ago

Describe the bug

[driveway] [CONTROL] ERROR - error=AssertionError('Please call _connect() first!'), cmd='_bitrate' [side_yard] [CONTROL] ERROR - error=AssertionError('Please call _connect() first!'), cmd='_bitrate' [driveway] [Exception] Did not receive a frame for 20s [WyzeBridge] ❌ '/driveway' stream is down [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20 [WyzeBridge] 📕 Client stopped reading from driveway [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20 [side_yard] [Exception] Did not receive a frame for 20s [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Side Yard on 192.168.0.148 [driveway] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 86%) FW: 4.36.11.8391 🔒 [driveway] WARNING: Skipping wrong frame_size at start of stream [frame_size=1] [side_yard] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 80%) FW: 4.36.11.8391 🔒 [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212 [side_yard] WARNING: Skipping wrong frame_size at start of stream [frame_size=1] [bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] ✅ '/driveway stream is UP! (3/3) [WyzeBridge] 👻 Bonus Room 2 is offline. [WyzeBridge] Bonus Room 2 will cooldown for 10s. [WyzeBridge] 📖 New client reading from driveway [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212 [WyzeBridge] 📕 Client stopped reading from driveway [bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 Bonus Room 2 is offline. [WyzeBridge] Bonus Room 2 will cooldown for 10s. [driveway] [-13] IOTC_ER_TIMEOUT [WyzeBridge] ❌ '/driveway' stream is down [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20 [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212 [bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 Bonus Room 2 is offline. [WyzeBridge] Bonus Room 2 will cooldown for 10s. [lincs_room] [video] super slow [lincs_room] WARNING: clear buffer [driveway] [-13] IOTC_ER_TIMEOUT [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API... [WyzeBridge] [API] Fetched [7] cameras [WyzeBridge] 💾 Saving 'cameras' to local cache... [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Driveway on 192.168.0.20 [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212 [bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 Bonus Room 2 is offline. [WyzeBridge] Bonus Room 2 will cooldown for 10s. [side_yard] [Exception] Did not receive a frame for 20s [lincs_room] [CONTROL] ERROR - error=AssertionError('Please call _connect() first!'), cmd='_bitrate' [driveway] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 98%) FW: 4.36.11.8391 🔒 [lincs_room] [Exception] Did not receive a frame for 20s [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Side Yard on 192.168.0.148 [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Linc's Room on 192.168.0.224 [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212 [side_yard] 📡 Getting 120kb/s HD stream (H264/20fps) via LAN mode (WiFi: 80%) FW: 4.36.11.8391 🔒 [side_yard] WARNING: Skipping wrong frame_size at start of stream [frame_size=1] [bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 Bonus Room 2 is offline. [WyzeBridge] Bonus Room 2 will cooldown for 10s. [driveway] WARNING: Skipping wrong frame_size at start of stream [frame_size=1] [WyzeBridge] 📕 Client stopped reading from kitchen [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Bonus Room 2 on 192.168.0.212 [side_yard] [video] super slow [side_yard] WARNING: clear buffer [bonus_room_2] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 Bonus Room 2 is offline. [WyzeBridge] Bonus Room 2 will cooldown for 10s. [side_yard] [CONTROL] ERROR - error='[-20021] AV_ER_SENDIOCTRL_ALREADY_CALLED', cmd=('param_info', '1,2,5,6,7,21,22,27,50') [kitchen] Stream stopped [side_yard] [CONTROL] ERROR - error='[-20021] AV_ER_SENDIOCTRL_ALREADY_CALLED', cmd='_bitrate' [lincs_room] [-13] IOTC_ER_TIMEOUT [WyzeBridge] 172.30.32.2 - - [21/May/2024 09:18:09] "GET / HTTP/1.1" 200 -

Environment (if applicable)

Dram23 commented 1 month ago

I'm having the same issue

mrlt8 commented 1 month ago

Can you set on_demand to false?

bobloadmire commented 1 month ago

On demand was set to false before I posted. Updated to 2.9.3, same issues.

songokussm commented 1 month ago

on_demand to false appears to have done nothing. went back to 2.90 and the connection drops have stopped.

mrlt8 commented 1 month ago

Is the connection more stable if audio is disabled?

songokussm commented 1 month ago

Disabling Audio was a major improvement. OnDemand=false

30 minutes of docker log: DOCKER-WYZE-BRIDGE v2.9.3 X86_64 [WyzeBridge] ♻️ Clearing local cache... [WyzeBridge] 🔍 Could not find local cache for 'auth'

previously the log would contain nothing but: [WyzeBridge] 📖 New client reading from Garage [WyzeBridge] 📕 Client stopped reading from Garage

edit: 7 hours later. No drop outs.

mrlt8 commented 1 month ago

Thank you. I'll have a look at the A/V syncing that may be causing the issue.

mrlt8 commented 1 month ago

@songokussm could you try the edge builds to see if that helps reduce some of those errors?