-
Notifications
You must be signed in to change notification settings - Fork 344
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
Nest camera stops working after 5 minutes #723
Comments
I think this is a limit Google enforced in their API unless you stream it on the Google Home App. |
Another fun thing I experienced recently, was that when the stream stops working, then Frigate suddenly used all remaining 20 GB RAM on my machine within seconds, rendering the machine unresponsive due to lack of RAM. |
go2rtc not using extend API. There are no such plans in the near future. |
I'm sorry, but I'm having a hard time understanding what you mean by your second line
Should it be reconnecting automatically, or not? |
It should be reconnecting. But I haven't this source for testing. |
Hello how exactly do I get the 'device_id=' and the 'refresh_token' ? |
It's kind of off topic, but you can use this site: |
I might have a go at making a PR for it at some point when I have the time. |
If the code will be correct and logical - I will accept it :) |
I'll do my best. I've no experience in Go, but I've many years of professional experience in C# |
I'm afraid I won't have the time to get the proper understanding of the workings, to fix the issue. But I'll share my sparse findings here: When I manually close the stream by closing VLC, then the disconnected even is absent, and it only closes. I believe the first step should be to fix the issue of reconnection. Because even if the extend stream is implemented, there could be edge cases where it's not fired in time, or for other reasons fail. |
After the stream expires, frigate shows the stream as full of flickering artifacts, and it uses up all my RAM (~30 GB) in seconds. If I change this small thing, it successfully reconnects without issue: Change from: So basically no longer closing the connection on Disconnect. However, I'm hesitant to make such a change in webrtc module since it could cause unintented consequences in other areas than Nest. But maybe you can use this information to implement a proper fix, @AlexxIT ? |
Just removing |
Investigating is a bit hard, because whenever it happens my server more or less crash due to frigate consuming all the ram. |
So this is a very rare problem? |
No it's very reproducible. The stream expires after the 5 minute mark, and then everything goes south |
Should be fixed #855 |
After 5 minutes, the nest stream stops working. I've set it up manually with the parameters (not through HA).
So something about the reconnection seems to not be working correctly.
Nothing seems to be logged around the time when the stream stops working, so I'm not sure what else I can provide.
The text was updated successfully, but these errors were encountered: