In different audio sources the level of sounds are different. It's very annoying to set the level of sound on almost every media content. Sometimes, when previously you had something quiet, you had to adjust it louder and after some time you want to play another media - bang! it unexpectedly breaks your headphones, the sound is so loud!
So, is there some plugin/feature which can automatically adjust the level of sound on every media content?
Adjusting sound level with a LADSPA plugin
To obtain a fairly normalized sound output level independent of the input level we may use a LADSPA-plugin to filter the sound output through PulseAudio.
As a minimum, we need a compressor plugin such as the dysonCompressor from the swh-plugins which need to be installed if not yet present.
After having found out the name of our default sink with
and the exact name of the plugin as it is stored in
/usr/lib/ladspa/
(with my system heredyson_compress_1403
) we can issue the following commandReplace
<alsa_output>
with the exact name of the output sink (in my system this wasalsa_output.pci-0000_00_14.2.analog-stereo
).The compressed output can now be heard on the newly created output sink
ladspa_sink
accessible from the Sound Settings menu.Control settings for the compressor plugin are as follows: peak limit, release time, fast ratio, ratio. See in the plugin documentation for more details, defaults and minimal resp maximal values for these controls.
To avoid clipping of playback we may also combine this plugin with a limiter after compression. We may use the
fast_lookahead_limiter
for this with the master sink being now our just created lasdpa_sink from above:Source: settings above were adapted to pulseaudio from brien's blog on miscfits
Takkat's solution is good, but here's a variation which is simpler and permanent.
apt-get install swh-plugins
Cut and paste the following into a file called ~/.config/pulse/default.pa:
Run
pulseaudio -k
or log out and back in againNormalization will automatically be turned on for all subsequent logins.
Volume normalization is present in SMPlayer. Goto software center and download this awesome player, then enable volume normalization under audio options :)
Earlier I was also having audio normalization issues while playing movies on my VLC media player but few searches over Internet I was able to find a perfect solution for this and I have shared it below so that you can also benefit from it....
Audio Normalization VLC Fix / Audio Out of Sync VLC Fix
Along with an alternative, I have some comments to the solutions above that suggest using the dysoncompressor.
From the manual:
http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html#tth_sEc1.1
The author of the package doesn't know what the last two values control. So how could you all say what you should input as the last two values?
The plugin itself suggests control=0,0.25,0.5,0.5
I would even suggest that you try one of the other compressors, that seem better documented, like sc4.