Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Finding Quiet Parts of MP3 ??? PLZZZ (Read 3636 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Finding Quiet Parts of MP3 ??? PLZZZ

I am working on a project and I need be able to detect the most quiet point in an MP3. I am new to understanding audio formats and would appreciate any help I can get!!!

The way I figure that I would have to do it is. Somehow decode the MP3 to PCM or WAV using LAME or something. And then some how analyze the wave form to programmatically find the point with the least amplitue. I don't know if this is the right direction or am I making things way to hard. If you know which direction I should go or know of a simple way to do this please respond. Any info at all will be greatly appreciated.

Thanks,
Chris

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #1
Most quiet part would porbably be silence.
Therefore you can't very well talk about the most quiet part of an audio file if you don't cut out all silence first.

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #2
Sounds like a job for Matlab to me...

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #3
Well if there was a silent poing in the mp3 then I would consider that the most quiet point.  But if there is no absolute silence then I would need to detect the next best thing which is the most silent.. if you know what I mean??

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #4
Yeah.
But the point is that there will be no one point that is most silent.
I think nearly every audio file have silence and if that's the case there will be many exact points that are silent.

I think you best bet would ne an adio editor and go look after it your self.
That would never be exact though.




Jan.

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #5
Quote
Originally posted by Jansemanden
Yeah.
But the point is that there will be no one point that is most silent.
I think nearly every audio file have silence and if that's the case there will be many exact points that are silent.

I think you best bet would ne an adio editor and go look after it your self.
That would never be exact though.
Jan.


[advertisement on]
With Matlab you can load PCM files into a workspace, detect/eliminate the zero-valued elements and then search for the minimum (absolute) value...
[/advertisement off]
If it is only 1 MP3 you're talking 'bout, you can e-mail it to me and I'll check it for you....

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #6
Quote
Originally posted by masterChief
The way I figure that I would have to do it is. Somehow decode the MP3 to PCM or WAV using LAME or something. And then some how analyze the wave form to programmatically find the point with the least amplitue. I don't know if this is the right direction or am I making things way to hard. If you know which direction I should go or know of a simple way to do this please respond. Any info at all will be greatly appreciated.


Sounds a bit simple actually... maybe you should try: calculate energy in the waveform (square all samples) and then average over a couple of samples (say 50 ms) to get a better value of how loud a particular passage is. Then just find minimum of that graph.

All can easily be done in matlab, but if you need really high speed, put some extra 10 min and write a c-program instead.

Take a look at www.replaygain.org for some matlab scripts and c-code. These also include a "equal loudness filter" which could be handy.

/Erik

Finding Quiet Parts of MP3 ??? PLZZZ

Reply #7
I guess i better read up on things.