Re: MP3-Player in Python?

From: Eric Baker (google.com.112139_at_satilla.com)
Date: 11/21/03


Date: Fri, 21 Nov 2003 01:31:47 -0500


"Thorsten Pferdekämper" <thorsten@pferdekaemper.com> schrieb im Newsbeitrag
news:bpg2l7$d9v$1@news1.wdf.sap-ag.de...
> Hi,
> I am currently trying to code a little MP3-Player in Python. I do not try
to
> do all the decoding stuff in Python, I am just looking for a (more or
> less...) platform independent way to play MP3s. I also want to display
> information like these stored in the ID3-tag and information like the
length
> in seconds, the scan frequency etc.
> So far, I have found the following solutions, but I am not really happy
with
> all of them:
>
> 1. pygame.mixer.music:
> Pros: Seems to be very platform independent
> Cons: I was not able to get the length in seconds etc.
>
> 2. tksnack
> Pros: Lots of functionality. Really cool.
> Cons: Needs Tkinter to run. (I would like to run this without X in
> Linux.)
>
> 3. popen mplayer or something like this
> Pros: ?
> Cons: Don't know how to control volume, position etc.
> Dont' know how to close mplayer in Windows...
>
> So far for the MP3 playing stuff.
>
> Concerning the ID3 tags, I have found the id3-py package
> (id3-py.sourceforge.net). It worked, but I dislike the automatic saving of
> changes on deconstruction. It also causes problems with german umlauts...
> It also seems not to support ID3v2.
>
> I also know mmpython, but I do not know how to run this with Windows XP.
(It
> works fine with Linux...)
>
> So, what do you think?
>
> Regards,
> Thorsten

I tried this under windows, it worked quite well. It will play the files,
you will need other modules for tags and such things.

http://audiere.sourceforge.net/home.php

Audiere is a high-level audio API. It can play Ogg Vorbis, MP3, FLAC,
uncompressed WAV, AIFF, MOD, S3M, XM, and IT files. For audio output,
Audiere supports DirectSound or WinMM in Windows, OSS on Linux and Cygwin,
and SGI AL on IRIX.

Eric



Relevant Pages

  • Re: I want to be convinced; convince me.
    ... > write down both pros and cons, but you'll see that most are cons, as I ... > content windows that are not at the left border of the screen. ... > love the Mac" is just too much to let slide. ...
    (comp.sys.mac.advocacy)
  • Re: Pros and cons for WIndows XP
    ... accoridng to the assignment just the pros and cons of windows xp ... the credit for you i hope would be helping out a fellow computer person. ... Pros and cons of Windows XP ...
    (microsoft.public.windowsxp.basics)
  • Re: connection options to yukon
    ... I am leaning towards Windows Authentication too. ... account vs local account? ... Any pros & cons of one over the other? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Python versus VB
    ... VB cons: VB6 is dying, VB.NET is maybe not that stable, VB is not ... portable, VB as really weak support for text-processing (regexp, ... Python con: it's not a wide standard. ... Python pros: it's really hi level, esay to write, read, maintain, well ...
    (comp.lang.python)
  • MP3-Player in Python?
    ... I am currently trying to code a little MP3-Player in Python. ... platform independent way to play MP3s. ... Cons: I was not able to get the length in seconds etc. ... Pros: Lots of functionality. ...
    (comp.lang.python)