XIII. oggvorbis

About OGG/Vorbis

The OGG/Vorbis file format, as defined by http://www.vorbis.com/ and http://www.vorbis.com/, is a scheme for compressing audio streams by multiple factors with a minimum of quality loss. This extension adds oggvorbis support to PHP's URL Wrappers. When used in read mode, compressed OGG/Vorbis data is expanded to raw PCM audio in one of six PCM encoding formats listed below.


oggvorbis is installed through the usual PECL package installation process.

  • Prerequisite: PHP >= 4.3.0, libogg >= 1.0, and libvorbis >= 1.0.

  • pear install oggvorbis

  • Copy the resulting oggvorbis.so to an appropriate location and add extension=oggvorbis.so to your php.ini file or load it dynamically in your PHP script using dl("oggvorbis.so");

Table of Contents
Usage --  Examples on using the ogg:// wrapper.