Question

Can someone show me a reference of script to use? For example: I have CD and I rip it and i just want to update the folder to the server. And the server will automatically fill in the song title, the song length, the album title, the artist and the release date and also it will generate 30 second length of preview

Is there a script PHP that can do this kind of thing

Thank you

Was it helpful?

Solution

A little searching on Google for PHP MP3 Metadata comes up with this: https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6026340.html and this: http://getid3.sourceforge.net/

as far as getting a 30 second sample, that would probably have to be done with exec() and an external program like ffmpeg.

Could feasibly have a php script as a cron job which would periodically scan an mp3 directory looking for mp3s which haven't yet been cataloged, then catalog them to the DB.

The MP3ID PEAR class used in the techrepublic article hasn't been updated in 2 years, but the getID3 was updated last month.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top