Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wyze v4 Support? #1145

Closed
KaneHart opened this issue Mar 26, 2024 · 41 comments
Closed

Wyze v4 Support? #1145

KaneHart opened this issue Mar 26, 2024 · 41 comments

Comments

@KaneHart
Copy link

No description provided.

@krusej23
Copy link

Just got my v4 today and it doesn't work.

@PerpSearch
Copy link

Well that's a deal breaker.

@heezy01
Copy link

heezy01 commented Mar 28, 2024

works for me on a nightly build of qsv, with the repository, mrlt8/wyze-bridge:nightly-qsv. it only works on a local network right now. none of my cams that are remote work at all. firmware version is 4.52.3.9455.

@KaneHart
Copy link
Author

works for me on a nightly build of qsv, with the repository, mrlt8/wyze-bridge:nightly-qsv. it only works on a local network right now. none of my cams that are remote work at all. firmware version is 4.52.3.9455.

Nice, had no clue was still in active development. How is the V4 btw?

@heezy01
Copy link

heezy01 commented Mar 28, 2024

it's only been like two hours since i set it up, but the 2k resolution is great! there is still some pixelation on fast motion. i have it set up looking out the front window, so the other features like the spotlight and the 2-way audio isn't for me. i really just wanted a clearer picture and so far it works for me.

@airbornetrooper82573
Copy link

Glad to see there is some support, hopefully come out of nightly. Looks like the Scrypted Wyze Plugin isn't supporting V3 Pro and newer so I'll have to set this up again.

@sutrosite
Copy link

works for me on the normal build

@krusej23
Copy link

krusej23 commented Apr 1, 2024

I am on version 2.3.17 in home assistant and the v4 camera will not show up but my v3 camera does.
Screenshot_20240401-070332

@Ulisses7777
Copy link

I had to remove the ENABLE_AUDIO variable to get me V4 to work.

@Dot50Cal
Copy link

Dot50Cal commented Apr 2, 2024

Ulisses7777 is correct. If you disable audio on your container, the v4 will work.

@rspierenburg
Copy link

Disabling audio works for me as well. Would be nice if this eventually works with audio but not a deal breaker for me at the moment.

@krusej23
Copy link

krusej23 commented Apr 5, 2024

Are you only turning the audio off on the v4 camera or all of your wyze cameras losing audio then too? How are you turning the audio off for it? I can't find that option in Home Assistant?

@Dot50Cal
Copy link

Dot50Cal commented Apr 5, 2024

I am using a docker container and turning the setting off via the ENABLE_AUDIO = FALSE parameter. I don't know what the equivalent is in Home Assistant.

@Ulisses7777
Copy link

FYI for me to get audio on my non v4 cameras I had to use ENABLE_AUDIO= FALSE and ENABLE_AUDIO_CAM_NAME=True for each of the non v4 cameras I want audio enabled in. Doing the reverse enabling audio and disabling it on the v4 cameras did not work

@rspierenburg
Copy link

Are you only turning the audio off on the v4 camera or all of your wyze cameras losing audio then too? How are you turning the audio off for it? I can't find that option in Home Assistant?

Its in the configurations for the addon.

image

@krusej23
Copy link

krusej23 commented Apr 5, 2024

Dang, that didn't fix it for me.

@Dot50Cal
Copy link

Dot50Cal commented Apr 5, 2024

FYI for me to get audio on my non v4 cameras I had to use ENABLE_AUDIO= FALSE and ENABLE_AUDIO_CAM_NAME=True for each of the non v4 cameras I want audio enabled in. Doing the reverse enabling audio and disabling it on the v4 cameras did not work

Thanks for this, it solves my issue for the most part :) I noticed that in my logs for the v4 failing audio it says it doesn't understand the input audio codec, so it definitely looks like the audio codec the v4 is using has changed and that is where the failure is happening. " Unknown input format: 'aac_eld' is what the log is showing. Edit: Looks like aac_eld is referenced in the code for this project so not sure 100% what's happening.

Just to help anyone else out here who is having the issue of wanting audio on the v3's & others, but also have v4's which aren't supported for audio at the moment, your config should look like this:

If you had the following setup:
Camera 1 is named foyer and its a v3
Camera 2 is named Door Camera and its a v4
Camera 3 is named Bedroom and its a v3

You'd put the following config:

  • ENABLE_AUDIO = FALSE
  • ENABLE_AUDIO_FOYER = TRUE
  • ENABLE_AUDIO_DOOR_CAMERA = FALSE
  • ENABLE_AUDIO_BEDROOM = TRUE

This will allow you to have audio on all your v3's and others except the v4. Use this Wiki page to play around:
https://github.com/mrlt8/docker-wyze-bridge/wiki/Camera-Audio

@mrlt8
Copy link
Owner

mrlt8 commented Apr 12, 2024

Can someone post some logs with the audio enabled to see why it's not working?

@Ulisses7777
Copy link

Can someone post some logs with the audio enabled to see why it's not working?

