-
Notifications
You must be signed in to change notification settings - Fork 558
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
Choppy camera sound in HomeKit #667
Comments
Known problem |
It seems like this is related to incorrect timestamp increment (ts incr) of Opus RTP packet. According to RFC 7587, ts incr of a 48k sampling rates and 20ms frame size will be |
Update: I am able to get HomeKit Opus Audio working on Cellular connection (frame size 60ms) by repacketizing three 20ms frames into one packet (with some hard-coded codes based on RFC 6716). This can be improved if ffmpeg args ( |
As said in the RFC 7587 - your timestamp wrong. But maybe Apple also doesn't respect this RFC.
|
You are correct. I misinterpreted the last sentence ( |
I have tested Scrypted (because I don't have HomeKit camera with OPUS support):
|
And test for FFmpeg:
|
Are you using Scrypted as HomeKit camera input in go2rtc? No sure if constant 480 ts incr is due to this
ffmpeg ones look reasonable since it follows RFC 7587:
I haven't tried Scrypted or official HomeKit cameras before, and in my config I use generic rtsp camera and add audio=opus/16000 in order to get audio work in my iOS device.
|
You was right about "timekeeper". Thanks! It was made for AAC-ELD. PS. Interesting. Scrypted with Sample Rate 24000 starts with conf 27, but continue with conf 23.
|
I have Hikvision camera with built-in microphone.
When I watch the stream directly from go2rtc- flawless, but exported to HomeKit camera has choppy sound, picture is ok
Sound codec g711ulaw (tried another- no luck)
Here is config:
Thanks for help!
The text was updated successfully, but these errors were encountered: