mp3 libs and programs

J

Jay

I'm writing a python script that involves playing mp3 files. The first
approach I had was sending commands to unix command-line programs in
order to play them. I tired mpg123 and moosic, but there was a key
feature to my program's success that's missing. SEEK! I need to be
able to start playing a song at an arbitrary point in the song. I
can't find anything to let me do this. Does anyone have any advice or
has anyone needed something similar?
 
H

Harold Fellermann

hi,
I'm writing a python script that involves playing mp3 files. The first
approach I had was sending commands to unix command-line programs in
order to play them. I tired mpg123 and moosic, but there was a key
feature to my program's success that's missing. SEEK! I need to be
able to start playing a song at an arbitrary point in the song. I
can't find anything to let me do this. Does anyone have any advice or
has anyone needed something similar?

check out pyxmms.
 
J

Jay

That's definately a good choice, but what about mplayer in slave mode?
Can I use that with python? Would that be able to seek?
 
J

Jay

I checked it and I can most definitely do the seeking from the command
line with mplayer. Can I use slave mode with python?
 
R

Richard Jones

Jay said:
I'm writing a python script that involves playing mp3 files.

I've previously successfully used the Python interface for MAD:

http://www.underbit.com/products/mad/

which was trivial to use in combination with libao's python interface (and
throw in ogg.vorbis from xiph.org and you've got a complete player :)

Also, these days you might want to look into gstreamer. It rocks*, but I've
not personally used it.:

http://gstreamer.freedesktop.org/


Richard

*: Anthony Baxter, your friendly neighborhood Python Release Manager, is in
love with it.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top