[linux-audio-user] Converting IEEE FLOAT WAV's to ... anything?

From: Ken Restivo <ken@email-addr-hidden>
Date: Sun Feb 11 2007 - 05:39:11 EET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm having a great deal of difficulty converting WAV formats in 32-bit IEEE FLOAT format, to almost anything else, using command-line tools like sox, flac, and lame.

The only tool I've found so for that can handle IEEE FLOAT WAV's is oggenc. Yay Vorbis. But, the FLAC tools, even though they're from the same developers as Ogg Vorbis, dies horribly, with ERROR: unsupported compression type 3

LAME says it encodes the file, but then listening to the resulting MP3 gives only white/pink noise. I guess it assumes that the file is some other format.

So I figured, I'll use sox to convert it first from 32-bit float to, say, 24 bit linear. No dice: sox loses control ofits bladder too, can't handle the WAV.

What versions have I got?
 flac 1.1.2-5
 lame 3.97-0.0
 sox 12.17.9-1

An example file that neither FLAC nor LAME nor sox seems to be able handle is:

Length : 114221044
RIFF : 114221036
WAVE
fmt : 16
  Format : 0x3 => WAVE_FORMAT_IEEE_FLOAT
  Channels : 2
  Sample Rate : 48000
  Block Align : 8
  Bit Width : 32
  Bytes/sec : 384000
data : 114221000
End

- ----------------------------------------
Sample Rate : 48000
Frames : 14277625
Channels : 2
Format : 0x00010006
Sections : 1
Seekable : TRUE
Duration : 00:04:57.450
Signal Max : 0.724668 (-2.80 dB)

This is the format that jack_capture produces. It supposedly has options to save in other bit-depths, which I tried, but they didn't seem to do anything.

Granted, I can open these files in Audacity or Rezound or Sweep, and with the GUI convert the file to just about anything. However, I dislike GUI's, and I'd like to be able to do this with the commandline tools. Opening 20 WAV files and click-clacking around on menu options is anathaema: the whole process wants to be a 1-liner bash script really.

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFzo/fe8HF+6xeOIcRAopOAJ0WzTf0UlHdrxH2y6/WDrOVycE0oACg1sSd
BiZNUqmYXkSKdYWaSSLPk6A=
=keZ5
-----END PGP SIGNATURE-----
Received on Sun Feb 11 12:15:01 2007

This archive was generated by hypermail 2.1.8 : Sun Feb 11 2007 - 12:15:03 EET