Log in

View Full Version : Converting 32bit float headerless RAW to 32bit float WAV


wqcr
5th March 2012, 20:40
Hello,
I'm having troubles converting from headerless raw to wav while preserving all audio data.
The RAWs are NOT normalized to 0dBFS, but they're not clipped as they're floating point. I tried SoX to handle this conversion, however due to only 24bit precision, the output is clipped no matter what option is specified (-G, -v, --norm, gain, ...).

Any suggestions on batch RAW to WAV float converter?

Thanks

Input File : 'file.raw'
Channels : 2
Sample Rate : 96000
Precision : 24-bit
Duration : 00:00:07.86 = 754909 samples ~ 589.773 CDDA sectors
File Size : 6.04M
Bit Rate : 6.14M
Sample Encoding: 32-bit Floating Point PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no

Output File : 'file.wav'
Channels : 2
Sample Rate : 96000
Precision : 24-bit
Sample Encoding: 32-bit Floating Point PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no
Comment : 'Processed by SoX'

sox WARN sox: 'file.wav' output clipped 320417 samples; decrease volume?

tebasuna51
5th March 2012, 22:13
Try WavFix.exe (http://forum.doom9.org/showthread.php?p=1520399#post1520399)

With your sample:

WavFix file.raw file.wav -ignorelength -f 32 -c 2 -s 96000

wqcr
6th March 2012, 14:30
Thanks, WavFix worked!
Nevertheless I just realized that I still need SoX for some trimming. :o
Is there any software (prefferably command line) that would normalize Float WAV with multichannel support? (all I found only process integer WAV but not float)

tebasuna51
6th March 2012, 16:25
Maybe eac3to, but the output is 24 bits int.

Or Wavi using AviSynth.