开发者

PHP script for cataloging CD

开发者 https://www.devze.com 2023-02-04 12:08 出处:网络
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

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 开发者_如何学Crelease 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号