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.
> This used to work on some prior version of either Fedora or
> vorbis-tools. I thought I'd ask in the email list in case it's a
known
> matter.
May I suggest you look at libsndfile:
http://www.mega-nerd.com/libsndfile/
which includes two programs:
sndfile-info - Prints out information about files.
sndfile-convert - Converts between file formats including Ogg
and WAV.
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.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/