check duration of audio files on the command-line

后端 未结 14 1107
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 00:13

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

14条回答
  •  半阙折子戏
    2021-02-05 00:38

    Another soxi based answer including the file names and duration in hours, minutes and seconds format.

    $for f in *amr; do printf "$f "; soxi -d $f; done
    
    DGT20161216.amr 00:22:04.62
    DGT20170108.amr 00:28:22.80
    DGT20170117.amr 00:20:05.18
    

提交回复
热议问题