Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Lack of sampling rate (Read 2444 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Lack of sampling rate

Supported sampling rates are 8000, 12000, 16000, 24000 and 48000.
I have wav file with 44100 or 22050 sampling rate. How compress it? If I compress 22050/s to 24000/s I get Opus file with faster audio and higher frequency or codec will resample between 22050 points per second?
Is possible to add 44100 and 22050 sampling rates?

Lack of sampling rate

Reply #1
https://wiki.xiph.org/OpusFAQ#How_do_I_use_...rted_by_Opus.3F


Quote
Tools which read or write Opus should interoperate with other sampling rates by transparently performing sample rate conversion behind the scenes whenever necessary. In particular, software developers should not use Opus Custom for 44.1 kHz support, except in the very specific circumstances outlined above.

Note that it's generally preferable for a decoder to output at 48kHz even when you know the original input was 44.1kHz, not only because you can skip resampling but also because many inexpensive audio interfaces have poor quality output for 44.1k.

The opus-tools package source code contains a small, high quality, high performance, BSD licensed resampler which can be used where resampling is required.


Lack of sampling rate

Reply #2
As far as I know opusenc included in opus-tools will already resample the input for you.

Lack of sampling rate

Reply #3
As far as I know opusenc included in opus-tools will already resample the input for you.

As Jean-Marc pointed out to me recently, opusenc will automatically resample for you but the underlying library will not.  opusenc uses the speex resampler provided in opus-tools, and if you're writing your own encoder you probably will want to do that too.

 
SimplePortal 1.0.0 RC1 © 2008-2021