- 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
9 lines
459 B
SQL
9 lines
459 B
SQL
-- 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;
|