Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio normalisation / volume levelling #537

Open
HavermansStef opened this Issue Jan 10, 2019 · 8 comments

Comments

Projects
None yet
7 participants
@HavermansStef
Copy link
Contributor

commented Jan 10, 2019

Would be nice to have, but not easy to implement. Low priority.

@hawken93

This comment has been minimized.

Copy link
Contributor

commented Jan 10, 2019

Just wanted to leave the keyword replaygain in here.

https://www.bobulous.org.uk/misc/Replay-Gain-in-Linux.html

You would usually write replaygain information to the file, then utilize it on playback. Different formats have different ways to store this data though.

@anthonylavado anthonylavado changed the title [Request] Audio normalisation / volume levelling Audio normalisation / volume levelling Jan 11, 2019

@JustAMan

This comment has been minimized.

Copy link
Member

commented Jan 11, 2019

Another approach is re-formatting your media beforehand. I found this to be very useful: https://github.com/slhck/ffmpeg-normalize

@hawken93

This comment has been minimized.

Copy link
Contributor

commented Jan 14, 2019

Mp3 is also often normalized by rewriting the files. I won't do this as the music collection already tries to take care to be a bit perfect copy of the cd (flac format). (I'm one of those people...) so would love to see a metadata based solution here.

But point taken thst you could normalize media today for use with jellyfin :)

@onny

This comment has been minimized.

Copy link

commented Apr 9, 2019

I just hacked this feature into my Jellyfin installation. It's a dirty workaround :) https://blog.project-insanity.org/2019/04/10/hacking-replay-gain-audio-normalization-into-jellyfin/

I enable audio transcoding with ffmpeg and enable the replay gain audio normalization with an additional parameter: "-af volume=replaygain=track". I hardocded this into the Jellyfin source. But it works pretty good!

@joshuaboniface

This comment has been minimized.

Copy link
Member

commented Apr 10, 2019

That should be pretty easy to hide behind a checkmark! 🎉

@anthonylavado

This comment has been minimized.

Copy link
Member

commented Apr 10, 2019

The question - does this only apply with transcoding though? I imagine a lot of people have that as direct play. Otherwise, spectacular work @onny!

I’ll have to look at getting things figured out for other formats later. I think FLAC does ReplayGain too?

@dkanada

This comment has been minimized.

Copy link
Contributor

commented Apr 10, 2019

@anthonylavado you are correct, and it's a pretty large problem to solve. I think a lot of settings are dependent on the playback being a transcode. Another example of this is that all video streams transcode audio to MP3 last I checked.

@hawken93

This comment has been minimized.

Copy link
Contributor

commented Apr 10, 2019

I think the correct way here is to rely on file metadata or generate metadata from the file about its replaygain values. These can be served to the client to perform corrections on the client side. Usually the most important information is the rms values for the track and for the whole album

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.