Re: mp3

2013-02-28 Thread fabriceS
Le 28/02/2013 01:07, alex23 a écrit : On Feb 28, 7:58 am, fabriceS wrote: Is anybody know how to get the lenght (in seconds) of a mp3 file ? Try eyeD3: https://pypi.python.org/pypi/eyeD3 >>> import eyed3 >>> mp3 = eyed3.load(r'pygame\examples\data\house_lo.mp3') >>> mp3.info.t

Re: mp3

2013-02-27 Thread alex23
On Feb 28, 7:58 am, fabriceS wrote: > Is anybody know how to get the lenght (in seconds) of a mp3 file ? Try eyeD3: https://pypi.python.org/pypi/eyeD3 >>> import eyed3 >>> mp3 = eyed3.load(r'pygame\examples\data\house_lo.mp3') >>> mp3.info.time_secs 7 -- http://mail.python.org/m

Re: mp3

2013-02-27 Thread Rick Johnson
On Wednesday, February 27, 2013 3:58:03 PM UTC-6, fabriceS wrote: > Is anybody know how to get the lenght (in seconds) of a mp3 file ? Well Mp3's have a huge header with tons of info stuffed inside. And i remember seeing a nice recipe on the Python cookbook (or maybe SO) for parsing the data. I

Re: MP3 and ID3 library/module recommendations

2007-11-03 Thread Basilisk96
I use PyMedia and mutagen. I've found PyMedia to be excellent for creating custom mp3 files from line input and performing frequency/energy analysis. I can't say that I've tried to convert other audio formats to MP3 with it, but I'm sure it's possible. I was able to get a working binary of v1.3.7

Re: MP3 decoder module?

2007-01-12 Thread Paul Rubin
Terry Carroll <[EMAIL PROTECTED]> writes: > As I read the Pymedia docs, you can use it to decode frames from an > MP3, and operate on the decoded sound data. > > See http://pymedia.org/tut/dump_wav.html for a discussion. Hmm, thanks, it looks like there's more there than I thought at first, tough

Re: MP3 decoder module?

2007-01-12 Thread Terry Carroll
Paul Rubin wrote: > Anyone know of a reasonable mp3 decoder library I can call from > Python? Some Googling didn't find anything too promising. It found > Pymedia (which plays mp3's through a sound system) But I want to > actually decode the mp3 frames and crunch on the audio samples. As I

Re: MP3 decoder module?

2007-01-12 Thread Paul Rubin
Paul Rubin writes: > Basically I want to write a program that takes an mp3 audio file and > finds the silent frames, with the idea of chopping the file into > segments at those points automatically, or compressing the silences > out of spoken audio to make it play faster

Re: MP3 files and Python...

2006-10-11 Thread Josh Bloom
Dive Into Python also has a little tutorial/code for reading and editing mp3 tags. http://www.diveintopython.org/object_oriented_framework/index.html -JBOn 10/10/06, Max Erickson <[EMAIL PROTECTED]> wrote: Karlo Lozovina <[EMAIL PROTECTED]> wrote:> I'm looking for a Python lib which can read and _w

Re: MP3 files and Python...

2006-10-10 Thread Max Erickson
Karlo Lozovina <[EMAIL PROTECTED]> wrote: > I'm looking for a Python lib which can read and _write_ ID3v1 and > ID3v2 tags, and as well read as much as possible data from MP3 > file (size, bitrate, samplerate, etc...). > > MP3 reproduction is of no importance... > Try mutagen: http://www.sacre

Re: mp3 file length in time

2006-09-17 Thread Tim Heaney
"Jay" <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: >> "Jay" <[EMAIL PROTECTED]> writes: >> > In python, I know there are a couple of modules for getting id3 info, >> > but what about the length of an mp3 file in time? Is there a way to >> > aquire that info? Most of my MP3s don't have id3 tags

Re: mp3 file length in time

2006-09-17 Thread Paul Rubin
"Jay" <[EMAIL PROTECTED]> writes: > Any tips on how to do that? You might type "python mp3" into google. That's often the fastest way to find answers of this type. -- http://mail.python.org/mailman/listinfo/python-list

Re: mp3 file length in time

2006-09-17 Thread Jay
Any tips on how to do that? Paul Rubin wrote: > "Jay" <[EMAIL PROTECTED]> writes: > > In python, I know there are a couple of modules for getting id3 info, > > but what about the length of an mp3 file in time? Is there a way to > > aquire that info? Most of my MP3s don't have id3 tags. I don't

Re: mp3 file length in time

