Repository navigation
Open
Labels
kind/featureProposes or implements a new capability or enhancement
Description
Hey, my HomeKit camera "Eve Outdoor Cam" runs great with go2RTC! Thanks for the great software.
What I'm wondering now is, is it somehow possible to get "Two Way Audio" working? Since it's a pure HomeKit camera and works without a third party app, I can't say how the Two Way Audio comes about.
Do you know of any way to figure it out?
Info
{
"producers": [
{
"type": "HomeKit active producer",
"url": "homekit://192.168.178.72:62856?device_id=XXX\u0026device_public=XXX\u0026client_id=XXX\u0026client_private=XXX",
"medias": [
"video, recvonly, H264",
"audio, recvonly, ELD/16000/1"
],
"receivers": [
"0 H264, bytes=2823676766, senders=3",
"0 ELD/16000/1, bytes=30779465, senders=3"
],
"recv": 2910946951
},
{
"type": "RTSP passive producer",
"url": "rtsp://127.0.0.1:8554/00fe64e283c8e733f5016ae5a80f5f3a",
"remote_addr": "127.0.0.1:41504",
"user_agent": "ffmpeg/go2rtc",
"medias": [
"audio, recvonly, OPUS/48000/2"
],
"receivers": [
"96 OPUS/48000/2, bytes=105212597, senders=1"
],
"recv": 111628953
}
],
"consumers": [
{
"type": "RTSP passive consumer",
"url": "rtsp://192.168.178.133:8554/eingang_kamera?video=h264\u0026audio=opus",
"remote_addr": "192.168.178.133:41090",
"user_agent": "Lavf58.76.100",
"medias": [
"video, sendonly, H264",
"audio, sendonly, OPUS"
],
"senders": [
"96 H264, bytes=6610917308, receivers=1",
"97 OPUS/48000/2, bytes=246052797, receivers=1"
],
"send": 6959575497
},
{
"type": "RTSP passive consumer",
"url": "rtsp://127.0.0.1:8554/eingang_kamera?audio",
"remote_addr": "127.0.0.1:39658",
"user_agent": "go2rtc/ffmpeg",
"medias": [
"audio, sendonly, ANY"
],
"senders": [
"96 ELD/16000/1, bytes=30779465, receivers=1"
],
"send": 36429929
},
{
"type": "RTSP passive consumer",
"url": "rtsp://192.168.178.133:8554/eingang_kamera",
"remote_addr": "192.168.178.133:39700",
"user_agent": "Lavf60.3.100",
"medias": [
"audio, sendonly, ANY",
"video, sendonly, ANY"
],
"senders": [
"96 ELD/16000/1, bytes=30773028, receivers=1",
"97 H264, bytes=2822940869, receivers=1"
],
"send": 2894787721
},
{
"type": "RTSP passive consumer",
"url": "rtsp://192.168.178.133:8554/eingang_kamera",
"remote_addr": "192.168.178.133:39702",
"user_agent": "Lavf60.3.100",
"medias": [
"audio, sendonly, ANY",
"video, sendonly, ANY"
],
"senders": [
"96 ELD/16000/1, bytes=30772579, receivers=1",
"97 H264, bytes=2822922961, receivers=1"
],
"send": 2894769028
}
]
}
Config
streams:
eingang_kamera:
- homekit://192.168.178.72:51959?client_id=XXX&client_private=XXX_id=XXX&device_public=XXX
- ffmpeg:eingang_kamera#audio=opus
eingang_kamera2:
- ffmpeg:rtsp://192.168.178.133:8554/eingang_kamera#audio=opus#input=vaapi_input#video=vaapi_h264_scale1280x720
eingang_kamera3:
- ffmpeg:rtsp://192.168.178.133:8554/eingang_kamera#audio=opus#input=vaapi_input#video=vaapi_h264_scale480x360
ffmpeg:
vaapi_input: >-
-hwaccel vaapi -hwaccel_output_format vaapi -fflags nobuffer -flags low_delay -i {input}
vaapi_h264_scale480x360: >-
-c:v h264_vaapi -g 50 -bf 0 -profile:v high -level:v 4.1 -sei:v 0
-vf "format=vaapi|nv12,hwupload,scale_vaapi=w=480:h=360"
vaapi_h264_scale1280x720: >-
-c:v h264_vaapi -g 50 -bf 0 -profile:v high -level:v 4.1 -sei:v 0
-vf "format=vaapi|nv12,hwupload,scale_vaapi=w=1280:h=720"
HomeKit
Management Interface #1:
Streaming Status:
STATUS: IN_USE
Supported Video Stream Configuration:
VIDEO_CODEC_CONFIGURATION:
VIDEO_CODEC_TYPE: H264
VIDEO_CODEC_PARAMETERS:
PROFILE_ID: MAIN_PROFILE
LEVEL: L_3_1
LEVEL: L_4
PACKETIZATION_MODE: NON_INTERLEAVED
CVO_ENABLED: NON_INTERLEAVED
VIDEO_ATTRIBUTES:
IMAGE_WIDTH: 1920
IMAGE_HEIGHT: 1080
FRAME_RATE: 24
VIDEO_ATTRIBUTES:
IMAGE_WIDTH: 1280
IMAGE_HEIGHT: 720
FRAME_RATE: 24
VIDEO_ATTRIBUTES:
IMAGE_WIDTH: 320
IMAGE_HEIGHT: 240
FRAME_RATE: 24
Supported Audio Stream Configuration:
AUDIO_CODEC_CONFIGURATION:
CODEC_TYPE: AAC_ELD
AUDIO_CODEC_PARAMETERS:
AUDIO_CHANNELS: 1
BIT_RATE: VARIABLE
SAMPLE_RATE: KHZ_16
COMFORT_NOISE_SUPPORT: 0
Supported RTP configuration:
SRTP_CRYPTO_SUITE: AES_CM_128_HMAC_SHA1_80
SRTP_CRYPTO_SUITE: AES_256_CM_HMAC_SHA1_80
SRTP_CRYPTO_SUITE: DISABLED
Reacted by Götz and Sam
Metadata
Metadata
Assignees
Labels
kind/featureProposes or implements a new capability or enhancement
Activity
AlexxIT commentedon Aug 22, 2023
Two way for HomeKit source haven't supported yet.
seydx commentedon Aug 22, 2023
Are there any plans to support HomeKit 2 Way Audio in the future?
I think it would complete the HomeKit integration in go2RTC
AlexxIT commentedon Aug 22, 2023
Maybe someday
privatesam commentedon Oct 25, 2023
This is the dream.
topshelf510 commentedon Feb 17, 2025
Is there updates on this 😃?
goetzc commentedon Oct 27, 2026
Related to this, the upcoming Home Assistant Core version, 2026.11, will introduce native two-way camera audio as a Labs feature.
https://contributors.home-assistant.io/blog/2026/10/24/camera-two-way-audio/
topshelf510 commentedon Nov 17, 2026
Some findings in case they help: I got two-way talk working to HomeKit cameras (
homekit://source) on three Aqara camera hubs (2× G2H, 1× G2H Pro), from WebRTC clients (Home Assistant camera cards, Frigate's live view). Base was go2rtc 1.9.15 plus the producer backchannel from #2332 (written for the Aqara G4; it works the same on the G2H / G2H Pro).What the Aqara hubs accept
Their
SupportedAudioStreamConfigurationlists only AAC-ELD, 16 kHz, mono: no Opus, so #2551 doesn't cover them. Stock FFmpeg can't encode AAC-ELD; it needs a build with--enable-libfdk-aac --enable-nonfree. A static FFmpeg 8.0 with fdk-aac 2.0.3 on Alpine worked fine, used only for the talk audio:Gotchas I hit
can't find consumeronPOST /api/streams?dst=<homekit stream>with wip: homekit backchannel working for aqara g4 #2332 as-is. Its extra backchannel codec isAAC/16000withChannels: 1, but FFmpeg's RTSP SDP for mono AAC (MPEG4-GENERIC/16000/1) parses asChannels: 0, andCodec.Matchneeds equal counts or 0 on the consumer side. LeavingChannelsunset on that codec fixed it. The test beeps then played on the hub speaker.Transport library initialization error). Writing it straight to RTP (-f rtp) also needs-flags:a +global_header. Publishing to go2rtc with-f rtsp -rtsp_transport tcpworks without it.Live talk from WebRTC (Opus → AAC-ELD)
go2rtc has no automatic transcoding on the backchannel, so I added a small source that offers an Opus speaker,
talkback:<stream>. It's listed in the stream the clients play:<stream>(AddTrackon the producer's sendonly media). So talk needs no extra hub connection, which matters since these hubs only have 2 stream slots.Home Assistant's advanced-camera-card and Frigate's live view both picked up the speaker on their own and talk was clear.
I also left out #2332's switch to separate ephemeral SRTP ports per session. The G2H hubs worked fine on the shared
:8443server.