wyze-bridge | 🚀 DOCKER-WYZE-BRIDGE v2.6.0 X86_64 2.7.0-QSV BUILD [2024-01-11t04:20:03.378z] bbacb0f
wyze-bridge |
wyze-bridge | [WyzeBridge] 🔍 Could not find local cache for 'auth'
wyze-bridge | [WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
wyze-bridge | * Serving Flask app 'frontend'
wyze-bridge | * Debug mode: off
wyze-bridge | [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
wyze-bridge | * Running on all addresses (0.0.0.0)
wyze-bridge | * Running on http://127.0.0.1:5000
wyze-bridge | * Running on http://172.18.0.2:5000
wyze-bridge | [WyzeBridge] Press CTRL+C to quit
wyze-bridge | [WyzeBridge] 💾 Saving 'auth' to local cache...
wyze-bridge | [WyzeBridge] 🔍 Could not find local cache for 'user'
wyze-bridge | [WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
wyze-bridge | [WyzeBridge] 💾 Saving 'user' to local cache...
wyze-bridge | [WyzeBridge] 🔍 Could not find local cache for 'cameras'
wyze-bridge | [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
wyze-bridge | [WyzeBridge] [API] Fetched [10] cameras
wyze-bridge | [WyzeBridge] 💾 Saving 'cameras' to local cache...
wyze-bridge | [WyzeBridge] 🪄 FILTER ALLOWING: 1 of 10 cams
wyze-bridge | [WyzeBridge] [+] Adding BYCam [HL_CAM4]
wyze-bridge | [WyzeBridge] starting MediaMTX 1.1.1
wyze-bridge | [WyzeBridge] 🎬 1 stream enabled
wyze-bridge | [WyzeBridge] 🎉 Connecting to WyzeCam V4 - BYCam on 192.168.1.223
wyze-bridge | [bycam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 41%) FW: 4.52.3.9455 🔒
wyze-bridge | [bycam] 🔊 Audio Enabled - AAC_ELD > AAC/16,000Hz
wyze-bridge | [bycam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
wyze-bridge | Unknown input format: 'aac_eld'
wyze-bridge | [bycam] FFMPEG stopped
wyze-bridge | [WyzeBridge] 🎉 Connecting to WyzeCam V4 - BYCam on 192.168.1.223
wyze-bridge | [bycam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 47%) FW: 4.52.3.9455 🔒
wyze-bridge | [bycam] 🔊 Audio Enabled - AAC_ELD > AAC/16,000Hz
wyze-bridge | [bycam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
wyze-bridge | Unknown input format: 'aac_eld'
wyze-bridge | [bycam] FFMPEG stopped
wyze-bridge | [WyzeBridge] 🎉 Connecting to WyzeCam V4 - BYCam on 192.168.1.223
wyze-bridge | [bycam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 46%) FW: 4.52.3.9455 🔒
wyze-bridge | [bycam] 🔊 Audio Enabled - AAC_ELD > AAC/16,000Hz
wyze-bridge | [bycam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
wyze-bridge | Unknown input format: 'aac_eld'
wyze-bridge | [bycam] FFMPEG stopped
wyze-bridge | [WyzeBridge] 🎉 Connecting to WyzeCam V4 - BYCam on 192.168.1.223
wyze-bridge | [bycam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 48%) FW: 4.52.3.9455 🔒
wyze-bridge | [bycam] 🔊 Audio Enabled - AAC_ELD > AAC/16,000Hz
wyze-bridge | [bycam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
wyze-bridge | Unknown input format: 'aac_eld'
wyze-bridge | [bycam] FFMPEG stopped

mrlt8 added a commit that referenced this issue Apr 13, 2024
@mrlt8
Copy link
Owner

mrlt8 commented Apr 13, 2024

Thanks @Ulisses7777, could you try the latest dev build to see if that helps?

@Dave-Snigier
Copy link

Dave-Snigier commented Apr 13, 2024

Looks like that took care of part of it, but continues to have some issues @mrlt8 (PS thanks for this awesome project!).

Debug Logs
root@frigate:~# cat wyze-bridge/logs/debug.log 
2024/04/13 20:33:21 [WARNING][WyzeBridge] WARNING: invalid escape sequence '\:'
2024/04/13 20:33:21 [INFO][WyzeBridge] 🔍 Could not find local cache for 'auth'
2024/04/13 20:33:21 [INFO][WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...
2024/04/13 20:33:21 [INFO][WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.18.0.2:5000
2024/04/13 20:33:21 [INFO][WyzeBridge] Press CTRL+C to quit
2024/04/13 20:33:21 [DEBUG][WyzeBridge] Starting new HTTPS connection (1): auth-prod.api.wyze.com:443
2024/04/13 20:33:21 [DEBUG][WyzeBridge] https://auth-prod.api.wyze.com:443 "POST /api/user/login HTTP/1.1" 200 None
2024/04/13 20:33:21 [INFO][WyzeBridge] 💾 Saving 'auth' to local cache...
2024/04/13 20:33:21 [INFO][WyzeBridge] 🔍 Could not find local cache for 'user'
2024/04/13 20:33:21 [INFO][WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
2024/04/13 20:33:21 [DEBUG][WyzeBridge] Starting new HTTPS connection (1): api.wyzecam.com:443
2024/04/13 20:33:22 [DEBUG][WyzeBridge] https://api.wyzecam.com:443 "POST /app/user/get_user_info HTTP/1.1" 200 264
2024/04/13 20:33:22 [INFO][WyzeBridge] 💾 Saving 'user' to local cache...
2024/04/13 20:33:22 [INFO][WyzeBridge] 🔍 Could not find local cache for 'cameras'
2024/04/13 20:33:22 [INFO][WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
2024/04/13 20:33:22 [DEBUG][WyzeBridge] Starting new HTTPS connection (1): api.wyzecam.com:443
2024/04/13 20:33:23 [DEBUG][WyzeBridge] https://api.wyzecam.com:443 "POST /app/v2/home_page/get_object_list HTTP/1.1" 200 1720
2024/04/13 20:33:23 [INFO][WyzeBridge] [API] Fetched [2] cameras
2024/04/13 20:33:23 [INFO][WyzeBridge] 💾 Saving 'cameras' to local cache...
2024/04/13 20:33:23 [INFO][WyzeBridge] [+] Adding Backyard Cam [HL_CAM4]
2024/04/13 20:33:23 [INFO][WyzeBridge] [+] Adding Old Backyard Cam v3 [WYZE_CAKP2JFUS]
2024/04/13 20:33:23 [INFO][WyzeBridge] starting MediaMTX 1.1.1
2024/04/13 20:33:23 [INFO][WyzeBridge] 🎬 3 streams enabled
2024/04/13 20:33:24 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V4 - Backyard Cam on 10.2.21.244
2024/04/13 20:33:24 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:24 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V3 - Old Backyard Cam v3 on 10.2.20.110
2024/04/13 20:33:24 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:24 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V3 - Old Backyard Cam v3 on 10.2.20.110
2024/04/13 20:33:24 [DEBUG][backyard-cam] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:24 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:24 [DEBUG][old-backyard-cam-v3-sub] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:24 [DEBUG][old-backyard-cam-v3] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:24 [INFO][backyard-cam] AV Client Start: chan_id=0 expected_chan=0
2024/04/13 20:33:24 [DEBUG][backyard-cam] Now listening on channel id 0
2024/04/13 20:33:24 [DEBUG][backyard-cam] SEND <K10000ConnectRequest code=10000 resp_code=10001> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10000 txt_len=0> b''
2024/04/13 20:33:24 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10001 txt_len=17>: b'\x03\xc2$\xa1b\xd8\x1a\xb1\x10l\x92\xf1\xcb\x10.\xa1z'
2024/04/13 20:33:24 [DEBUG][backyard-cam] Sending response: <K10008ConnectUserAuth code=10008 resp_code=10009>
2024/04/13 20:33:24 [DEBUG][backyard-cam] SEND <K10008ConnectUserAuth code=10008 resp_code=10009> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10008 txt_len=30> b'\xfb\x1a\x80\xe7\xc4h\x12\xc6\x9e\xc6\x9a\xf5I\x9a\xfaH6dd6\x01\x01\x071514188'
2024/04/13 20:33:24 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10009 txt_len=738>: b'{"connectionRes":"1","cameraInfo":{"audioParm":{"sampleRate":"16000"},"videoParm":{"type":"H264","bitRate":"30","resolution":"2","fps":"20","horizontalFlip":"2","verticalFlip":"2","logo":"2","time":"1"},"settingParm":{"stateVision":"2","nightVision":"3","osd":"1","logSd":"1","logUdisk":"1","telnet":"2","tz":"-4","location":"1"},"basicInfo":{"firmware":"4.52.3.9455","type":"camera","hardware":"0.0.0.0","model":"HL_CAM4","mac":"80482C24C74A","wifidb":"63"},"channelResquestResult":{"video":"1","audio":"1"},"recordType":{"type":"1"},"sdParm":{"status":"2","capacity":"0","free":"0","detail":"0"},"uDiskParm":{"status":"2","capacity":"0","free":"0"},"apartalarmParm":{"type":"1","startX":"0","longX":"100","startY":"0","heightY":"100"}}}'
2024/04/13 20:33:24 [DEBUG][backyard-cam] SEND <K10056SetResolvingBit code=10056 resp_code=10057> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10056 txt_len=3> b'\x04\xb4\x00'
2024/04/13 20:33:24 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10057 txt_len=1>: b'\x01'
2024/04/13 20:33:24 [WARNING][old-backyard-cam-v3-sub] [-90] IOTC_ER_DEVICE_OFFLINE
2024/04/13 20:33:24 [WARNING][old-backyard-cam-v3] [-90] IOTC_ER_DEVICE_OFFLINE
2024/04/13 20:33:25 [INFO][WyzeBridge] 🪦 old-backyard-cam-v3-sub is offline. WILL ignore.
2024/04/13 20:33:25 [INFO][WyzeBridge] Disabling old-backyard-cam-v3-sub
2024/04/13 20:33:25 [INFO][WyzeBridge] 🪦 old-backyard-cam-v3 is offline. WILL ignore.
2024/04/13 20:33:25 [INFO][WyzeBridge] Disabling old-backyard-cam-v3
2024/04/13 20:33:25 [DEBUG][backyard-cam] No longer listening on channel id 0
2024/04/13 20:33:25 [INFO][backyard-cam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 63%) FW: 4.52.3.9455 🔒
2024/04/13 20:33:25 [INFO][backyard-cam] [AUDIO] codec='aac' sample_rate=16000 codec_id=144
2024/04/13 20:33:25 [INFO][backyard-cam] 🔊 Audio Enabled - AAC/16,000Hz
2024/04/13 20:33:25 [DEBUG][backyard-cam] sync camera time
2024/04/13 20:33:25 [DEBUG][backyard-cam] Now listening on channel id 0
2024/04/13 20:33:25 [DEBUG][backyard-cam] SEND <K10092SetCameraTime code=10092 resp_code=10093> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10092 txt_len=4> b'\x16\xec\x1af'
2024/04/13 20:33:25 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10093 txt_len=1>: b'\x01'
2024/04/13 20:33:25 [DEBUG][backyard-cam] No longer listening on channel id 0
2024/04/13 20:33:25 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:25 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:25 [WARNING][backyard-cam] WARNING: Audio pipe closed
2024/04/13 20:33:26 [INFO][backyard-cam] FFMPEG stopped
2024/04/13 20:33:28 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V4 - Backyard Cam on 10.2.21.244
2024/04/13 20:33:28 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:28 [DEBUG][backyard-cam] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:28 [INFO][backyard-cam] AV Client Start: chan_id=0 expected_chan=0
2024/04/13 20:33:28 [DEBUG][backyard-cam] Now listening on channel id 0
2024/04/13 20:33:28 [DEBUG][backyard-cam] SEND <K10000ConnectRequest code=10000 resp_code=10001> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10000 txt_len=0> b''
2024/04/13 20:33:28 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10001 txt_len=17>: b'\x03\x0e\\mT\x10E\x02\x92k\xba\x16\xe6\xbd\xa5\xb5@'
2024/04/13 20:33:28 [DEBUG][backyard-cam] Sending response: <K10008ConnectUserAuth code=10008 resp_code=10009>
2024/04/13 20:33:28 [DEBUG][backyard-cam] SEND <K10008ConnectUserAuth code=10008 resp_code=10009> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10008 txt_len=30> b'1\xba$\x8c#-)\xac\xe9\xeb\x05\xbd\xc0L\xdb\xc26dd6\x01\x01\x071514188'
2024/04/13 20:33:29 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10009 txt_len=738>: b'{"connectionRes":"1","cameraInfo":{"audioParm":{"sampleRate":"16000"},"videoParm":{"type":"H264","bitRate":"30","resolution":"2","fps":"20","horizontalFlip":"2","verticalFlip":"2","logo":"2","time":"1"},"settingParm":{"stateVision":"2","nightVision":"3","osd":"1","logSd":"1","logUdisk":"1","telnet":"2","tz":"-4","location":"1"},"basicInfo":{"firmware":"4.52.3.9455","type":"camera","hardware":"0.0.0.0","model":"HL_CAM4","mac":"80482C24C74A","wifidb":"61"},"channelResquestResult":{"video":"1","audio":"1"},"recordType":{"type":"1"},"sdParm":{"status":"2","capacity":"0","free":"0","detail":"0"},"uDiskParm":{"status":"2","capacity":"0","free":"0"},"apartalarmParm":{"type":"1","startX":"0","longX":"100","startY":"0","heightY":"100"}}}'
2024/04/13 20:33:29 [DEBUG][backyard-cam] SEND <K10056SetResolvingBit code=10056 resp_code=10057> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10056 txt_len=3> b'\x04\xb4\x00'
2024/04/13 20:33:29 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10057 txt_len=1>: b'\x01'
2024/04/13 20:33:30 [DEBUG][backyard-cam] No longer listening on channel id 0
2024/04/13 20:33:30 [INFO][backyard-cam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 61%) FW: 4.52.3.9455 🔒
2024/04/13 20:33:30 [INFO][backyard-cam] [AUDIO] codec='aac' sample_rate=16000 codec_id=144
2024/04/13 20:33:30 [INFO][backyard-cam] 🔊 Audio Enabled - AAC/16,000Hz
2024/04/13 20:33:30 [DEBUG][backyard-cam] sync camera time
2024/04/13 20:33:30 [DEBUG][backyard-cam] Now listening on channel id 0
2024/04/13 20:33:30 [DEBUG][backyard-cam] SEND <K10092SetCameraTime code=10092 resp_code=10093> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10092 txt_len=4> b'\x1b\xec\x1af'
2024/04/13 20:33:30 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10093 txt_len=1>: b'\x01'
2024/04/13 20:33:30 [DEBUG][backyard-cam] No longer listening on channel id 0
2024/04/13 20:33:30 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:30 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:30 [WARNING][backyard-cam] WARNING: Audio pipe closed
2024/04/13 20:33:30 [INFO][backyard-cam] FFMPEG stopped
2024/04/13 20:33:32 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V4 - Backyard Cam on 10.2.21.244
2024/04/13 20:33:32 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:32 [DEBUG][backyard-cam] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:32 [INFO][WyzeBridge] Stopping 3 streams
2024/04/13 20:33:32 [INFO][WyzeBridge] Stopping MediaMTX...
2024/04/13 20:33:32 [INFO][WyzeBridge] 👋 goodbye!
2024/04/13 20:33:33 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V4 - Backyard Cam on 10.2.21.244
2024/04/13 20:33:33 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:33 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V3 - Old Backyard Cam v3 on 10.2.20.110
2024/04/13 20:33:33 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:33 [INFO][WyzeBridge] 🎉 Connecting to WyzeCam V3 - Old Backyard Cam v3 on 10.2.20.110
2024/04/13 20:33:33 [WARNING][WyzeBridge] WARNING: This process (pid=1) is multi-threaded, use of fork() may lead to deadlocks in the child.
2024/04/13 20:33:33 [INFO][WyzeBridge] Stream monitoring stopped
2024/04/13 20:33:33 [DEBUG][old-backyard-cam-v3-sub] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:33 [DEBUG][old-backyard-cam-v3] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:33 [DEBUG][backyard-cam] Connect via IOTC_Connect_ByUIDEx
2024/04/13 20:33:33 [INFO][backyard-cam] AV Client Start: chan_id=0 expected_chan=0
2024/04/13 20:33:33 [DEBUG][backyard-cam] Now listening on channel id 0
2024/04/13 20:33:33 [DEBUG][backyard-cam] SEND <K10000ConnectRequest code=10000 resp_code=10001> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10000 txt_len=0> b''
2024/04/13 20:33:33 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10001 txt_len=17>: b'\x03\xaa(v\xa7t9\xe8\x94af{\x80\xec+\x97\xe6'
2024/04/13 20:33:33 [DEBUG][backyard-cam] Sending response: <K10008ConnectUserAuth code=10008 resp_code=10009>
2024/04/13 20:33:33 [DEBUG][backyard-cam] SEND <K10008ConnectUserAuth code=10008 resp_code=10009> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10008 txt_len=30> b'\x07\xe1\xed*b%\xa2\xfb"]\xd2+\xf1\x88\xeb\xc06dd6\x01\x01\x071514188'
2024/04/13 20:33:33 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10009 txt_len=738>: b'{"connectionRes":"1","cameraInfo":{"audioParm":{"sampleRate":"16000"},"videoParm":{"type":"H264","bitRate":"30","resolution":"2","fps":"20","horizontalFlip":"2","verticalFlip":"2","logo":"2","time":"1"},"settingParm":{"stateVision":"2","nightVision":"3","osd":"1","logSd":"1","logUdisk":"1","telnet":"2","tz":"-4","location":"1"},"basicInfo":{"firmware":"4.52.3.9455","type":"camera","hardware":"0.0.0.0","model":"HL_CAM4","mac":"80482C24C74A","wifidb":"62"},"channelResquestResult":{"video":"1","audio":"1"},"recordType":{"type":"1"},"sdParm":{"status":"2","capacity":"0","free":"0","detail":"0"},"uDiskParm":{"status":"2","capacity":"0","free":"0"},"apartalarmParm":{"type":"1","startX":"0","longX":"100","startY":"0","heightY":"100"}}}'
2024/04/13 20:33:33 [DEBUG][backyard-cam] SEND <K10056SetResolvingBit code=10056 resp_code=10057> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10056 txt_len=3> b'\x04\xb4\x00'
2024/04/13 20:33:33 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10057 txt_len=1>: b'\x01'
2024/04/13 20:33:33 [WARNING][old-backyard-cam-v3-sub] [-90] IOTC_ER_DEVICE_OFFLINE
2024/04/13 20:33:33 [WARNING][old-backyard-cam-v3] [-90] IOTC_ER_DEVICE_OFFLINE
2024/04/13 20:33:34 [DEBUG][backyard-cam] No longer listening on channel id 0
2024/04/13 20:33:34 [INFO][backyard-cam] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 62%) FW: 4.52.3.9455 🔒
2024/04/13 20:33:34 [INFO][backyard-cam] [AUDIO] codec='aac' sample_rate=16000 codec_id=144
2024/04/13 20:33:34 [INFO][backyard-cam] 🔊 Audio Enabled - AAC/16,000Hz
2024/04/13 20:33:34 [DEBUG][backyard-cam] sync camera time
2024/04/13 20:33:34 [DEBUG][backyard-cam] Now listening on channel id 0
2024/04/13 20:33:34 [DEBUG][backyard-cam] SEND <K10092SetCameraTime code=10092 resp_code=10093> <TutkWyzeProtocolHeader prefix=b'HL' protocol=5 code=10092 txt_len=4> b'\x1f\xec\x1af'
2024/04/13 20:33:34 [DEBUG][backyard-cam] RECV <TutkWyzeProtocolHeader prefix=b'HL' protocol=36 code=10093 txt_len=1>: b'\x01'
2024/04/13 20:33:34 [DEBUG][backyard-cam] No longer listening on channel id 0
2024/04/13 20:33:34 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:34 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:34 [WARNING][backyard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/13 20:33:34 [WARNING][backyard-cam] WARNING: Audio pipe closed
2024/04/13 20:33:35 [INFO][backyard-cam] FFMPEG stopped

@Ulisses7777
Copy link

Here is my Log from the latest dev build, there looks to be an issue with MQTT . Also wanted to add my thanks for the awesome project

Logs

wyze-bridge |
wyze-bridge | 🚀 DOCKER-WYZE-BRIDGE v2.7.0 X86_64 DEV BUILD [2024-04-13t05:21:15.512z] 1511b75
wyze-bridge |
wyze-bridge | [WyzeBridge] 📚 Using 'auth' from local cache...
wyze-bridge | * Serving Flask app 'frontend'
wyze-bridge | * Debug mode: off
wyze-bridge | [WyzeBridge] 📚 Using 'user' from local cache...
wyze-bridge | [WyzeBridge] 📚 Using 'cameras' from local cache...
wyze-bridge | [WyzeBridge] 🪄 FILTER ALLOWING: 1 of 10 cams
wyze-bridge | [WyzeBridge] [+] Adding BYCam [HL_CAM4]
wyze-bridge | [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
wyze-bridge | * Running on all addresses (0.0.0.0)
wyze-bridge | * Running on http://127.0.0.1:5000
wyze-bridge | * Running on http://172.18.0.2:5000
wyze-bridge | [WyzeBridge] Press CTRL+C to quit
wyze-bridge | [WyzeBridge] starting MediaMTX 1.1.1
wyze-bridge | Exception ignored in: <function Client.del at 0x7f21fe079800>
wyze-bridge | Traceback (most recent call last):
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 874, in del
wyze-bridge | self._reset_sockets()
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
wyze-bridge | self._sock_close()
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
wyze-bridge | if not self._sock:
wyze-bridge | ^^^^^^^^^^
wyze-bridge | AttributeError: 'Client' object has no attribute '_sock'
wyze-bridge | [WyzeBridge] [MQTT] Client.init() missing 1 required positional argument: 'callback_api_version'
wyze-bridge | Exception ignored in: <function Client.del at 0x7f21fe079800>
wyze-bridge | Traceback (most recent call last):
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 874, in del
wyze-bridge | self._reset_sockets()
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
wyze-bridge | self._sock_close()
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
wyze-bridge | if not self._sock:
wyze-bridge | ^^^^^^^^^^
wyze-bridge | AttributeError: 'Client' object has no attribute '_sock'
wyze-bridge | [WyzeBridge] [MQTT] Client.init() missing 1 required positional argument: 'callback_api_version'
wyze-bridge | [WyzeBridge] 172.18.0.1 - - [14/Apr/2024 04:58:08] "GET /api/sse_status HTTP/1.1" 200 -
wyze-bridge | Exception ignored in: <function Client.del at 0x7f21fe079800>
wyze-bridge | Traceback (most recent call last):
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 874, in del
wyze-bridge | self._reset_sockets()
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1133, in _reset_sockets
wyze-bridge | self._sock_close()
wyze-bridge | File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1119, in _sock_close
wyze-bridge | if not self._sock:
wyze-bridge | ^^^^^^^^^^
wyze-bridge | AttributeError: 'Client' object has no attribute '_sock'
wyze-bridge | [WyzeBridge] [MQTT] Client.init() missing 1 required positional argument: 'callback_api_version'
wyze-bridge | [WyzeBridge] [MQTT] 3/3 retries failed. Disabling MQTT.
wyze-bridge | [WyzeBridge] 🎬 1 stream enabled
wyze-bridge | [WyzeBridge] 🎉 Connecting to WyzeCam V4 - BYCam on 192.168.1.223
wyze-bridge | [bycam] 📡 Getting 180kb/s 2K stream (H264/15fps) via LAN mode (WiFi: 44%) FW: 4.52.3.9455 🔒
wyze-bridge | [bycam] Re-encoding audio for compatibility with WebRTC in MTX
wyze-bridge | [bycam] 🔊 Audio Enabled - AAC > LIBOPUS/16,000Hz
wyze-bridge | [bycam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
wyze-bridge | Option sample_rate not found.
wyze-bridge | [bycam] WARNING: Audio pipe closed
wyze-bridge | [bycam] FFMPEG stopped

@airbornetrooper82573
Copy link

How do you switch from latest to development build?

@mrlt8
Copy link
Owner

mrlt8 commented Apr 15, 2024

@airbornetrooper82573 You can edit your docker-compose file to point to the dev image:

image: mrlt8/wyze-bridge:dev

then pull the new image and restart the container:

docker compose pull
docker compose up 

@airbornetrooper82573
Copy link

airbornetrooper82573 commented Apr 15, 2024

I switched to dev and on the wyze-bridge GUI my cameras just loop in connecting/disconnecting status.

2024-04-15T12:10:52.624794268Z 🚀 DOCKER-WYZE-BRIDGE v2.7.0 X86_64 DEV BUILD [2024-04-13t05:21:15.512z] 1511b75
2024-04-15T12:10:52.624824251Z
2024-04-15T12:10:52.637189370Z * Serving Flask app 'frontend'
2024-04-15T12:10:52.637225648Z * Debug mode: off
2024-04-15T12:10:52.637934505Z [WyzeBridge] 📚 Using 'auth' from local cache...
2024-04-15T12:10:52.638483503Z [WyzeBridge] 📚 Using 'user' from local cache...
2024-04-15T12:10:52.639409671Z [WyzeBridge] 📚 Using 'cameras' from local cache...
2024-04-15T12:10:52.639557887Z [WyzeBridge] [+] Adding Driveway v4 [HL_CAM4]
2024-04-15T12:10:52.641257415Z [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
2024-04-15T12:10:52.641307938Z * Running on all addresses (0.0.0.0)
2024-04-15T12:10:52.641322619Z * Running on http://127.0.0.1:5000
2024-04-15T12:10:52.641335149Z * Running on http://192.168.1.215:5000
2024-04-15T12:10:52.641347702Z [WyzeBridge] Press CTRL+C to quit
2024-04-15T12:10:52.646770711Z [WyzeBridge] [+] Adding Front Porch Cam [HL_CAM4]
2024-04-15T12:10:52.647475454Z [WyzeBridge] [+] Adding Test [WYZE_CAKP2JFUS]
2024-04-15T12:10:52.648015695Z [WyzeBridge] [+] Adding Back Yard Cam [WYZE_CAKP2JFUS]
2024-04-15T12:10:52.648513339Z [WyzeBridge] starting MediaMTX 1.1.1
2024-04-15T12:10:52.649375619Z [WyzeBridge] 🎬 4 streams enabled
2024-04-15T12:10:53.651172340Z [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Driveway v4 on 192.168.10.164
2024-04-15T12:10:53.665241506Z [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
2024-04-15T12:10:53.671668681Z [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Test on 192.168.1.150
2024-04-15T12:10:53.677970166Z [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Back Yard Cam on 192.168.10.189
2024-04-15T12:10:54.556108126Z [WyzeBridge] 192.168.1.102 - - [15/Apr/2024 12:10:54] "GET /api/sse_status HTTP/1.1" 200 -
2024-04-15T12:10:54.850255948Z [test] [-90] IOTC_ER_DEVICE_OFFLINE
2024-04-15T12:10:55.640315025Z [driveway-v4] 📡 Getting 60kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 49%) FW: 4.52.3.9455 🔒
2024-04-15T12:10:55.640561303Z [back-yard-cam] 📡 Getting 60kb/s HD stream (H264/20fps) via LAN mode (WiFi: 87%) FW: 4.36.12.9357 🔒
2024-04-15T12:10:55.641620995Z [driveway-v4] Re-encoding audio for compatibility with WebRTC in MTX
2024-04-15T12:10:55.641675116Z [back-yard-cam] Re-encoding audio for compatibility with WebRTC in MTX
2024-04-15T12:10:55.641704682Z [driveway-v4] 🔊 Audio Enabled - AAC > LIBOPUS/16,000Hz
2024-04-15T12:10:55.641754020Z [back-yard-cam] 🔊 Audio Enabled - ALAW > LIBOPUS/16,000Hz
2024-04-15T12:10:55.686436895Z [WyzeBridge] 🪦 test is offline. WILL ignore.
2024-04-15T12:10:55.686505648Z [WyzeBridge] Disabling test
2024-04-15T12:10:55.718974547Z [front-porch-cam] 📡 Getting 60kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 36%) FW: 4.52.3.9455 🔒
2024-04-15T12:10:55.720144954Z [front-porch-cam] Re-encoding audio for compatibility with WebRTC in MTX
2024-04-15T12:10:55.720181157Z [front-porch-cam] 🔊 Audio Enabled - AAC > LIBOPUS/16,000Hz
2024-04-15T12:10:55.733183930Z [driveway-v4] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024-04-15T12:10:55.733404647Z [back-yard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024-04-15T12:10:55.810727956Z [front-porch-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024-04-15T12:10:55.813610483Z Option sample_rate not found.
2024-04-15T12:10:55.824276855Z [driveway-v4] WARNING: Audio pipe closed
2024-04-15T12:10:55.877013073Z [WyzeBridge] ✅ '/back-yard-cam stream is UP! (3/3)
2024-04-15T12:10:56.356763987Z [driveway-v4] FFMPEG stopped
2024-04-15T12:10:57.664225200Z Option sample_rate not found.
2024-04-15T12:10:57.674495583Z [front-porch-cam] WARNING: Audio pipe closed
2024-04-15T12:10:57.885727118Z [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Driveway v4 on 192.168.10.164
2024-04-15T12:10:58.169641954Z [front-porch-cam] FFMPEG stopped
2024-04-15T12:10:59.869735506Z [driveway-v4] 📡 Getting 60kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 50%) FW: 4.52.3.9455 🔒
2024-04-15T12:10:59.870865995Z [driveway-v4] Re-encoding audio for compatibility with WebRTC in MTX
2024-04-15T12:10:59.870931137Z [driveway-v4] 🔊 Audio Enabled - AAC > LIBOPUS/16,000Hz
2024-04-15T12:10:59.901899999Z [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
2024-04-15T12:11:00.105156848Z [driveway-v4] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024-04-15T12:11:01.163179550Z Option sample_rate not found.
2024-04-15T12:11:01.173703732Z [driveway-v4] WARNING: Audio pipe closed
2024-04-15T12:11:01.723816196Z [driveway-v4] FFMPEG stopped

I commented out some of the options in my compose that I was using in order for it to work before switching to dev.

version: '2.4'
services:
wyze-bridge:
container_name: wyze-bridge
network_mode: host
restart: unless-stopped
image: mrlt8/wyze-bridge:dev
ports:
- 1935:1935 # RTMP
- 8554:8554 # RTSP
- 8888:8888 # HLS
- 8889:8889 #WebRTC
- 8189:8189/udp # WebRTC/ICE
- 5000:5000 # WEB-UI
environment:
# [OPTIONAL] (Can be set in the WebUI):
- WYZE_EMAIL=myemail
- WYZE_PASSWORD=***
# [OPTIONAL] IP Address of the host to enable WebRTC e.g.,:
- WB_IP=192.168.1.50
- ON_DEMAND=False
- IGNORE_OFFLINE=true
- FPS_FIX=true
- QUALITY=HD60
- NET_MODE=P2P
# [OPTIONAL] Wyze API credentials:
- API_ID=myid
- API_KEY=mykey
- ENABLE_AUDIO=True
# - ENABLE_AUDIO_Driveway_v4=FALSE
# - ENABLE_AUDIO_Front_Porch_Cam=FALSE
# - ENABLE_AUDIO_Back_Yard_Cam=TRUE

mrlt8 added a commit that referenced this issue Apr 15, 2024
@mrlt8
Copy link
Owner

mrlt8 commented Apr 15, 2024

Thanks @Ulisses7777 I updated the MQTT section for compatibility with paho 2.x.

I also removed the sample_rate flag if the audio source is aac_eld.

@airbornetrooper82573
Copy link

I have audio on both my V4 cams in the wyze-bridge interface and on my iOS devices now. I had to enable audio in the environment settings and I refreshed dev.

[WyzeBridge] WARNING: invalid escape sequence ':'
🚀 DOCKER-WYZE-BRIDGE v2.7.0 X86_64 DEV BUILD [2024-04-15t14:52:38.353z] 77c7cd1
[WyzeBridge] 🔍 Could not find local cache for 'auth'
[WyzeBridge] ☁️ Fetching 'auth' from the Wyze API...

  • Serving Flask app 'frontend'
  • Debug mode: off
    [WyzeBridge] WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:5000
  • Running on http://192.168.1.215:5000
    [WyzeBridge] Press CTRL+C to quit
    [WyzeBridge] 💾 Saving 'auth' to local cache...
    [WyzeBridge] 🔍 Could not find local cache for 'user'
    [WyzeBridge] ☁️ Fetching 'user' from the Wyze API...
    [WyzeBridge] 💾 Saving 'user' to local cache...
    [WyzeBridge] 🔍 Could not find local cache for 'cameras'
    [WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
    [WyzeBridge] [API] Fetched [4] cameras
    [WyzeBridge] 💾 Saving 'cameras' to local cache...
    [WyzeBridge] [+] Adding Driveway v4 [HL_CAM4]
    [WyzeBridge] [+] Adding Front Porch Cam [HL_CAM4]
    [WyzeBridge] [+] Adding Test [WYZE_CAKP2JFUS]
    [WyzeBridge] [+] Adding Back Yard Cam [WYZE_CAKP2JFUS]
    [WyzeBridge] starting MediaMTX 1.1.1
    [WyzeBridge] 🎬 4 streams enabled
    [WyzeBridge] 192.168.1.102 - - [15/Apr/2024 15:28:42] "GET /api/sse_status HTTP/1.1" 200 -
    [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Driveway v4 on 192.168.10.164
    [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
    [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Test on 192.168.1.150
    [WyzeBridge] 🎉 Connecting to WyzeCam V3 - Back Yard Cam on 192.168.10.189
    [test] [-90] IOTC_ER_DEVICE_OFFLINE
    [front-porch-cam] 📡 Getting 60kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 34%) FW: 4.52.3.9455 🔒
    [front-porch-cam] Re-encoding audio for compatibility with WebRTC in MTX
    [front-porch-cam] 🔊 Audio Enabled - AAC_ELD > LIBOPUS/16,000Hz
    [driveway-v4] 📡 Getting 60kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 50%) FW: 4.52.3.9455 🔒
    [driveway-v4] Re-encoding audio for compatibility with WebRTC in MTX
    [driveway-v4] 🔊 Audio Enabled - AAC_ELD > LIBOPUS/16,000Hz
    [back-yard-cam] 📡 Getting 60kb/s HD stream (H264/20fps) via LAN mode (WiFi: 97%) FW: 4.36.12.9357 🔒
    [back-yard-cam] Re-encoding audio for compatibility with WebRTC in MTX
    [back-yard-cam] 🔊 Audio Enabled - ALAW > LIBOPUS/16,000Hz
    [WyzeBridge] 🪦 test is offline. WILL ignore.
    [WyzeBridge] Disabling test
    [driveway-v4] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
    [WyzeBridge] ✅ '/driveway-v4 stream is UP! (3/3)
    [front-porch-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
    [back-yard-cam] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
    [back-yard-cam] [video] super slow
    [back-yard-cam] WARNING: clear buffer
    [WyzeBridge] ✅ '/front-porch-cam stream is UP! (3/3)
    [WyzeBridge] ✅ '/back-yard-cam stream is UP! (3/3)
    [WyzeBridge] 📖 New client reading from driveway-v4
    [WyzeBridge] 📖 New client reading from front-porch-cam
    [WyzeBridge] 📖 New client reading from front-porch-cam
    [WyzeBridge] 📖 New client reading from driveway-v4

@Ulisses7777
Copy link

@mrlt8 Your newest dev build did the trick, I have audio on the V4 cams and MQTT is also working. Thanks for all the hard work and this project!

@krusej23
Copy link

Will this be put into a stable release soon?

@airbornetrooper82573
Copy link

Not sure why but one of my V4 stops working every day and I have to restart docker Wyze bridge. It’s still showing up on Wyze app though

WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [4] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[WyzeBridge] ⏰ Timed out connecting to Front Porch Cam.
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[WyzeBridge] ⏰ Timed out connecting to Front Porch Cam.
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[WyzeBridge] ⏰ Timed out connecting to Front Porch Cam.
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[WyzeBridge] ⏰ Timed out connecting to Front Porch Cam.
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[WyzeBridge] ⏰ Timed out connecting to Front Porch Cam.
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] ☁️ Fetching 'cameras' from the Wyze API...
[WyzeBridge] [API] Fetched [4] cameras
[WyzeBridge] 💾 Saving 'cameras' to local cache...
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-13] IOTC_ER_TIMEOUT
[WyzeBridge] 🎉 Connecting to WyzeCam V4 - Front Porch Cam on 192.168.10.166
[front-porch-cam] [-90] IOTC_ER_DEVICE_OFFLINE
[WyzeBridge] 🪦 front-porch-cam is offline. WILL ignore.
[WyzeBridge] Disabling front-porch

@mrlt8
Copy link
Owner

mrlt8 commented Apr 21, 2024

Does restarting the bridge fix the connection issue? Can you also try to restart the camera as well?

@airbornetrooper82573
Copy link

airbornetrooper82573 commented Apr 21, 2024

The camera stays working on the Wyze app. Restarting the bridge brings it right back up on the Home app. I have 2 v4 cameras and it’s just the one on my front porch that does it. Good signal at its location.

mrlt8 added a commit that referenced this issue Apr 22, 2024
* update docker/login-action

* flush buffer when going out of sync

* HD support for HL_CFL2 #1112

* Reduce sleep interval for video #1042

* AAC_ELD as AAC for v4 #1145

* limit clock syncs if video is slow

* Use frame_size=5 for floodlight #1112

* Use K10050 to check HL_CFL2 bitrate #1112

* fix paho mqtt v2.x changes #1145

* don't specify sample rate if aac_eld #1145

* ignore bitrate for HL_CFL2 #1112

* K10058TakePhoto payload #1153

* access token

* Adjust sleep interval on frame error #1042

* check for slow frames when no audio #1042

* Adjust frame_size for HL_CFL2  #1112

* fix typo #1112

* less aggressive buffer clean

* changelog
@Dot50Cal
Copy link

I just tried the newly released 2.8.1 but was unsuccessful in getting the v4 to function with it. I did not see any errors in the logs relating to the v4 camera, but no feed is being supplied and the thumbnail/video feed remains frozen from many days ago when I was using the audio fix to get it working.

I'll do some more testing after work unless someone else is able to do that.

@airbornetrooper82573
Copy link

I changed back to latest since it's been updated and also changed from P2P to LAN. I'll check tomorrow to see if the camera stayed up more than 24 hours without restarting the bridge. Here's my docker compose I'm using currently:

version: '2.4'
services:
    wyze-bridge:
        container_name: wyze-bridge
        network_mode: host
        restart: unless-stopped
        image: mrlt8/wyze-bridge:latest
        ports:
            - 1935:1935 # RTMP
            - 8554:8554 # RTSP
            - 8888:8888 # HLS
            - 8889:8889 #WebRTC
            - 8189:8189/udp # WebRTC/ICE
            - 5000:5000 # WEB-UI
        environment:
            # [OPTIONAL] (Can be set in the WebUI):
            - WYZE_EMAIL=myemailaddress
            - WYZE_PASSWORD=mypassword
            # [OPTIONAL] IP Address of the host to enable WebRTC e.g.,:
            - WB_IP=192.168.1.50
            - ON_DEMAND=False
            - IGNORE_OFFLINE=true
            - FPS_FIX=true
            - QUALITY=HD60
            - NET_MODE=LAN
            # [OPTIONAL] Wyze API credentials:
            - API_ID=myid       
            - API_KEY=mykey
            - ENABLE_AUDIO=True

@Dot50Cal
Copy link

Disabling audio with 2.8.1 fixes the problem with the v4 again. Here are my logs related to the v4 camera when audio is disabled (it works):

`

2024/04/22 18:07:35 stdout [WyzeBridge] ✅ '/foyer-camera stream is UP! (3/3)
2024/04/22 18:07:35 stdout [foyer-camera] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/22 18:07:35 stdout [foyer-camera] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 62%) FW: 4.52.3.9455 🔒
2024/04/22 18:07:33 stdout [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Foyer Camera on 192.168.0.54

`

Here is what I see when audio is enabled on 2.8.1 (it doesn't work) Note that I trimmed logs that did not reference the Foyer v4 camera):

`

2024/04/22 18:11:48 stdout [foyer-camera] WARNING: Skipping wrong frame_size at start of stream [frame_size=1]
2024/04/22 18:11:47 stdout [foyer-camera] 🔊 Audio Enabled - AAC_ELD/16,000Hz
2024/04/22 18:11:47 stdout [foyer-camera] 📡 Getting 180kb/s 2K stream (H264/20fps) via LAN mode (WiFi: 63%) FW: 4.52.3.9455 🔒
2024/04/22 18:11:45 stdout [WyzeBridge] 🎉 Connecting to WyzeCam V4 - Foyer Camera on 192.168.0.54
`

@airbornetrooper82573
Copy link

airbornetrooper82573 commented Apr 22, 2024

I had to switch back to P2P as my stream was crawling. I also changed quality to HD120. I’m getting full audio on my v4 cams.

@mrlt8
Copy link
Owner

mrlt8 commented Apr 23, 2024

I'm going to close this issue for now as basic functionality for the v4 was added in v2.8.x, however, feel free to open a new issue.

@Dot50Cal is the camera timing out when audio is enabled? Can you give it some extra time to see if it eventually gets the correct resolution? Feel free to open a new issue if you still can't get audio to work.

@mrlt8 mrlt8 closed this as completed Apr 23, 2024
@paulcusick3
Copy link

Now that this works for v4, can we re-try floodlight pro. Same specs on camera. It blocked as not compatible on compose now. I have a pro if someone can remove that block from a beta I can test.

@mrlt8
Copy link
Owner

mrlt8 commented Apr 23, 2024

@paulcusick3 unfortunately, the floodlight pro is a completely different camera made by Leedarson and uses a different method to stream compared to the V4 and Floodlight V2 which are made by Hualai and use the same SDK as all the existing cameras. Maybe in the future, but not at this time.

@rspierenburg
Copy link

Just updated to Ver 2.9.5 .
Wyze V4 wouldn't connect once again. I disabled audio for all cameras and it works again. Seems the latest update broke the fix above.

@mrlt8
Copy link
Owner

mrlt8 commented Jun 3, 2024

@rspierenburg could you open a new issue with logs when the audio is enabled?

Repository owner locked as resolved and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests