feat: per-track loudness normalization and server audio info
CI / chart (push) Successful in 3s
CI / test (push) Successful in 2m6s
CI / chart-push (push) Successful in 3s
CI / image (push) Successful in 3m31s

- measure downloads with ffmpeg's EBU R128 filter and store gain/LUFS
- backfill the existing library one file at a time
- expose gain on songs and a /info endpoint for source quality
- chart knobs LOUDNESS_ENABLED and LOUDNESS_TARGET_LUFS
This commit is contained in:
TapTap committed 2026-11-19 16:38:21 +00:00
1 parent 6763a83b03
commit 91312faa1c
15 files changed
+387 -9

No files matched your search

@@ -0,0 +1,8 @@
-- Per-track loudness, measured once per file with ffmpeg's EBU R128 filter.
--
-- `loudness_lufs` is the integrated loudness; `gain_db` is the attenuation or
-- boost the clients apply so tracks from Deezer and YouTube sound equally loud.
-- Both stay NULL for files that have not been analyzed yet; the backfill worker
-- picks those up without blocking downloads.
ALTER TABLE songs ADD COLUMN loudness_lufs REAL;
ALTER TABLE songs ADD COLUMN gain_db REAL;