mp3

2013-02-27 Thread fabriceS

Hi,

Is anybody know how to get the lenght (in seconds) of a mp3 file ?

I try with pygame.mixer but without success...


Thanks

Fabrice
--
http://mail.python.org/mailman/listinfo/python-list


Re: mp3

2013-02-28 Thread fabriceS

Le 28/02/2013 01:07, alex23 a écrit :

On Feb 28, 7:58 am, fabriceS  wrote:

Is anybody know how to get the lenght (in seconds) of a mp3 file ?


Try eyeD3: https://pypi.python.org/pypi/eyeD3

 >>> import eyed3
 >>> mp3 = eyed3.load(r'pygame\examples\data\house_lo.mp3')
 >>> mp3.info.time_secs
 7




  it work fine

greats
--
http://mail.python.org/mailman/listinfo/python-list