2006-09-17 Thread Paul Rubin
"Jay" <[EMAIL PROTECTED]> writes: > In python, I know there are a couple of modules for getting id3 info, > but what about the length of an mp3 file in time? Is there a way to > aquire that info? Most of my MP3s don't have id3 tags. I don't care > for them. But I need to use python to get their

Re: mp3 libs and programs

2006-09-15 Thread [EMAIL PROTECTED]
PyMedia has Windows binaries available for download. http://prdownloads.sourceforge.net/pymedia/pymedia-1.3.7.2.win32-py2.4.exe?download Jay wrote: > Only if I have to. PyMedia is a pain and a half to build and why do > that if I can just pipe it out to some other program? > > > Tim Williams wrote

Re: mp3 libs and programs

2006-09-15 Thread Richard Jones
Jay wrote: > 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'

Re: mp3 libs and programs

2006-09-15 Thread 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? Jay wrote: > 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? > > > Harold Fellermann wrote

Re: mp3 libs and programs

2006-09-15 Thread 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? Harold Fellermann wrote: > hi, > > Jay wrote: > > I'm writing a python script that involves playing mp3 files. The first > > approach I had was sending commands to unix

Re: mp3 libs and programs

2006-09-15 Thread Harold Fellermann
hi, Jay wrote: > 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

Re: mp3 libs and programs

2006-09-15 Thread Jay
Only if I have to. PyMedia is a pain and a half to build and why do that if I can just pipe it out to some other program? Tim Williams wrote: > On 15 Sep 2006 18:16:41 -0700, Jay <[EMAIL PROTECTED]> wrote: > > I'm writing a python script that involves playing mp3 files. The first > > approach I

Re: mp3 libs and programs

2006-09-15 Thread Tim Williams
On 15 Sep 2006 18:16:41 -0700, Jay <[EMAIL PROTECTED]> wrote: > 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 progra

Re: mp3 wav editing in python

2005-11-14 Thread Daniel Schüle
yb wrote: > Hi, > > Is there a python based tool to cut mp3 and wav file at a start and end > time? I'm looking for a python script that can output a new wav or mp3 > file based on star and endpoint. > > Thank you > there is a wave module >>> import wave >>> dir(wave) ['Chunk', 'Error', 'WA

Re: MP3 - VBR - Frame length in time

2004-12-12 Thread Erik Heneryd
Florian Schulze wrote: On Sat, 11 Dec 2004 20:32:30 +0100, Ivo Woltring <[EMAIL PROTECTED]> wrote: mmpython will help but not always. Lets put it this way. I will ALWAYS read through the whole file. In that order I don't mind evaluating each frame. The thing I don't seem to be able to find is th

Re: MP3 - VBR - Frame length in time

2004-12-12 Thread Ivo Woltring
"Florian Schulze" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 11 Dec 2004 20:32:30 +0100, Ivo Woltring <[EMAIL PROTECTED]> > wrote: > > > mmpython will help but not always. > > Lets put it this way. I will ALWAYS read through the whole file. In that > > order I don't mind

Re: MP3 - VBR - Frame length in time

2004-12-11 Thread Florian Schulze
On Sat, 11 Dec 2004 20:32:30 +0100, Ivo Woltring <[EMAIL PROTECTED]> wrote: mmpython will help but not always. Lets put it this way. I will ALWAYS read through the whole file. In that order I don't mind evaluating each frame. The thing I don't seem to be able to find is the timelength-constants

Re: MP3 - VBR - Frame length in time

2004-12-11 Thread Ivo Woltring
"JanC" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dmitry Borisov schreef: > > > It has something to deal with the VBR tags( XING header ). > > *If* there is a VBR tag (it's a custom extension) and *if* that VBR tag > contains a correct value. > > > -- > JanC > > "Be strict when

Re: MP3 - VBR - Frame length in time

2004-12-08 Thread JanC
Dmitry Borisov schreef: > It has something to deal with the VBR tags( XING header ). *If* there is a VBR tag (it's a custom extension) and *if* that VBR tag contains a correct value. -- JanC "Be strict when sending and tolerant when receiving." RFC 1958 - Architectural Principles of the Inte

Re: MP3 - VBR - Frame length in time

2004-12-08 Thread Dmitry Borisov
"Ivo Woltring" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear Pythoneers, > > I have this problem with the time calculations of an VBR (variable bit rate) > encoded MP3. > I want to make a daisy writer for blind people. To do this I have to know > exactly what the length in time

Re: MP3 - VBR - Frame length in time

2004-12-08 Thread Lonnie Princehouse
It might be much easier to use an external program to figure out the length. Here's an example that uses sox to convert just about any audio file into a raw format, and then determines duration by dividing length of the raw output by number of bytes per frame. I don't know if they make sox for Win