Skip to content

webrtc: prefer PCMU for Ring doorbells - #2105

Draft
philan2kx wants to merge 1 commit into
koush:mainfrom
philan2kx:agent/ring-doorbell-pcmu-audio
Draft

philan2kx wants to merge 1 commit into
koush:mainfrom
philan2kx:agent/ring-doorbell-pcmu-audio

Conversation

@philan2kx

Copy link
Copy Markdown

Fixes #1617.

Fix for Ring Wired Video Doorbell Pro / Video Doorbell Pro 2 distorted, crackling, fragmented, or missing audio in Apple Home/HomeKit through Scrypted.

Ring Wired Video Doorbell Pro / Video Doorbell Pro 2 can select Opus even when PCMU is listed first in the WebRTC offer. In HomeKit this produces heavily fragmented, distorted, or missing incoming audio. Excluding Opus from the Ring doorbell source offer makes the device select its stable 8 kHz G.711 PCMU stream.

This change:

  • detects only devices from @scrypted/ring with type Doorbell;
  • offers PCMU/PCMA for that source connection;
  • keeps the existing codec list for every other camera;
  • does not alter video, recording, or intercom handling.

Validation:

  • tested on Ring Wired Video Doorbell Pro / Video Doorbell Pro 2 (lpd_v4);
  • Ring answer negotiated PCMU/8000/mono;
  • a 12-second capture contained 201 RTP packets with no missing or reordered sequence numbers and consistent 480-timestamp increments;
  • incoming HomeKit audio was physically verified without the previous interference artifacts;
  • HomeKit-to-doorbell intercom remained functional;
  • other Ring cameras stayed on the existing default codec path;
  • git diff --check passes.

The tested custom package was WebRTC 0.2.89-phil.4, used with HomeKit audio transcoding enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loud interferenc noise on audio of Ring Video Doorbeel Pro 2

2 participants