Length in seconds of OGG/MP3

Discussion in 'Python' started by Dylan Parry, Feb 23, 2004.

  1. Dylan Parry

    Dylan Parry Guest

    Hi,

    I am entirely new to Python, in fact I've only been using it for two days,
    but so far I have progressed quite well :) Anyway, the problem I have is
    that I want to find the play length of an Ogg or Mp3 (it could be either).

    I already have a command line utility that returns the current position in
    the file (number of seconds that have played) and the same utility also
    returns the path of the file that is playing, but for some reason it has
    no interface for telling me how long the file is!

    Can this be done in Python?

    --
    Dylan Parry
    http://www.webpageworkshop.co.uk - FREE Web tutorials and references
     
    Dylan Parry, Feb 23, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JavaZOOM

    MP3 & Ogg Vorbis player applet

    JavaZOOM, Oct 5, 2003, in forum: Java
    Replies:
    0
    Views:
    2,289
    JavaZOOM
    Oct 5, 2003
  2. James Harvey

    Thread friendly MP3/OGG playback

    James Harvey, Feb 2, 2006, in forum: Java
    Replies:
    1
    Views:
    439
    Douwe
    Feb 3, 2006
  3. Frank Zigler
    Replies:
    2
    Views:
    2,220
    zentara
    Jan 9, 2005
  4. Francis Lavoie

    mp3/ogg player

    Francis Lavoie, Oct 5, 2004, in forum: Python
    Replies:
    1
    Views:
    380
    Dmitry Borisov
    Oct 5, 2004
  5. Michael Tan
    Replies:
    32
    Views:
    991
    Ara.T.Howard
    Jul 21, 2005
Loading...

Share This Page