oggvorbis - Using Vorbis without Ogg? -


i'm wondering why vorbis needs container @ all? know can stick vorbis in ogg container or matroska container, if i'm not going bundle video or other multimedia why can't vorbis data stand alone in own file?

has had experience doing this? googled before searching , found single mention in oggvorbis mailing list no details.

it possible. not need know before hand length of vorbis packet (whether headers or audio) able decode them. without ogg wrapper (or alternative wrapper) miss out on few things, might not important application:

  • the page checksums - not important if reading disk or other rather reliable source
  • the page granule/last sample positions - useful improving seeking performance, , specifying

however, can pretty trivially make pure vorbis bytestream ogg file (given there 1 vorbis stream in it) by:

  1. skipping 26 bytes
  2. n = read 1 byte
  3. countofbytestoread = sum of next n bytes
  4. read countofbytestoread bytes vorbis bytestream
  5. repeat 1-4 until ogg file exhausted

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -