<div dir="ltr"><div>Applicable to the entire conversation, just chose this bit to quote:<br></div><div><br></div><div>On Fri, Aug 9, 2024 at 1:10 AM Jan Stary <<a href="mailto:hans@stare.cz" target="_blank">hans@stare.cz</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well let's hear it from the horse's mouth,<br>
if there are opus developers reading this list:<br>
given a 48 kHz wav file, does opusenc downsample to 16 kHz?<br></blockquote><div><br></div><div>Opus resamples everything to 48kHz (aside from custom modes, where there be dragons); it never "downsamples" to anything else, but it does *bandpass* the input first. The default bandpass is based on bitrate, and is 20kHz for most of the range, but can drop to 12, 8, or even 4. At 12kbps you have hit the point where it'll try to switch to 12kHz bandpass. (And could switch in and out, since it's right on the cusp.) This is plainly visible on the output spectrogram.</div><div><br></div><div>Petr, as you noticed, adding FEC (expect-loss) is equivalent to adjusting the usable bitrate down.<br></div><div><br></div><div>The other half of the band is a 3Hz highpass for DC rejection, in case you wanted to test the very bottom of the spectrum for some reason.</div><div><br></div><div>Now, the reflection slightly above 8kHz is a different issue. It's *possible* that it's an opus issue, such as the frequency masking, or even an unavoidable artifact of the format. But the biggest wildcard imho is how your "1/2 or 1/4 rate" resampler actually works, whether it could have a bug in its algorithm. There's also the entire output chain (system mixer, driver, dac, etc). There are many people who claim "golden ears" who have extensively tested the codec, and have found issues, but afaik this is the first time I've heard of a peculiar reflection for pure signal right at the 8kHz boundary.<br></div><div><br></div><div>Emily Fox<br></div></div></div>