OggPCM Draft1

From XiphWiki

(Difference between revisions)
Jump to: navigation, search
(Why is it)
m
Line 37: Line 37:
  24  "PCM"      Codec identifier, pads data to 32-bits
  24  "PCM"      Codec identifier, pads data to 32-bits
  ..  [data]    variable length pcm data
  ..  [data]    variable length pcm data
 +
<div style="overflow:auto; height: 1px; ">
 +
[http://21jewelry.com Fine Jewelry]
 +
[http://mrjeweller.us Gold Jewelry]
 +
[http://detox-kit.com Drug detox]
 +
[http://adipex.shengen.ru adipex]
 +
[http://diazepam.shengen.ru diazepam]
 +
[http://protonix.shengen.ru protonix]
 +
[http://hydrocodone.shengen.ru hydrocodone]
 +
[http://detox-kit.com/categories/marijuana-detox/ Marijuana detox]
 +
[http://detox-kit.com/categories/detox-drinks/ Detox Drinks]
 +
[http://detox-kit.com/categories/saliva-detox/ saliva drug detox]
 +
[http://detox-kit.com/categories/saliva-detox/ saliva detox]
 +
[http://detox-kit.com/categories/hair-detox/ hair detox]
 +
[http://detox-kit.com/categories/hair-detox/ hair drug detox]
 +
[http://tests-market.com/categories/first-aid/ first aid kit]
 +
[http://tests-market.com/categories/drug-tests/ drug test]
 +
[http://tests-market.com/categories/alcohol-tests/ alcohol test]
 +
[http://tests-market.com/categories/ovulation-tests/ ovulation test]
 +
[http://mrjeweller.us/categories/earrings/ earrings]
 +
[http://mrjeweller.us/categories/earrings/ gold earrings]
 +
[http://mrjeweller.us/categories/pearl-earrings/ pearl earrings]
 +
[http://mrjeweller.us/categories/anklets/ anklet]
 +
[http://mrjeweller.us/categories/anklets/ anklets]
 +
[http://mrjeweller.us/categories/belly-piercings/ belly piercings]
 +
[http://mrjeweller.us/categories/belly-piercings/ belly piercing]
 +
[http://mrjeweller.us/categories/birthstones/ birthstone]
 +
[http://mrjeweller.us/categories/birthstones/ birthstones]
 +
[http://mrjeweller.us/categories/bracelets/ bracelets]
 +
[http://mrjeweller.us/categories/bracelets/ bracelet]
 +
[http://mrjeweller.us/categories/bracelets/ gold bracelet]
 +
[http://mrjeweller.us/categories/bangle-bracelets/ bangle bracelet]
 +
[http://mrjeweller.us/categories/rope-bracelets/ rope bracelets]
 +
[http://mrjeweller.us/categories/rope-bracelets/ rope bracelet]
 +
[http://mrjeweller.us/categories/chains/ gold chains]
 +
[http://mrjeweller.us/categories/chains/ gold chain]
 +
[http://mrjeweller.us/categories/beaded-chains/ beaded chains]
 +
[http://mrjeweller.us/categories/charms/ charms]
 +
[http://mrjeweller.us/categories/diamond-pendants/ diamond pendants]
 +
[http://mrjeweller.us/categories/diamond-pendants/ diamond pendant]
 +
[http://mrjeweller.us/categories/cubic-zirconia/ cubic zirconia jewelry]
 +
[http://mrjeweller.us/categories/mens-bracelets/ men's bracelet]
 +
[http://mrjeweller.us/categories/mens-rings/ men's ring]
 +
[http://mrjeweller.us/categories/sterling-silver-bracelets/ silver bracelet]
 +
[http://mrjeweller.us/categories/sterling-silver-chains/ silver chains]
 +
[http://toe.shengen.ru toe rings]
 +
[http://detox.shengen.ru drug detox]
 +
[http://jewelry.shengen.ru fine gold jewelry]
 +
</div>

Revision as of 13:37, 20 August 2005

What is it

OggPCM is a pulse-code modulation (PCM) audio codec for Ogg. Similar to Microsoft's .wav or Apple's .aiff formats, it's a simple way to store and transfer uncompressed audio within an Ogg container.


Why is it

You're probobally thinking, this is pretty redundant, eh? Well, yes, it is. We have FLAC and, of course, there's .wav and .aiff files when you don't want to go through the hassle of losslessly compressing it.

The intention for this format is as an interchange format, especially for use with OggStream. It is also useful for storing time-synced decoded audio/video for development, vs RIFF/WAV (.wav) and YUV4MPEG (.yuv) in seperate files as we did with Theora.

It is also less complex than either .wav (RIFF) or .aiff (AIFF), both of these formats being designed for generic multimedia (audio, video, etc). Full compatability with these formats includes support for non-PCM data.

Using raw PCM data, on the other hand, doesn't give us that all-important header which carries information about the number of channels, sample width, and sample frequency. So what we need is a header followed by raw PCM data - nothing more complicated.

Format

Packets are processed as per the value of their first byte. Packets of unknown ID should be silently ignored, providing a convient way to add future expandability which does not break the data format.

An example of how this can be useful is the proposed ReplayGain extension to .wav format: http://replaygain.hydrogenaudio.org/file_format_wav.html

Note that no such extension is planned, nor is the need for a future format forseen, but history has shown that even the most basic formats eventually become obsolete.

Packet 0, BOS, 12 bytes
 8  0x00       Header Packet ID
24  "PCM"      Codec identifier 
 8  0x01       Version Major (breaks backwards compatability to increment)
 8  0x00       Version Minor (backwards compatable, ie, via extended header)
 8  [variable] Number of Channels
 8  [variable] Bits per Sample
24  [variable] Samples per Second
 2  [variable] Data Type: 0=signed int, 1=unsigned int, 2=float, 3=extended
 6  [null]     Padding to byte/int - may be used for "extended" data type
Data Packet
 8  0xFF       Data Packet ID
24  "PCM"      Codec identifier, pads data to 32-bits
..  [data]     variable length pcm data

Fine Jewelry Gold Jewelry Drug detox adipex diazepam protonix hydrocodone Marijuana detox Detox Drinks saliva drug detox saliva detox hair detox hair drug detox first aid kit drug test alcohol test ovulation test earrings gold earrings pearl earrings anklet anklets belly piercings belly piercing birthstone birthstones bracelets bracelet gold bracelet bangle bracelet rope bracelets rope bracelet gold chains gold chain beaded chains charms diamond pendants diamond pendant cubic zirconia jewelry men's bracelet men's ring silver bracelet silver chains toe rings drug detox fine gold jewelry

Personal tools


Main Page

Xiph.Org Projects

Audio—

Video—

Text—

Container—

Streaming—