Ogg

Audio Compression Format

Norat Rossello Castilla

5/18/2005 Vorbis 1

What is Ogg Vorbis? z Audio compression format z Comparable to MP3, VQF, AAC, TwinVQ z Free, open and unpatented z , station and by ( = Streaming)

5/18/2005 Ogg Vorbis 2

1 About the name… z Ogg = name of Xiph.org container format for audio, and z Vorbis = name of specific audio compression scheme designed to be contained in Ogg

FOR MORE INFO... https://www.xiph.org

5/18/2005 Ogg Vorbis 3

Some comercial characteristics z The official mime type was approved in February 2003 z Posible to encode all music or audio content in Vorbis z Designed to not be proprietary or patented audio format z Patent and licensed-free z Specification in

5/18/2005 Ogg Vorbis 4

2 Audio Compression z Two classes of compression : - Lossless - Lossy

FOR MORE INFO... http://www.firstpr.com.au/audiocomp

5/18/2005 Ogg Vorbis 5

Lossless algorithms z Produce compressed that can be decoded to output that is identical to the original. z , FLAC for audio

5/18/2005 Ogg Vorbis 6

3 Lossy algorithms z Discard data in order to it better than would normally be possible z VORBIS, MP3, JPEG z Throw away parts of the audio waveform that are irrelevant.

5/18/2005 Ogg Vorbis 7

Ogg Vorbis - Compression Factors z Vorbis is an audio that generates 16 samples at 16KHz to 48KHz, providing variable bit rates from 16 to 128 Kbps per

FOR MORE INFO... “Introduction to ,” K. Sayood. Pages 291-294

5/18/2005 Ogg Vorbis 8

4 Compression Factors

Ogg Vorbis Mp3 CD Stereo

Audio Lossy Lossy Lossless Compress. Bit\Sample 16 16 16 Sampling 16 – 48 16 – 48 44.1 (kHz) 16 - 128 32 -192 1411 (Kbps)

5/18/2005 Ogg Vorbis 9

Encoding phase z Three Phases: – Analysis – Codification – Streaming

5/18/2005 Ogg Vorbis 10

5 Decoding phase

z Three Phases: – Stream decomposition – Decodification – Synthesis

5/18/2005 Ogg Vorbis 11

Encoding

z based on MDCT z DCT coefficients quantized using VQ z This quantized coefficients are then entropy coded (Huffman) z Result = Audio Packet VQ + Huffman

Sound data Noise MDCT Time dom. Freq. dom. = Audio Packet Residue

5/18/2005 Ogg Vorbis 12

6

z Four types of packets exist in the bitstream – Three types of header packets – One audio packet

Header packets Audio packets

Id header Comments header Setup header Audio Packets

5/18/2005 Ogg Vorbis 13

7