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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Length of a soundfile in a script
From: Eric Dantan Rzewnicki (rzewnickie_AT_rfa.org)
Date: Thu Jul 08 2004 - 17:40:52 EEST


On Thu, Jul 08, 2004 at 05:14:30PM +1000, Erik de Castro Lopo wrote:
> On Wed, 7 Jul 2004 22:34:58 -0600
> Hans Fugal <hans_AT_fugal.net> 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.
>
> On my machine:
>
> erikd_AT_coltrane > sndfile-info Sound/HelpDesk.wav | grep ^Duration
> Duration : 00:00:41.616
>
> The sndfile-info program is part of libsndfile. In Debian it gets
> installed when you install the sndfile-programs package.
>
> Erik

ecasound includes ecalength which does what you want as well. (probably
via libsndfile, so it's likely just another interface to the same code.)

-Eric Rz.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Jul 08 2004 - 17:45:56 EEST