mp3: Get length of a mp3 file

2023-10-22

Use mp3info to get the length of a mp3 file:

Total time in seconds

mp3info -p "%S\n" some.mp3
Output:
7892

Total time formatted

mp3info -p "%m:%s\n" some.mp3
Output:
131:32

← Home