<insert file=../es-makrot.txt> <insert name=ecasound_indexbar> <p> <hr> <center><h2> ecasound documentation - manual pages </h2></center> </p> <html><head><title>ecalength</title> <link rev="made" href="mailto:observer@colba.net"> </head> <body> <hr> <h1>ecalength</h1> <h2>06.10.2001</h2> <p><h2>NAME</h2> ecalength - prints audio file lenght and other information <p><h2>SYNOPSIS</h2> <strong>ecalength</strong> [-ahtsfmbcr] FILE1 [FILE2] [FILEn] <p><h2>DESCRIPTION</h2> <p>This is ecalength, a few lines of code pompously named so because they let one retrieve the length of an audio file from the command line using ecasound's engine. <p>Limitations: <dl> <p></p><dt><strong></strong><dd>- With files without header information (raw files), ecalength will only work correctly if the audio file is at a sampling rate of 44100 hz. (Addressed with the -a switch.) <p></p><dt><strong></strong><dd> - It is not foolproof, feeding it with something other than an audio file WILL result in ugly things being spewed back. (A bit better) <p></p><dt><strong></strong><dd> - A thousand more that I haven't thought of. </dl> <p><h2>OPTIONS</h2> <p><dl> <p></p><dt><strong>-h</strong><dd> Prints this usage message. (help) <p><p></p><dt><strong>-a[:]bits,channels,rate</strong><dd> Changes the format assumed by default for headerless data. (adjust) <p><p></p><dt><strong>-t</strong><dd> Prints the summed length of all the files processed. (total) (Ignored if with -s) <p><p></p><dt><strong>-s</strong><dd> Enables script mode: One info type per file per line. (script) (Defaults to length in secs.) <p><p></p><dt><strong>-f</strong><dd> With -s will return the format string as info, alone it will add it to the main display. (format) <p><p></p><dt><strong>-b</strong><dd> If -s and -f are enabled with this the info printed will be the sample's bitwidth. (bits) <p><p></p><dt><strong>-c</strong><dd> If -s and -f are enabled with this the info printed will be the channel count. (channel count) <p><p></p><dt><strong>-r</strong><dd> If -s and -f are enabled with this the info printed will be the sampling rate. (rate) <p><p></p><dt><strong>-m</strong><dd> Will print human computable time as in main display but in batch fashion. (minutes) (Only with -s) </dl> <p><h2>SEE ALSO</h2> <p>ecasound(1), ecatools(1) <p><h2>AUTHOR</h2> <p>S.Massy, <<a href="mailto:observer@colba.net"><em>observer@colba.net</em></a>> <p><insert name=ecasound_tail> </body> </html>