Date: Fri, 18 Sep 2009 14:10:37 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Alexander Leidinger <Alexander@leidinger.net> Cc: freebsd-multimedia@FreeBSD.org, Dirk Meyer <dinoex@FreeBSD.org>, Oliver Lehmann <oliver@FreeBSD.org> Subject: Re: libmad mp3 distortions Message-ID: <4AB36AAD.7040704@icyb.net.ua> In-Reply-To: <20090917161442.176733aid7epmr8k@webmail.leidinger.net> References: <4AAF7604.3070304@icyb.net.ua> <20090917161442.176733aid7epmr8k@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
on 17/09/2009 17:14 Alexander Leidinger said the following: > Have you tried to play it with "madplay -v -a -6"? This will lower the > volume by 6dB. IIRC this is still with the sound before the conversation > to PCM. If this prevents the clipping, then it is normal. The reason is > that because of rounding (and other operations) the value of a sample > can be higher (or lower) than originally. If it was at the max level > before, it can now exceed the max -> clipping. madplay is following the > rules very strictly (and IIRC working with higher precision and > bitsize), while other players have bigger mathematical errors. This > would explain then, why you see this with madplay but not with other > players. The problem I describe is not in the decoding step, the problem > is at the encoding level. Alexander, thanks a lot! madplay -a -6 does indeed produce correct sound. Bad news: despite the magnitude of configuratios options related to 'gain' and 'pre-amp' in audacious2 (all global, nothing specific to mad plugin), I couldn't get it work the same way as madplay. Sound gets quieter but the distortions are not fixed. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AB36AAD.7040704>