mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #934] Clipping with dynamic volume normalisation #455
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#455
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roderickvd on GitHub (Jan 10, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/934
Originally posted by acid-sun January 10, 2022
I have some sound problem with new type (dynamic) volume normalisation. Sound clipping.
Track: Fast Flux - Zealous.
[2022-01-10T14:06:56Z INFO librespot_playback::player] (141606 ms) loaded
[2022-01-10T14:06:56Z WARN librespot_playback::player] This track will at its peak be subject to 2.93 dB of dynamic limiting.
[2022-01-10T14:06:56Z WARN librespot_playback::player] Please lower pregain to avoid.
[2022-01-10T14:06:56Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: 2.933378219604492, track_peak: 0.7943402528762817, album_gain_db: 2.933378219604492, album_peak: 0.7943402528762817 }
[2022-01-10T14:06:56Z DEBUG librespot_playback::player] Calculated Normalisation Factor for Track: 140.17%
Track: Lucien - Revasser
[2022-01-10T14:10:14Z INFO librespot_playback::player] (209250 ms) loaded
[2022-01-10T14:10:14Z WARN librespot_playback::player] This track will at its peak be subject to 6.20 dB of dynamic limiting.
[2022-01-10T14:10:14Z WARN librespot_playback::player] Please lower pregain toavoid.
[2022-01-10T14:10:14Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: 6.802104949951172, track_peak: 0.7412295341491699, album_gain_db: 6.802104949951172, album_peak: 0.7412295341491699 }
[2022-01-10T14:10:14Z DEBUG librespot_playback::player] Calculated Normalisation Factor for Track: 218.83%
I tried to upper threshold to 0 dBFS, but it did not ideal result. Earlier it was possible to specify threshold > 0.
If I switched to basic method, music played normal.
@roderickvd commented on GitHub (Jan 10, 2022):
These are great reference tracks! I can confirm and will see what I can come up with.
For now I recommend that you set pregain to something like -5 or even -9 when listening to tracks with a wide dynamic range.