MP3 Waveform Image Generation
Posted on 2006-05-15
I'm trying to generate an image of the waveform of an audio file within a script or through system() type commands and have not found a way to do it yet. Ideally I could read an MP3 file (decode it if necessary) and output a gif or jpeg image of the waveform. When I say 'waveform' I mean the pretty graphical representation of an audio file that you see in audio editing programs.
If you don't know how to do it could you at least tell me what a waveform is actually representing? The way I understand it, it's the amplitude (volume) of the audio over time. I will write a script to make the image for me based on that if I have to but I'm sure it's been done before.
I am looking to develop this in Perl or PHP although I am open to Actionscript and C++ (yuck) as well.