extm3u.pl generates an extended .m3u playlist from a given directory. The generated playlist can be used with XMMS, Winamp, and other MPEG layer 3 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. This script requires the MP3::Info Perl-module.
For the curious the process will looks like this:
EXTINF:187,Bob Marley & The Wailers - Keep On Moving
The first number is the length of the song in seconds, then comes the artistname and songname from the ID3-tag