check duration of audio files on the command-line

后端 未结 14 862
攒了一身酷
攒了一身酷 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
    
    0 讨论(0)
  • 2021-02-05 01:00
    soxi -D filename
    soxi -D *
    

    Soxi queries metadata of audio files; D is the duration option. It supports globbing. Soxi's big brother sox does command-line audio processing.

    0 讨论(0)
提交回复
热议问题