ecalength(1)
π ecalength β the manual page, but make it cute π
okay so bestie, you know that feeling when you just need to know how long an audio file is, from the command line, with zero drama? yeah. that's this. welcome to ecalength(1), part of the Multimedia software corner of the man pages. pull up a chair, we're gonna read this together π«Ά
β¨ NAME β¨
ecalength β prints audio file length and other information
πΈ SYNOPSIS πΈ
ecalength [-ahtsfmbcr] FILE1 [FILE2] [FILEn]
π¦ DESCRIPTION π¦
So this is ecalength. And likeβ¦ it's literally a few lines of code that someone pompously named like it's a whole big thing π β but the reason it exists is that it lets you retrieve the length of an audio file from the command line using ecasound's engine. tiny code, big main character energy, honestly.
π Limitations (the vibe check we gotta be honest about)
- With files that don't have header information (raw files),
ecalengthwill only work correctly if the audio file is at a sampling rate of 44100 hz. (Addressed with the-aswitch.) - It is not foolproof β feeding it with something that isn't an audio file WILL result in ugly things being spewed back. (A bit better.)
- A thousand more that the author hasn't thought of π
lowkey iconic that the manpage admits its own chaos. we respect the honesty.
π OPTIONS π
-hβ Prints this usage message. (help)-a[:]bits,channels,rateβ Changes the format assumed by default for headerless data. (adjust)-tβ Prints the summed length of all the files processed. (total) (Ignored if with-s)-sβ Enables script mode: One info type per file per line. (script) (Defaults to length in secs.)-fβ With-swill return the format string as info, alone it will add it to the main display. (format)-bβ If-sand-fare enabled with this the info printed will be the sample's bitwidth. (bits)-cβ If-sand-fare enabled with this the info printed will be the channel count. (channel count)-rβ If-sand-fare enabled with this the info printed will be the sampling rate. (rate)-mβ Will print human computable time as in main display but in batch fashion. (minutes) (Only with-s)
π SEE ALSO π
π AUTHOR π
S.Massy, <observer |at| colba.net <observer |at| colba.net>>
and that's the whole page bestie, you ate it, you understood it, periodt π
this one's dated 18.04.2004 β shoutout to the source and version, we stan an old-school classic π keep slaying, and remember: don't feed it non-audio files unless you want chaos β¨π
π¦ where this page comes from
- arch rolling: ecasound 2.9.3-19 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- debian bookworm: ecatools 2.9.3-4+b1 Β· GPL-2.0-or-later
- debian trixie: ecatools 2.9.3-4+b5 Β· GPL-2.0-or-later
- nixos 26.05: ecasound 2.9.3
- nixpkgs unstable: ecasound 2.9.3
- ubuntu jammy: ecatools 2.9.3-4 Β· GPL-2.0-or-later
- ubuntu noble: ecatools 2.9.3-4build2 Β· GPL-2.0-or-later
- ubuntu questing: ecatools 2.9.3-4build2
- ubuntu resolute: ecatools 2.9.3-4build3 Β· GPL-2.0-or-later
- ubuntu stonking: ecatools 2.9.3-4build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms