Open muxa opened 2 years ago
I have been trying to figure this out as well. The best I can figure out so far is that I think HomeKit wants MJPEG video (though apple was the biggest proponent of H264.) and currently the integration passes the video through as-is, in whatever format the camera provides. The "Generic" camera forces MJPEG via FFMPEG which is why it works. I think if there is a way to know what video format the camera provides, and what format HomeKit is requesting HA can automatically convert via FFMPEG when necessary.
I had the same issue, I was able to fix it by setting the stream type as RTSP and 264 in the config options for the integration. See if that helps
I have also adjusted it as follows, with me unfortunately no camera comes even after restart HassIO.
I actually ended up installing Scrypted it handles all of the HomeKit for me and all videos show up instantly (I also use it to rebroadcast streams to HA and they work more stable). There is a Home Assistant addon of Scrypted as well if you want to run it on the same platform as HA.
Describe the bug Camera streaming works in HA but does not work via HomeKit (waiting for the stream times out). I have tried different permutations of the integration configuration parameters for protocol, stream and codec without any luck.
To Reproduce Every time I open the camera from the Apple Home app it does not work. HA logs shows:
Expected behavior I'm expecting the camera stream to work via HomeKit, as it works for generic cameras.
Screenshots n/a
Environment: Please provide useful information about your environment, like:
Additional context The above mentioned problem happens with 2 cameras setup via Reolink integration, however it does not happen with another camera configured using generic camera: