Open Kugelfang666 opened 1 month ago
It has been always choppy due to not fully compatible audio codec. Apple use proprietary audio codec in homekit, that's why it's not a part of HA. Something like this I believe.
Thanks for looking into this.
From the linked solution months go2rtc repro it seemed to be a mismatch in pakage sizes depending on connection type (WiFi / cellular)
For the go2rtc HomeKit server this issues was successfully resolved. Hence I hope that this can server as a template for the solution in HA too
Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (homekit
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
homekit documentation homekit source (message by IssueLinks)
HomeKit calls ffmpeg directly and there is no reprocessing of the audio stream where the timestamps could be rewritten. Something would need to be written to reprocess the audio stream to be able to implement something similar.
The problem
A camera exposed to HomeKit via HA exhibits choppy audio. A similar issue has been discussed, identified and fixed elsewhere.
https://github.com/AlexxIT/go2rtc/issues/667
https://github.com/AlexxIT/go2rtc/pull/843
I could verify that If I expose my camera using the HomeKit server of go2rtc everything is working as expected.
If I use the HomeAssitant HomeKit server with the go2rtc stream as source the audio is choppy.
What version of Home Assistant Core has the issue?
2024.5.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
homekit
Link to integration documentation on our website
https://www.home-assistant.io/integrations/homekit/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response