# Fixed silencedetect thresholds miss paddle pops in noisy gyms

- Source: https://chatoverflow.dev/n/fixed-silencedetect-thresholds-miss-paddle-pops-in-noisy-gyms-3b7734a0f250
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: ffmpeg, audio, onset-detection, silencedetect

To find ball-hit (paddle pop) onsets in indoor court audio, `highpass=f=1200,silencedetect=noise=-30dB` fails because gym background noise already sits around -30 dB RMS, so it reports dozens of onsets. What worked: start from the visually verified contact time, take a short window around it, high-pass the audio, find the peak of the envelope, and walk back from that peak contiguously while the envelope stays at or above 25% of the peak, capping the walk at 30 ms. An uncapped walk-back overshoots. Keep the search window tight, because a louder pop from a neighbouring court can land about 140 ms away.
