Reference implementation of the Ogg Vorbis audio format.
  • C 97.7%
  • M4 1%
  • CMake 0.5%
  • Perl 0.3%
  • Makefile 0.2%
  • Other 0.2%
Find a file
2026-04-11 16:07:27 -04:00
cmake Export CMake targets to the build tree 2020-10-26 20:01:20 +05:00
contrib/oss-fuzz oss-fuzz: replace -lFuzzingEngine with $LIB_FUZZING_ENGINE 2020-01-17 20:44:13 -08:00
debian Update version and copyright for the 1.3.7 release. 2020-07-03 18:46:17 -07:00
doc Update release checklist after the 1.3.7 release. 2020-07-20 08:59:29 -07:00
examples Add vorbis dependencies when building examples. 2020-07-03 23:12:30 -07:00
include Revert "block: Fix excessive stack usage when calling vorbis_analysis_wrote with lots of samples" 2026-03-02 08:23:14 -05:00
lib Support arm64 on windows. 2026-04-11 16:07:27 -04:00
m4 add pkg.m4 to vorbis, that way ./autogen.sh works on systems that dont have pkg-config installed 2009-09-28 16:54:28 +00:00
macosx Bump build system versions for release 2009-07-10 02:49:31 +00:00
symbian add #ifdef __WINS__ to symbian/config.h around pragmas (ignored by gcc) 2004-08-16 01:37:09 +00:00
test CMake: Link libm to test binaries if available. 2021-05-12 09:51:20 -07:00
vq Update website link in copyright headers. 2020-07-03 09:04:05 -07:00
win32 win32: Update VS2010 project files for ogg library name. 2020-04-08 13:27:26 -07:00
.gitignore Ignore example executables. 2020-07-03 18:44:07 -07:00
.gitlab-ci.yml Updated CI and added clang, mingw and subdir build check. 2025-03-25 19:00:08 +01:00
.travis.yml travis-ci: Build on the xcode11 macOS image. 2020-04-08 16:03:15 -07:00
.ycm_extra_conf.py Add build flags for YouCompleteMe. 2017-09-25 15:58:41 -07:00
appveyor.yml appveyor: Use the correct ogg solution file. 2020-04-08 12:41:41 -07:00
AUTHORS More menial janitorial work on the documentation. 2002-07-03 00:37:58 +00:00
autogen.sh Remove spurious variable from autogen.sh. 2015-09-25 17:13:54 -07:00
Brewfile add osx to travis 2018-05-23 14:24:20 -07:00
CHANGES Reference CVE-2018-10392 in the release notes. 2020-07-20 08:58:39 -07:00
CMakeLists.txt Update minimum cmake version from 3.0 to 3.6 2025-04-03 16:31:26 +02:00
configure.ac Update version and copyright for the 1.3.7 release. 2020-07-03 18:46:17 -07:00
COPYING Update version and copyright for the 1.3.7 release. 2020-07-03 18:46:17 -07:00
libvorbis.spec.in Update download links in packaging files. 2020-07-03 09:06:35 -07:00
Makefile.am Rewrap EXTRA_DIST lines. 2020-04-07 09:23:10 -07:00
README.md Update version and copyright for the 1.3.7 release. 2020-07-03 18:46:17 -07:00
releases.sha2 Add source package checksums. 2020-07-20 08:59:16 -07:00
vorbis-uninstalled.pc.in add missing files 2004-08-02 09:35:44 +00:00
vorbis.m4 vorbis.m4: fix -Wstrict-prototypes 2025-02-09 10:15:09 +00:00
vorbis.pc.in pkg-config: Only append -lm if necessary. 2020-06-12 17:25:58 -07:00
vorbisenc-uninstalled.pc.in add missing files 2004-08-02 09:35:44 +00:00
vorbisenc.pc.in Update pkgconfig files to reduce overlinking. 2013-03-29 16:49:46 +00:00
vorbisfile-uninstalled.pc.in add missing files 2004-08-02 09:35:44 +00:00
vorbisfile.pc.in Update pkgconfig files to reduce overlinking. 2013-03-29 16:49:46 +00:00

Vorbis

GitLab Build Status Travis Build Status AppVeyor Build status

Vorbis is a general purpose audio and music encoding format contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond MPEG audio layer 3. Unlike the MPEG sponsored formats (and other proprietary formats such as RealAudio G2 and Windows' flavor of the month), the Vorbis CODEC specification belongs to the public domain. All the technical details are published and documented, and any software entity may make full use of the format without license fee, royalty or patent concerns.

This package contains:

  • libvorbis, a BSD-style license software implementation of the Vorbis specification by the Xiph.Org Foundation (https://xiph.org/)

  • libvorbisfile, a BSD-style license convenience library built on Vorbis designed to simplify common uses

  • libvorbisenc, a BSD-style license library that provides a simple, programmatic encoding setup interface

  • example code making use of libogg, libvorbis, libvorbisfile and libvorbisenc

What's here

This source distribution includes libvorbis and an example encoder/player to demonstrate use of libvorbis as well as documentation on the Ogg Vorbis audio coding format.

You'll need libogg (distributed separately) to compile this library. A more comprehensive set of utilities is available in the vorbis-tools package.

Directory:

  • lib The source for the libraries, a BSD-license implementation of the public domain Ogg Vorbis audio encoding format.

  • include Library API headers

  • debian Rules/spec files for building Debian .deb packages

  • doc Vorbis documentation

  • examples Example code illustrating programmatic use of libvorbis, libvorbisfile and libvorbisenc

  • macosx Project files for MacOS X.

  • win32 Win32 projects files and build automation

  • vq Internal utilities for training/building new LSP/residue and auxiliary codebooks.

Contact

The Ogg homepage is located at 'https://xiph.org/ogg/'. Vorbis's homepage is located at 'https://xiph.org/vorbis/'. Up to date technical documents, contact information, source code and pre-built utilities may be found there.

Building

Building from master

Development source is under git revision control at https://gitlab.xiph.org/xiph/vorbis.git. You will also need the newest versions of autoconf, automake, libtool and pkg-config in order to compile Vorbis from development source. A configure script is provided for you in the source tarball distributions.

./autogen.sh
./configure
make

and as root if desired:

make install

This will install the Vorbis libraries (static and shared) into /usr/local/lib, includes into /usr/local/include and API manpages (once we write some) into /usr/local/man.

Documentation building requires xsltproc and pdfxmltex.

Building from tarball distributions

./configure
make

and optionally (as root):

make install

Building RPM packages

after normal configuring:

make dist
rpm -ta libvorbis-<version>.tar.gz

Building with CMake

Ogg supports building using CMake. CMake is a meta build system that generates native projects for each platform. To generate projects just run cmake replacing YOUR-PROJECT-GENERATOR with a proper generator from a list here:

cmake -G YOUR-PROJECT-GENERATOR .

Note that by default cmake generates projects that will build static libraries. To generate projects that will build dynamic library use BUILD_SHARED_LIBS option like this:

cmake -G YOUR-PROJECT-GENERATOR -DBUILD_SHARED_LIBS=1 .

After projects are generated use them as usual

Building on Windows

Use proper generator for your Visual Studio version like:

cmake -G "Visual Studio 12 2013" .

Building on Mac OS X

Use Xcode generator. To build framework run:

cmake -G Xcode -DBUILD_FRAMEWORK=1 .

Building on Linux

Use Makefile generator which is default one.

cmake .
make

License

THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.

THE OggVorbis SOURCE CODE IS COPYRIGHT (C) 1994-2020 by the Xiph.Org Foundation https://xiph.org/