gtxaspec / wz_mini_hacks

wz camera mods... make your camera better.
1.23k stars 104 forks source link

Wyze v2 uses wrong device nodes in Go2RTC #720

Open reidprichard opened 5 months ago

reidprichard commented 5 months ago

I just installed on a Wyze v2 (have had it running on three v3s) and found the RTSP streams didn't work. After a bit of digging, I found that the device nodes in the Go2RTC config were set to the defaults of /dev/video1 and /dev/video2 (1080p and 360p, respectively) rather than /dev/video6 and /dev/video7 as the comment in the Go2RTC config helpfully stated. Fixing the nodes got everything working.

I'm not sure if it's possible to auto-detect the device type and set the nodes in the Go2RTC config accordingly. If it's not, perhaps a note in the docs stating that this change is necessary for the v2?

Mathews2115 commented 5 months ago

I think it's commented somewhere here but for v2 and pan v1 cams, you'll have to go update the go2rtc config in wz_mini\etc\go2rtc. You can manually change them to video6/7 there.

gtxaspec commented 5 months ago

see https://github.com/gtxaspec/wz_mini_hacks/wiki/Video-Streaming

reidprichard commented 5 months ago

Ahh, I see that now. Would it be easy to add a go2rtc config item to select camera type and update this behind the scenes? Or maybe I'm the only one using the v2 and it's not worth the trouble. At any rate, hopefully this issue makes the solution more googleable.

bjs-pdx commented 1 month ago

I just found this. Was having problems with a V2. Might be worthwhile noting it in the wiki somewhere (config file entries?). It isn't exactly obvious that you need to change the go2rtc.yaml file to make this work.