[vorbis-dev] WAV header (hey Mike)

Michael Smith msmith at labyrinth.net.au
Thu Aug 10 08:50:58 PDT 2000



On Fri, 11 Aug 2000 01:47:18 Michael Smith wrote:

On Fri, 11 Aug 2000 01:00:51 Shawn Pourchot wrote:
> People are allowed to use any arbitrary chunk.  Often "JUNK" is used to pad
> out fields but never make an assumption that a chunk is in a fixed place or
> that it exists (other then DATA).

Yeah. I've now rewritten the guilty code (but can't commit it. xiph.org is
having a bad day). It should now correctly deal with whatever other chunks
might be
lying around (but I haven't really tested it).

> 
> Also when you write out and ogg file please use the "FACT" chunk that stores
> the number of samples in the original file.  

Not quite sure what you mean here - the vorbis file isn't wav encapsulated
(and
there's no sane reason for making it so), so there aren't any wav-style chunks
at all. 

This was all in the context of reading in wav files for encoding (since oggenc
was broken in this respect - I hadn't come across any files that it should
have
read that it didn't, but then someone found that their ripper produced some
sort
of padding chunk. So, this is now sanely ignored.

If you mean when decoding to a WAV file, then the FACT chunk isn't required
(since the output is just PCM), so I can't see why it would be useful.

> 
> On an unrelated note are there redirector files for Ogg streams? (i.e. .pls,
> .m3u, .asx...)

Not specifically, but there's no reason that those existing ones wouldn't work
for redirecting to a vorbis stream. I don't THINK there's anything terribly
format-specific in them.

Michael

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list