extm3u.pl generates an extended
.m3u playlist from the files in a given directory. The generated playlist can be used with XMMS, Winamp, and other MP3 players. The playlist is printed to stdout. Extended .m3u files contain additional information, such as the length of the song and data from the ID3 tag.
For the curious - it looks like this:
#EXTINF:187,Bob Marley & The Wailers - Keep On Moving ./Bob_Marley_and_The_Wailers/Trilogy_CD3/Keep_On_Moving.mp3
The first number is the length of the song in seconds, then comes the artistname and songname from the ID3-tag.
This script works with .mp3, .ogg and .flac files and requires the following Perl modules: