Re: [LAU] Need to determine bit depth from command line

From: <hollunder@email-addr-hidden>
Date: Sun Jan 13 2008 - 18:35:15 EET

On Sun, 13 Jan 2008 08:22:07 -0800
Kevin Cosgrove <kevinc@email-addr-hidden> 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@email-addr-hidden
> 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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Sun Jan 13 20:15:47 2008

This archive was generated by hypermail 2.1.8 : Sun Jan 13 2008 - 20:15:47 EET