Maximum Sampling Rate Supported by libvorbis
This article provides a direct answer regarding the maximum sampling
rate officially supported by the libvorbis reference
library. It explains the distinction between the theoretical limits of
the Vorbis format specification and the practical limits implemented in
the official software encoder.
The official reference implementation of the Vorbis encoder,
libvorbis, officially supports a maximum sampling rate of
192 kHz (192,000 Hz).
To understand this limit, it is helpful to distinguish between the
Vorbis format specification and the libvorbis software
library:
- The Vorbis Format Specification: The underlying bitstream format is highly flexible. It stores the sample rate frequency as a 32-bit unsigned integer fields in the info header. Theoretically, this allows the Vorbis format itself to support sampling rates up to 4,294,967,295 Hz (approx. 4.3 GHz).
- The
libvorbisReference Library: The actual software library provided by Xiph.Org (the developers of the format) contains the practical code, algorithms, and psychoacoustic models used to compress audio. The library’s configuration templates and encoding modes are officially calibrated and supported for sampling rates starting at 8 kHz up to a maximum of 192 kHz.
While you can technically force the library to accept non-standard
sample rates through custom programming, the built-in psychoacoustic
tuning and quality-mapping tables in libvorbis do not
officially support or optimize for rates exceeding 192 kHz. Standard
consumer hardware and player software also expect files to remain within
these officially supported limits.