check duration of audio files on the command-line

后端 未结 14 898
攒了一身酷
攒了一身酷 2021-02-05 00:00

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:59

    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
    

提交回复
热议问题