Files
VoelinClient/crates
selikhovandClaude Opus 5.5 b8b357a00a voelin-media: keep the audio of a recording's first moment
A recording and a clip start at a video keyframe, and dropped all audio
that came before it. But the video encoder is behind the audio: by the
time the keyframe of a moment arrives, the audio of that moment and of
the encoder's whole delay has already gone by. With a hardware H.264
encoder starting up, a recording's audio began 285 ms after its picture.

The recorder now keeps the last two seconds of audio while it waits and,
once the keyframe is written, writes the part not older than it. The
replay buffer keeps waiting audio the same way, and when it trims to a
keyframe it keeps the audio of the keyframe's time that arrived before
it; a clip feeds everything to a recorder, which skips video up to its
first keyframe. The same recording now starts its audio 10 ms after the
picture (one Opus frame).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 02:10:43 +03:00
..