-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
various fixes and improvements to use wyzecam in other projects #1066
Conversation
Thanks @koush, I'm a huge fan of scrypted! Is there a link for the plugin? |
Right here: Happy to let you take over if you're interested. I don't have many Wyze cams or your depth of knowledge on this hardware. There is/was still quite a bit of instability, and here are my findings so far:
Also, where is this tutk library from? Seems to be a leak from many years ago. |
Yeah, the multiple stream issue seems to be a bug in the version of the library that we're using. It used to be fine with the older version of the SDK that's floating around, but that version doesn't support the newer authentication and AV methods. The tutk library we're currently using is slightly newer than the one floating around and was downloaded from The official app seems to constantly query for frames until avRecvFrameData2 returns an error and will do a |
I see. I took a peek at the code and I see that there's two sleeps in there, and assumptions about the sleep time based on frame rate. I think it could be improved by using an exponential moving average to auto calculate the optimal sleep based on data receive rate. I'm not sure how my usage differs from wyze bridge, but I'm guessing something is causing it to not read fast enough and then there might be a buffer overlow in tutk? No idea tbh. |
Using an extremely short sleep to time the frequency at which video is received, the interval is quite irregular:
|
these are various fixes I needed for the wyze plugin in scrypted.
https://github.com/koush/scrypted