GNOME Bugzilla – Bug 556756
audioresample does not low-pass filter ("antialias") when down-sampling
Last modified: 2008-10-27 16:20:34 UTC
When down-sampling an audio time series to a lower sample rate, one must first remove frequency components above the Nyquist frequency of the new time series. This is accomplished by low-pass filtering the data before resampling, a process sometimes referred to as "anti-aliasing". Failure to anti-alias the time series results in high-frequency components being "aliased" down to lower frequencies, corrupting the audio. The audioresample element does not anti-alias the time series when down-sampling. In a pipeline, one can work-around this bug by preceding the audioresample element with a low-pass filter element like audiowsinclimit, but audioresample, like any element, should Just Work (tm).
Scary, you're right, audioresample really doesn't lowpass when downsampling. For now you could use speexresample (from gst-plugins-bad) or ffaudioresample (from gst-ffmpeg), those two resamplers lowpass the input.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 346218 ***