Avidemux Forum

Participate => User interface and Usability => Topic started by: Blues on June 06, 2017, 06:06:47 PM

Title: Audio - Manual Gain
Post by: Blues on June 06, 2017, 06:06:47 PM
There is automatic option which adjusts peak volume to -3 dB. And there is manual option which allows set custom gain value. This is what confuses me. I just cannot increase the level by random, I need to know the current max level. Do I have to extract the audio and analyze it with some other tool?
Title: Re: Audio - Manual Gain
Post by: Blues on July 13, 2017, 01:46:36 PM
Nobody knows how to use this function?
Title: Re: Audio - Manual Gain
Post by: eumagga0x2a on July 13, 2017, 06:51:33 PM
In short, you basically want automatic mode for the normalize audio filter with customizable peak level (https://github.com/mean00/avidemux2/blob/master/avidemux/common/ADM_audioFilter/src/audiofilter_normalize.cpp#L142) (db_out), right?

QuoteDo I have to extract the audio and analyze it with some other tool?

Not necessarily. Select the automatic gain mode, save the source video with video in copy mode and audio set to codec of your choice (you don't need the resulting file) and search the log (admlog.txt on Windows, console output on Linux and Mac) for the string

[Normalize]Gain

Add 3dB to the value shown and you get the max gain you can use without clipping.

However, audio filters are not on my radar at the moment.
Title: Re: Audio - Manual Gain
Post by: Blues on July 18, 2017, 04:16:06 PM
Thanks for this workaround. :) I hope in future this feature will be improved.
Title: Re: Audio - Manual Gain
Post by: TCmullet on August 27, 2018, 03:45:05 AM
I just saw this after I posted my own version of the question.  Thanks for this log-checking tip.  Will try it. But still wish for a configurable max gain amount.