Extract volume peaks

The place for "I can't figure out how to..." questions.
Post Reply
fred727
User
Posts: 11
Joined: Wed Jun 08, 2016 6:20 pm
Are you a spambot?: no

Extract volume peaks

Post by fred727 » Sun Nov 20, 2016 6:07 pm

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,

James Heinrich
getID3() v1 developer
Posts: 1424
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Extract volume peaks

Post by James Heinrich » Sun Nov 20, 2016 11:47 pm

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).

fred727
User
Posts: 11
Joined: Wed Jun 08, 2016 6:20 pm
Are you a spambot?: no

Re: Extract volume peaks

Post by fred727 » Tue Nov 22, 2016 10:04 am

OK, I understand...

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

Thank you very much for the answer !

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest