<html><head> <title>ecalength</title> <link rev="made" href="mailto:observer .at. colba .dot. net"> </head> <body> <hr> <h1>ecalength</h1> <h2>18.04.2004</h2> <html><head> <link rev="made" href="mailto:observer .at. colba .dot. net"> </head> <body> <hr> <h1></h1> <html><head> <title>ecalength(1)</title> <link rev="made" href="mailto:observer .at. colba .dot. net"> </head> <body> <hr> <h1>ecalength(1)</h1> <h2> Multimedia software</h2> <h2>18.04.2004</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><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><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><dt><strong></strong><dd> - A thousand more that I haven't thought of. </dl> <p> <h2>OPTIONS</h2> <p> <dl> <p><dt><strong>-h</strong><dd> Prints this usage message. (help) <p> <p><dt><strong>-a[:]bits,channels,rate</strong><dd> Changes the format assumed by default for headerless data. (adjust) <p> <p><dt><strong>-t</strong><dd> Prints the summed length of all the files processed. (total) (Ignored if with -s) <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><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><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><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><dt><strong>-r</strong><dd> If -s and -f are enabled with this the info printed will be the sampling rate. (rate) <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 |at| colba.net"><em>observer |at| colba.net</em></a>>