<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body><br><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>It seems there is no standard for the metadata in mp3 and several different methods are in use. Some of them are at the end of the file and others at the beginning, so it's not straightforward.<br></div><div>Most of the tags give the name but not all of them give the length, and since mp3 is compressed in a non-linear way, there's no way to determine the length except by playing it.</div></div></div></div></blockquote><div><br></div><div>I never went that far into the insides of mp3 coding. but since any file player software indicates the duration of an mp3 when you add it to the playlist, that information must be easy to get from somewhere.</div><div><br></div><div>Joao</div></body></html>