Page 1 of 1

Extract volume peaks

Posted: Sun Nov 20, 2016 6:07 pm
by fred727
Hello,

I am looking for extracting volume peaks of a mp3 file

Do you think this is possible with getID3 ??
If not, how can I do ?

Thank you,

Re: Extract volume peaks

Posted: Sun Nov 20, 2016 11:47 pm
by James Heinrich
getID3 doesn't decode any audio so no it's not possible with getID3.

Something like mp3gain will analyze both actual peak volume and subjective overall volume which is perhaps more complexity than you need. Anything that will decode the MP3 audio stream to PCM will let you find the peak sample relatively easily. I don't know offhand of any simple PHP solution (but that doesn't mean one doesn't exist, I just don't know of any).

Re: Extract volume peaks

Posted: Tue Nov 22, 2016 10:04 am
by fred727
OK, I understand...

I think I will try with ffmpeg because I need a unix solution.

Thank you very much for the answer !