Extract volume peaks

The place for "I can't figure out how to..." questions.

Extract volume peaks

Postby 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,
fred727
User
 
Posts: 11
Joined: Wed Jun 08, 2016 6:20 pm

Re: Extract volume peaks

Postby 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).
James Heinrich
getID3() v1 developer
 
Posts: 1411
Joined: Fri May 04, 2001 4:00 pm
Location: Northern Ontario, Canada

Re: Extract volume peaks

Postby 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 !
fred727
User
 
Posts: 11
Joined: Wed Jun 08, 2016 6:20 pm


Return to Support 1.x

Who is online

Users browsing this forum: No registered users and 1 guest

cron