[LAD] Audio file audio length

William Steidtmann billstei at hbci.com
Sat Jan 10 15:41:11 UTC 2009


Is there a way to check from the command line the audio length (not the 
size of the file) of an audio file (assume wav, but I also want to do 
other types, especially flac).  So far I have only found this:

sox myaudiofile.wav -n stat

which gives me more information than I need, but at least I can parse 
out the length from that output.  Is there a simpler more direct 
approach using some other command line utility ?

Bill



More information about the Linux-audio-dev mailing list