koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
4.21k stars 249 forks source link

Group integrated camera always loads slower than standalone added in HomeKit #675

Closed jimsmt closed 1 year ago

jimsmt commented 1 year ago

Hi, first I want to thank you for this great project

I have a Hikvision 4K camera, added to Scrypted via ONVIF protocol, if I add this camera directly as a standalone device into HomeKit, it loads really fast, instantly, almost no any delay. But if I create a device group with a doorbell button, the camera and some other motion sensors, then add the grouped video doorbell into HomeKit, it always take about 1 second to load the video stream, much slower than loading a standalone camera.

I checked the console for logs, everything seems the same and no problem at all. I tried enable and disable the Rebroadcast plugin for the camera and the grouped doorbell, didn't change anything

Any clue what cause the extra delay?

koush commented 1 year ago

need logs. make sure you are not rebroadcasting both the group and the actual device either.

jimsmt commented 1 year ago

Log differ: Rebroadcast enabled separately for each other: https://www.diffchecker.com/7Awf9bEc/ Rebroadcast disable for both: https://www.diffchecker.com/Tu9OSRfK/

Left is grouped video doorbell, always takes 1 sec to load Right is standalone camera, load instantly without any buffering

Yes I tried all the permutation and combination of the rebroadcast plugin for the two devices, didn't make any change

Scrypted is version 0.7.41 running on OpenWrt Docker image, problem exists from the beginning when I started using Scrypted version 0.6

koush commented 1 year ago

homekit secure video enabled camera takes longer to load because apple delays live stream to load all the video clips into the ui. known bug.

jimsmt commented 1 year ago

I disabled HKSV for the grouped doorbell, started iPhone, loading time is still 1 sec Then enabled HKSV for the standalone camera, restart iPhone, loading is still instant

Any clue?

jimsmt commented 1 year ago

I deleted the grouped doorbell in Home app, reset HomeKit on Scrypted, then add it again back to my iPhone, enabled HKSV, now it's loading instantly too

So it seems to be my iPhone's problem, sorry for wasting of your time