[mythtvnz] Equalizing audio levels in mythtv
feadog
feadog at orcon.net.nz
Mon Feb 8 23:55:38 GMT 2010
I have noted some users have found varying audio levels between channels
annoying. The inclusion of a ladspa compressor/limiter filter has helped
me enormously on a eeepc netbook running mythtv-frontend dvb-s.
The information was gleaned from the URL
http://alsa.opensrc.org/index.php/LADSPA_plugins
As in my case, create the file .asoundrc in your home folder with the
contents;
**********start of file*********
pcm.ladcomp {
type plug
slave.pcm "ladcomp_compressor";
}
pcm.ladcomp_compressor {
type ladspa
slave.pcm "ladcomp_limiter";
path "/usr/lib/ladspa";
plugins [
{
label dysonCompress
input {
#peak limit, release time, fast ratio, ratio
controls [0 1 0.5 0.99]
}
}
]
}
pcm.ladcomp_limiter {
type ladspa
slave.pcm "plughw:0,0";
path "/usr/lib/ladspa";
plugins [
{
label fastLookaheadLimiter
input {
#InputGain(Db) -20 -> +20 ; Limit (db) -20 -> 0 ; Release
time (s) 0.01 -> 2
controls [ 0 0 0.8 ]
}
}
]
}
******end of file*****
Install the package swh-plugins
sudo apt-get install swh-plugins
In mythfrontend change audio output device from ALSA: to ALSA:ladcomp
in settings/general/audio output device.
restart alsa or reboot
The settings in .asoundrc may be a bit aggressive for some installations
but are great for the netbook's tiny speakers. Change the settings to
suit.
I hope I haven't left anything out! Assumes alsa installed.
Noel Sheridan
-------------- next part --------------
pcm.ladcomp {
type plug
slave.pcm "ladcomp_compressor";
}
pcm.ladcomp_compressor {
type ladspa
slave.pcm "ladcomp_limiter";
path "/usr/lib/ladspa";
plugins [
{
label dysonCompress
input {
#peak limit, release time, fast ratio, ratio
controls [0 1 0.5 0.99]
}
}
]
}
pcm.ladcomp_limiter {
type ladspa
slave.pcm "plughw:0,0";
path "/usr/lib/ladspa";
plugins [
{
label fastLookaheadLimiter
input {
#InputGain(Db) -20 -> +20 ; Limit (db) -20 -> 0 ; Release time (s) 0.01 -> 2
controls [ 0 0 0.8 ]
}
}
]
}
More information about the mythtvnz
mailing list