[GH-ISSUE #934] Clipping with dynamic volume normalisation #455

Closed
opened 2026-02-27 19:30:43 +03:00 by kerem · 1 comment
Owner

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.

  1. 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%

  2. 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.

Originally created by @roderickvd on GitHub (Jan 10, 2022). Original GitHub issue: https://github.com/librespot-org/librespot/issues/934 <div type='discussions-op-text'> <sup>Originally posted by **acid-sun** January 10, 2022</sup> I have some sound problem with new type (dynamic) volume normalisation. Sound clipping. 1. Track: Fast Flux - Zealous. [2022-01-10T14:06:56Z INFO librespot_playback::player] <Zealous> (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% 2. Track: Lucien - Revasser [2022-01-10T14:10:14Z INFO librespot_playback::player] <Revasser> (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. </div>
kerem 2026-02-27 19:30:43 +03:00
  • closed this issue
  • added the
    bug
    audio
    labels
Author
Owner

@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.

<!-- gh-comment-id:1008960321 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#455
No description provided.