#playlist #duration #music

app playlist-duration

Computes the total music time of a playlist

10 releases

0.1.9 Apr 25, 2022
0.1.8 Apr 12, 2022
0.1.6 Oct 18, 2019
0.1.4 Sep 6, 2019
0.1.3 Nov 11, 2018

#486 in Audio

26 downloads per month

WTFPL license

12KB
264 lines

Playlist-Duration

Computes the length of a given playlist.

$ playlist-duration foo.mp3 bar.flac my_directory/

Format supported:

  • mp3
  • flac
  • ogg (Vorbis + Opus)
  • m3u : Caution, m3u is implemented naively. Recursive m3u playlists should not be used. Also, it manages only paths and not urls, to avoid downloading the whole file just to know its duration.
  • m4a

Dependencies

~3.5MB
~77K SLoC