5816e94a635bc0b37fc3b975a5194d8e50388e0c
Symptom: video plays ~1s then freezes. BaseMediaStream sync logic: - video _pts advances 33.3ms/frame (timeBase 1/fps), audio _pts advances 20ms/packet (timeBase 1/48000) — two synthetic frame-index timebases that never share a clock. - If audio starts late (ffmpeg audio init / Ogg header), ptsDelta = video-audio stays positive → isAhead() true → video loops 'await sleep(frametime) while isAhead()' → video freezes. Downchain: vPipe fills → proc.stdout paused → demuxer emits ~15fps (log: 30 frames per 2s). Upstream dank sets syncStream because node-av provides REAL PTS from NUT in a consistent timebase. Our raw-h264 demuxer has no real PTS; per-stream sleep-PTS pacing alone keeps both at 1000ms/s, which is correct without a shared clock. Re-enable sync only if real PTS is added.
Description
Bete Discord moderation watcher
26 MiB
Languages
TypeScript
95.5%
C++
1.2%
Nix
1%
Shell
0.7%
JavaScript
0.6%
Other
1%