管理大量音乐收藏

发布于 2024-08-08 16:46:33 字数 406 浏览 1 评论 0原文

我想编写自己的音乐流媒体 Web 应用程序供个人使用,但我正在绞尽脑汁地思考如何管理它。现有音乐及其位置很少改变,但仍然能够(修复文件名、ID3 标签、/The Chemical Brothers 而不是 /Chemical Brothers)。社区将如何管理所有这些文件?我可以通过 ID3 读取器和我的文件系统收集大量信息,但如果能跟踪播放频率等信息也很好。使用 iTunes 的 .xml 文件是一个不错的选择吗?只是让我的音乐在 iTunes 中保持最新状态并以此为基础构建我的 Web 应用程序数据吗?我正在考虑通过对文件进行 md5 并将其用作唯一标识符来跟踪我的所有音乐,但是如果我更改 ID3 标签,是否会更改 md5 值?

我想我真正的问题是,如何跟踪大量音乐?将元信息保存在数据库中?我真正的问题是如何连接文件和数据库条目,或者只是在需要文件系统设置时使用读取。

I'd like to write my own music streaming web application for my personal use but I'm racking my brain on how to manage it. Existing music and their location's rarely change but are still capable of (fixing filename, ID3 tags, /The Chemical Brothers instead of /Chemical Brothers). How would the community manage all of these files? I can gather a lot of information through just an ID3 reader and my file system but it would also be nice to keep track of how often played and such. Would using iTunes's .xml file be a good choice? Just keeping my music current in iTunes and basing my web applications data off of it? I was thinking of keeping track of all my music by md5'ing the file and using that as the unique identifier but if I change the ID3 tags will that change the md5 value?

I suppose my real question is, how can you keep track of large amounts of music? Keep the meta info in a database? Just how I would connect the file and db entry is my real question or just use a read when need filesystem setup.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心如狂蝶 2024-08-15 16:46:33

我错过了你问题的第二部分(md5 的事情)。我认为 MD5/SHA/... 解决方案效果不佳,因为它们不允许您在收藏中找到双打(就像出现在许多不同采样器上的流行曲目)。尤其是对于大型收藏,这是您有一天会想要做的事情。

有一种名为声学指纹识别的技术,显示出很大的前景,看看此处 进行快速介绍。即使录音电平存在微小差异(如那些流行的“标准化”曲目),声学指纹也应该保持相同 - 我说应该,因为我测试的技术都不是真正 100% 无错误的。这些声学指纹的另一个优点是它们可以帮助您进行标记:像 FreeDB 这样的服务只能在完整的 CD 上工作,声学指纹可以识别单个曲目。

I missed part 2 of your question (the md5 thing). I don't think an MD5/SHA/... solution will work well because they don't allow you to find doubles in your collection (like popular tracks that appear on many different samplers). And especially with big collections, that's something you will want to do someday.

There's a technique called acoustic fingerprinting that shows a lot of promise, have a look here for a quick intro. Even if there are minor differences in recording levels (like those popular "normalized" tracks), the acoustic fingerprint should remain the same - I say should, because none of the techniques I tested is really 100% errorfree. Another advantage of these acoustic fingerprints is that they can help you with tagging: a service like FreeDB will only work on complete CD's, acoustic fingerprints can identify single tracks.

揽清风入怀 2024-08-15 16:46:33

如需灵感,甚至可能需要完整的解决方案,请查看 ampache。我不知道你所说的大是什么,但是 ampache(一个由 mysql 数据库支持的 php 应用程序)可以轻松处理数万首曲目的音乐集合。

最近我发现了 SubSonic,该网站上写着“轻松管理您的音乐收藏中的 100,000 个以上文件”bt我还无法测试它。它是用 Java 编写的,乍一看源代码看起来非常简洁,所以也许也有灵感。

For inspiration, and maybe even for a complete solution, check out ampache. I don't know what you call large, but ampache (a php application backed by a mysql db) easily handles music collections of tens of thousands of tracks.

Reecently I discovered SubSonic, and the web site says "Manage 100,000+ files in your music collection without hazzle" bt I haven't been able to test it yet. It's written in Java and the source looks pretty neat at first sight, so maybe there's inspiration to get there too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文