xiph / vorbis-tools

Command-line tools for creating and playing Ogg Vorbis files.
GNU General Public License v2.0
75 stars 28 forks source link

oggenc: mention resample method in manual #15

Open HybridDog opened 7 years ago

HybridDog commented 7 years ago

https://github.com/xiph/vorbis-tools/blob/master/oggenc/man/oggenc.1#L162 How does sound become resampled if I use the --resample parameter, is the resampling mechanism optimized for the upcoming ogg compression or can I get better results if I resample the sound with sox instead of oggenc's resampling?

rillian commented 7 years ago

It uses a sinc-filtered resampler with a Kaiser window, based on Hanning's textbook. It's an earlier version of the speex resampler used in opusenc, firefox and a number of other tools. In my experience it's fine, and you don't need to do special resampling ahead of time.

@tdaede should vorbis-tools adopt the speex resampler implementation? Should be faster, if nothing else.