[linux-audio-dev] Length of a soundfile in a script

Jan Weil jan.weil at web.de
Thu Jul 8 07:14:15 UTC 2004


On Wed Jul  7 22:34:58 2004 Hans Fugal wrote:
> I thought sox might be able to do it but I don't see it if it's there. I
> want to know how long (in time) an audio file is. Preferably output the
> number of seconds or some fraction thereof to stdout, and preferably can
> handle a large variety of sound types like sox (but if not, I can use
> sox). 

IIRC sndfile-info can do that.

-- 
Jan Weil
http://linuxaudioblog.jawebada.de



More information about the Linux-audio-dev mailing list