From: Konrad Meyer Date: 2008-01-19T11:40:30+09:00 Subject: Re: Looking for code to determine length of audio files --nextPart1726187.Qj0QAA1iHd Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Rick DeNatale: > I'm working on a project which has the requirement to automatically > determine the runtime of audio files in several formats, right now mp3 > and aac. >=20 > I googled around to see if there might be some existing code, > hopefully ruby code which can determine this, but I'm coming up dry. >=20 > Any ideas? >=20 > --=20 > Rick DeNatale >=20 > My blog on Ruby > http://talklikeaduck.denhaven2.com/ Take a look at the metadata gem. It harnesses several libraries to provide= =20 meta-information from a wide variety of formats. Not sure if runtime length= =20 is stored in the file's metadata but it may serve your needs. HTH, =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart1726187.Qj0QAA1iHd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHkWMdCHB0oCiR2cwRAvK3AJ0S0uuqxotFnWl4rW0AmwOGdtG0NACdH96O VOihELpqMs5f3E226LuXXTw= =d/kJ -----END PGP SIGNATURE----- --nextPart1726187.Qj0QAA1iHd--