I need to check the duration of a group of audio files. Is there a simple way to do this on the unix command-line?
> duration *
I have the a
(When you don't have afinfo
at your disposal) I got it recursively for all my files
# install mp3info if not yet installed with
sudo apt-get install mp3info
with the find command, put the total seconds to a csv file (go to the directory with your e.g. mp3 files first)
find . -name "*.mp3" -exec mp3info {} -p "%S\r\n" >> totalSeconds.csv \;
Then open it in e.g. in LibreOffice and sum it up at the bottom (to get the hours) with
=SUM(A{start}:A{end})/60/60