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

HomeKit Secure Video stability #91

Closed
codyc1515 opened this issue Dec 27, 2021 · 9 comments
Closed

HomeKit Secure Video stability #91

codyc1515 opened this issue Dec 27, 2021 · 9 comments

Comments

@codyc1515
Copy link

I have a number of certified HKSV cameras in my home which all work fine with zero issues. However my one Scrypted camera with HKSV seems to disconnect randomly and go online / offline. Any thoughts on things I can check?

@kingb2019
Copy link

Hi Cody, there are many unknown variables that could cause this. You need to provide more information if possible. Such as what hardware/OS is Scrypted running on? What are the hardware specs? Is the hardware sharing resources? What is the name/model of camera & video transmission media? What plugins are you using? When you are saying disconnect/offline/online is this a statement being made by pinging the camera, visually seeing the video stream start/stop,l or receiving push notifications? Are you seeing any video pixelation/smudging?

@baylanger
Copy link

baylanger commented Dec 30, 2021

@kingb2019 Quick comment on this topic.

It'd be great if someone could write a script that collect hardware info, OS & app metrics, any OS/hardware error, logs stripped of username/password/private config/etc.

I'd do it but I'm new here and hoping I won't have this same issue.

@codyc1515 after a fresh restart of the process/reboot, how long does it take for scrypted to show a disconnect? I'd hope that info is in the logs. Trying to understand if it takes a "minimum" time before the first disconnect starts to show up.

@baylanger
Copy link

baylanger commented Dec 30, 2021

@codyc1515 Does your camera supports ONVIF? If so can you try using that protocol? I couldn't find recent issues for that protocol, either not popular or it's more stable?

[edit] I keep forgetting to @ :/

@codyc1515
Copy link
Author

codyc1515 commented Dec 30, 2021

Hey guys.

Fairly typical setup with Raspberry Pi 4 (4GB). Also running Homebridge.

Camera is TP-Link C200 using OnVif plug-in and has no issues with tearing / smudging. I find the camera is actually a lot smoother with Scrypted than with the standard ffmpeg camera Homebridge plug-in.

When the issue happens you get a notification from the Home app that the camera went offline. When browsing to the camera in the Home app the camera shows as "This camera is not responding".

In the below screenshot, the camera went offline then online again over a period of time. However after a while it went fully offline for over 8 hours. I only managed to restore the camera by performing a service restart.

I'll check next time it is inaccessible in the Home app if I can access in the Scrypted web UI (software issue) and the native app (connectivity issue).

image

@koush
Copy link
Owner

koush commented Dec 30, 2021

Is this a local or docker install? You'll see that message if the scrypted server is crashing. It comes back online because it's restarting.

@codyc1515
Copy link
Author

I don't recall 100% but I believe docker. Good point though. I will check it next time.

@codyc1515
Copy link
Author

@koush Where can I find the HAP-NodeJS directory? It seems to be referencing the "project directory / external / HAP-NodeJS" folder but this is empty. I would like to make some changes to enhance the stability. I don't believe it is related to the work you have done directly but would like to test first before pushing them out.

@koush
Copy link
Owner

koush commented Dec 31, 2021

@koush Where can I find the HAP-NodeJS directory? It seems to be referencing the "project directory / external / HAP-NodeJS" folder but this is empty. I would like to make some changes to enhance the stability. I don't believe it is related to the work you have done directly but would like to test first before pushing them out.

hop on discord and I can help you out.
probably need to git submodule init and git submodule update

@koush
Copy link
Owner

koush commented Dec 31, 2021

I don't recall 100% but I believe docker. Good point though. I will check it next time.

just to be clear, the online/offline only happens if your scrypted server is unreachable or disconnected from homekit hubs. it doesn't sound like the server is crashing (I think you would have noticed the restarts?), so it's likely a network issue.

@koush koush closed this as completed Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants