The files generated from the Rate converter in the 24 bit format (44.1kHz -> 88.2 kHz) are not recognised by Foobar also recognised by VLC.
Please see FAQ #4: http://sox.sourceforge.net/Docs/FAQ
The same over here:
Sox Revision 14.2.0
Input is 24/2/96000 wav
Command: sox in.wav out.wav
sox -V output:
sox sox: effects chain: input 96000Hz 2 channels 24 bits (multi)
sox sox: effects chain: output 96000Hz 2 channels 24 bits (multi)
124841432 2009-01-16 10:25 02-John_Gorka-The_Gypsy_Life-I_Saw_A_Stranger_With_Your_Hair.wav
124840424 2009-01-16 10:22 02test.wav
Is the format or header changed?? Even -t wav didn't work.
I forgot to mention:
I get the same result if I use -t wavpcm or -t wav as mentioned in FAQ
One more(perhaps a workaround for the time being):
If I run:
sox in.wav -t wavpcm out.wav vol 0db
out.wav is readable even though -V says vol has no effect!
Hmmm... so far, not able to recreate this problem.
Perhaps you could try generating these 2 test files:
sox -b 24 -c 2 -r 96k -n -t wavpcm wavpcm.wav synth 1
sox -b 24 -c 2 -r 96k -n wav.wav synth 1
then testing with various players.
Here's what I find:
VLC 0.8.6a works with both
Audacity (libsndfile 1.0.17) works with both
foobar 0.9.6.1 works only with wavpcm.wav
Windows media player 10.00.00.4036 works only with wav.pcm
(pretty much as expected.)
This bug report is from 2009.
Nobody has responded.
There are two changelog entries from 14.3.2 that may be related:
– Fix RIFF chunk length error when writing 24-bit files. (David Bryant)
– 24-bit WAV files were leaving channel maps unassigned. Change to use common channel mappings based on channel count. This allows to work more seemlessly with other apps such as WavPack and Foobar2000. (David Bryant)
So it might be fixed.
The OP mentions rate conversion from 44.1k to 88.2k,
but I believe even his original problem was the 24 bits.
Anyway, the 24bit file produced with
$ sox -r 44100 -c 2 -b 24 -n in.wav synth 1 gain -3
$ sox in.wav -r 88200 out.wav
plays fine in mplayer, vlc, iTunes.
I don't have access to the other players mentioned here.
Can someone still replicate the original problem?
(Forgot to say that this is 14.4.2 on a MacOSX 10.5.8)