用于编目 CD 的 PHP 脚本
有人可以告诉我要使用的脚本参考吗?例如:我有 CD,我将其翻录,我只想将文件夹更新到服务器。服务器会自动填写歌曲标题、歌曲长度、专辑名称、艺术家和发行日期,并且还会生成 30 秒长度的预览
有没有一个 PHP 脚本可以做这种事情
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Google 上搜索 PHP MP3 元数据会出现以下结果: https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6026340.html
还有这个:
http://getid3.sourceforge.net/
就获得 30 秒的样本而言,这可能需要使用 exec() 和像 ffmpeg 这样的外部程序来完成。
可以将 php 脚本作为 cron 作业,定期扫描 mp3 目录,查找尚未编目的 mp3,然后将它们编目到数据库。
techrepublic文章中使用的MP3ID PEAR类已经两年没有更新了,但是getID3上个月更新了。
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.