[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find play length of .ogg file using python?



On 6/15/06, Marc Shapiro <mshapiro_42@yahoo.com> wrote:
mns@xander:~/Projects/Python$ ogg123.py --device=oss cues/MayTheWords.ogg
Module choice: ao
Playing cues/MayTheWords.ogg

Traceback (most recent call last):
  File "./ogg123.py", line 221, in ?
    main()
  File "./ogg123.py", line 218, in main
    myplayer.play(file)
  File "./ogg123.py", line 52, in play
    self.start(vf)
  File "./ogg123.py", line 59, in start
    print vi.__dict__
AttributeError: No attribute: __dict__

--------------------------------------

Sorry.  __dict__ is class metadata, so that should have been something
along the lines of:

import pyvorbis
print pyvorbis.<class name>.__dict__

I don't have pyvorbis at work, so I can't check this myself right now.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: