On Sun, 13 Jan 2008 08:22:07 -0800
Kevin Cosgrove <kevinc(a)cosgroves.us> wrote:
Is there any command-line way to tell what the bit depth of a sound
file is? Sox's '-e stat' doesn't say that. /usr/bin/file only gives
the sample rate. Audacity, not command-line, tells me that my file
in question is "Mono, 44100 Hz, 32-bit float". I'd rather not have
to use Audacity on all my files to figure out which ones are 16-bit
and which ones are 32-bit. I suppose I could use sox to find out how
many samples, file to find out the sample rate, /bin/ls to determine
the size, and then calculate the bit depth.
Anyone?
Thanks....
--
Kevin
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user(a)lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
sndfile-info could do the job. It may depend on your files tough (mine
here doesn't like ogg but likes wav after a short test)
regards
Philipp