Re: Need to determine bit depth from command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 13 Jan 2008 08:22:07 -0800
Kevin Cosgrove <kevinc@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux