You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue where a very low volume (pretty much inaudible) tone present in the background is being amplified and distorted into a loud screech. The tone in the 8kHz input signal is composed of a repeating pattern of five zero samples followed by a single sample at positive 8 on the linear-16 scale. So essentially a 1333Hz very low hum. It just seems to always be there in audio received from a specific VOIP carrier.
In the following screen cap, the top waveform is the input signal (mostly silence with a few background noises) and the bottom waveform is the output after compressing to Opus and decompressing to 48kHz linear-16.
I was able to reproduce this with the Opus 1.5.2 distribution compiled under/for Windows using cmake with the following configuration: cmake .. -DOPUS_DRED=OFF -DOPUS_PLC=ON -DOPUS_OSCE=ON
In the attached zip I've included a source file of a simple app that reads raw u-law/8kHz from a file, compresses to opus, decompresses to linear-16 at 48kHz. I've also included an example file containing the troublesome input signal. This code, and the provided input file are what produced the waveforms above. Consult the source file to see how the encoder and decoder are configured.
The system these were built/run on was Core i9-13900 running Windows 11 (10.0.26100.2314) and both Opus and the executable were built using MSVC 19.40.33812 (Visual Studio 2022).
I'm running into an issue where a very low volume (pretty much inaudible) tone present in the background is being amplified and distorted into a loud screech. The tone in the 8kHz input signal is composed of a repeating pattern of five zero samples followed by a single sample at positive 8 on the linear-16 scale. So essentially a 1333Hz very low hum. It just seems to always be there in audio received from a specific VOIP carrier.
In the following screen cap, the top waveform is the input signal (mostly silence with a few background noises) and the bottom waveform is the output after compressing to Opus and decompressing to 48kHz linear-16.
I was able to reproduce this with the Opus 1.5.2 distribution compiled under/for Windows using cmake with the following configuration:
cmake .. -DOPUS_DRED=OFF -DOPUS_PLC=ON -DOPUS_OSCE=ON
In the attached zip I've included a source file of a simple app that reads raw u-law/8kHz from a file, compresses to opus, decompresses to linear-16 at 48kHz. I've also included an example file containing the troublesome input signal. This code, and the provided input file are what produced the waveforms above. Consult the source file to see how the encoder and decoder are configured.
The system these were built/run on was Core i9-13900 running Windows 11 (10.0.26100.2314) and both Opus and the executable were built using MSVC 19.40.33812 (Visual Studio 2022).
opus_gain_bug.zip
The text was updated successfully, but these errors were encountered: