[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:
Digby Tarvin wrote:
>I would take a look at the source for the 'ogginfo' command, or if
>performance is not important, just parse its output:
I am hoping for a pure python method of doing this, so parsing the
output of ogginfo is not my prefered method, but it DOES work.

I have not had a chance to sort through the source for ogginfo, and
doing so does not thrill me, but it may give me a hint what the
attribute names might be for python-pyvorbis, thereby allowing me to
stick to a python solution.

Have you tried printing out __dict__ for the object returned by
VorbisFile.info()?

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



Reply to: