Viewed   104 times

Is there any PHP function that will give me the MP3 duration. I looked at ID 3 function but i don't see any thing there for duration and apart from this,id3 is some kind of tag,which will not be there in all MP3 so using this will not make any sense.



This should work for you, notice the getduration function:

Saturday, August 20, 2022

Since I couldn't use the API route, I went with the RSS found at:

And used the following PHP function, called StatusPress, with some of my own modifications, to parse the RSS feed for my Facebook status. Works great!

Tuesday, October 25, 2022

First of all, you need to install ffmpeg available at:

Then, make sure you have safe mode enabled in your PHP configuration and select the right dir where you can execute files: safe_mode_exec_dir

Finally, use:

exec("ffmpeg -i inputfile.mp3 -ab 64 outputfile.mp3")
Tuesday, September 20, 2022

Use array_slice() function:

$newArray = array_slice($originalArray, 0, 5, true);
Sunday, August 7, 2022

You need a script to parse the mp3 file to acces to the data.

From google: ...

Tuesday, November 29, 2022
Only authorized users can answer the search term. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :