Python:用于从各种格式加载音频元数据的功能最丰富的库是什么?
我正在寻找一个功能丰富的优秀库,用于从各种音频格式(MP3、FLAC、OGG、WAV 等)读取元数据。我已经看过 Mutagen,但文档几乎不存在,而且它似乎无法加载基本信息,例如艺术家和音频标题。
I'm looking for a good, feature-rich, library for reading metadata from various audio formats (MP3, FLAC, OGG, WAV, etc.). I have already looked at Mutagen, but the documentation is nearly nonexistent, and it seems incapable of loading basic information such as artist and audio title.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
艺术家和音频标题编码是否正确?它无法满足哪些特定格式的要求 - 通常 ID3 信息的编码很差。
http://wiki.python.org/moin/UsefulModules#ID3Handling (列表ID3 模块)
我会尝试 ID3Reader,它支持 ID3v1,Mutagen 似乎失踪。
Are the artist and audio title encoded properly? What particular formats is it failing one - often ID3 information is poorly encoded.
http://wiki.python.org/moin/UsefulModules#ID3Handling (A List of ID3 modules)
I would try ID3Reader, which has support for ID3v1, which Mutagen seems to be missing.
请参阅 taglib ,它是 Python 绑定
see taglib and it's python bindings
另一个基于 taglib 的绑定(可能与 python-taglib 相同?),由 Andreas 称为 tagpy -- http:// /mathema.tician.de/software/tagpy 。我不久前使用过它,它还不错......下面的粗略代码应该让您了解如何将标签从一个文件复制到另一个文件(从而进行任何其他操作)
another binding based on taglib (maybe the same as python-taglib?) called tagpy by Andreas -- http://mathema.tician.de/software/tagpy . I used it a while ago, and it's not bad... the following rough code should give you an idea how to copy tags from one file to the other (thus any other manipulation)
gstreamer 也是一个很好的选择,如果你不介意 gnome 依赖以及更多的话努力编码。它几乎支持人类已知的所有文件类型。
gstreamer is also an excellent option, if you don't mind the gnome dependency and a bit more effort coding. it supports just about every filetype known to man.