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.58k stars 158 forks source link

RTSP not able to connect #1324

Open bjohns029 opened 3 weeks ago

bjohns029 commented 3 weeks ago

I setup WyzeBridge in a docker compose and am getting an error saying that the connection to the bridge was lost whenever trying to click the RTSP link. Can anyone assist?

Trying to setup the Wyze Cam in Prusa Connect eventually, but need the RTSP feed to work first.

mrlt8 commented 3 weeks ago

Is this with firefox by any chance?

Anything in the logs? Can you try setting ON_DEMAND=False?

bjohns029 commented 3 weeks ago

It is in Firefox... I do not see anything in the logs. Is the ON_DEMAND parameter an environment variable? If so, it did not help.

mrlt8 commented 3 weeks ago

Can you post your logs from Docker?

Firefox does seem to have issues with the SSE connection to the bridge, but I don't think the webUI issue should have any affect the rtsp stream.

bjohns029 commented 3 weeks ago

[WyzeBridge] 👻 MK4 Cam is offline. [WyzeBridge] MK4 Cam will cooldown for 10s. [WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - MK4 Cam on 10.7.7.77 [mk4-cam] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 MK4 Cam is offline. [WyzeBridge] MK4 Cam will cooldown for 10s. [WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - MK4 Cam on 10.7.7.77 [WyzeBridge] 📖 New client reading from garage-cam [mk4-cam] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 📕 Client stopped reading from garage-cam [WyzeBridge] 👻 MK4 Cam is offline. [WyzeBridge] MK4 Cam will cooldown for 10s. [WyzeBridge] 10.7.7.71 - - [16/Aug/2024 14:06:04] "GET /snapshot/garage-cam.jpg HTTP/1.1" 200 - [WyzeBridge] 📖 New client reading from printers-cam [WyzeBridge] 📕 Client stopped reading from printers-cam [WyzeBridge] 10.7.7.71 - - [16/Aug/2024 14:06:12] "GET /snapshot/printers-cam.jpg HTTP/1.1" 200 - [WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - MK4 Cam on 10.7.7.77 [mk4-cam] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 MK4 Cam is offline. [WyzeBridge] MK4 Cam will cooldown for 10s. [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API... [WyzeBridge] [API] Fetched [3] cameras [WyzeBridge] 💾 Saving 'cameras' to local cache... [WyzeBridge] 10.7.7.71 - - [16/Aug/2024 14:06:19] "GET /thumb/printers-cam.jpg HTTP/1.1" 200 - [WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - MK4 Cam on 10.7.7.77 [mk4-cam] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 MK4 Cam is offline. [WyzeBridge] MK4 Cam will cooldown for 10s. [WyzeBridge] 🎉 Connecting to WyzeCam Pan V3 - MK4 Cam on 10.7.7.77 [mk4-cam] [-90] IOTC_ER_DEVICE_OFFLINE [WyzeBridge] 👻 MK4 Cam is offline. [WyzeBridge] MK4 Cam will cooldown for 10s.

mrlt8 commented 3 weeks ago

It looks like the camera is off and/or has the privacy mode turned on.

bjohns029 commented 3 weeks ago

Sorry, MK4 Cam is a different camera - trying to get camera "Printers Cam" to work. It opens the HLS stream, but not RTMP or RTSP.

image

mrlt8 commented 3 weeks ago

Can you try setting WB_AUTH=False in your docker compose?

bjohns029 commented 3 weeks ago

Okay, just tried that and still getting error. Nothing in logs.

image

mrlt8 commented 3 weeks ago

Can you try opening the rtsp stream in a media player like VLC?

bjohns029 commented 3 weeks ago

Okay, it does allow me to do that!