mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 14:33:06 +03:00
Improve audio normalization
* Move calculation of LUFS to a scheduled task as it's pretty slow * Correctly calculate album LUFS * Don't try to convert replaygain tags to LUFS values
This commit is contained in:
@@ -898,7 +898,14 @@ namespace Emby.Server.Implementations.Dto
|
||||
dto.IsPlaceHolder = supportsPlaceHolders.IsPlaceHolder;
|
||||
}
|
||||
|
||||
dto.LUFS = item.LUFS;
|
||||
if (item.LUFS.HasValue)
|
||||
{
|
||||
dto.NormalizationGain = -18f - item.LUFS;
|
||||
}
|
||||
else if (item.NormalizationGain.HasValue)
|
||||
{
|
||||
dto.NormalizationGain = item.NormalizationGain;
|
||||
}
|
||||
|
||||
// Add audio info
|
||||
if (item is Audio audio)
|
||||
|
||||
Reference in New Issue
Block a user