[Vorbis] Wrong WAV AudioFormat

Richi Plana richip at richip.dhs.org
Thu Nov 24 08:10:34 PST 2011


On Thu, 2011-11-24 at 20:16 +1100, Erik de Castro Lopo wrote:
> Richi Plana wrote:
> 
> > Hi,
> > 
> > I am using vorbis-tools 1.4.0 on Fedora 14 to convert Ogg Vorbis files
> > to MS WAV format. It seems that ogg123 is encoding the wrong AudioFormat
> > value. For Uncompressed PCM, the AudioFormat should be 1 but for some
> > reason, it is being encoded in the WAV file as -1.
> 
> Not necessarily. A format of 0xffff specifies the WAVE_FORMAT_EXTENSIBLE
> file type. Assuming the file isn't malformed, any program whcih does
> accept WAVE_FORMAT_EXTENSIBLE files is broken.

First of all, my mistake. The AudioFormat it was being set to was -2
(0xFFFE). But after running sndfile-info as you suggested, it did
indicate WAVE_FORMAT_EXTENSIBLE.

> If you use sndfile-info on the file produced by off123 then it
> will tell you if the file is malformed or now.
> 
> sndfile-convert will convert to a standard old format WAV file.

Thanks for this. It worked. (As a side note, it also seemed to work
where I used a hex editor to change the value 0xFFFE -> 0x0001 in file)



More information about the Vorbis mailing list