TheCaptain989/lidarr-flac2mp3

[Request] Audio Normalization

Closed this issue · 4 comments

Is it possibile to implement audio normalization using loudnorm in this docker mod?

I mean something like the https://github.com/slhck/ffmpeg-normalize library

It does audio normalization using the native loudnorm ffmpeg filter

Thanks

Hmmm. Maybe. Just glancing at the ffmpeg-normalize project makes me think it may be more complex than it seems, but I'll take a look.

After researching this, it sounds like you can do this with my existing script by passing advanced options to ffmpeg with my script's -a option. You can create a custom wrapper script to provide these options. One example is below.

Example

#!/bin/bash

. /usr/local/bin/flac2mp3.sh -a "-filter:a loudnorm=I=-23:LRA=7 -c:a libmp3lame -b:a 320K" -e .mp3

@blastbeng, as you seem to have experience with this feature, could you give it a try and let me know if it works?

If it does, I'd be happy to add a new custom wrapper for this.

@blastbeng, last call. If I don't hear anything soon I'm closing this issue.