什么是最好/非常好的元数据阅读器库?

发布于 2024-07-05 02:45:36 字数 377 浏览 7 评论 0原文

现在,我对从 MP3 文件(ID3 标签?)读取数据特别感兴趣,但它能做的越多(例如图像中的 EXIF?)就越好,而且不会影响 ID3 标签的读取能力。

我有兴趣制作一个脚本来遍历我的媒体(现在是我的音乐文件),并确保文件名和目录路径与文件的元数据相对应,然后创建不匹配文件的日志,以便我可以检查哪些文件准确并做出适当的更改。 我正在考虑 Ruby 或 Python(请参阅 专门针对 Python 的相关问题)对此来说最好,但我愿意真正使用任何语言(实际上可能更喜欢 C、C++、Java、C# 等应用程序语言,以防这个项目失败)。

Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?), but the more it can do (eg EXIF from images?) the better without compromising the ID3 tag reading abilities.

I'm interested in making a script that goes through my media (right now, my music files) and makes sure the file name and directory path correspond to the file's metadata and then create a log of mismatched files so I can check to see which is accurate and make the proper changes. I'm thinking Ruby or Python (see a related question specifically for Python) would be best for this, but I'm open to using any language really (and would actually probably prefer an application language like C, C++, Java, C# in case this project goes off).

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

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

发布评论

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

评论(5

哭泣的笑容 2024-07-12 02:45:36

根据 Anon 的回答,exiftool 非常强大,支持多种文件类型,不仅是图像,还包括视频、音频和多种文档格式。

exiftool 的 Ruby 接口以 mini_exiftool gem 的形式提供,

请参阅 http://miniexiftool.rubyforge.org/

Further to Anon's answer - exiftool is very powerful and supports a huge range of file types, not just images, but video, audio and numerous document formats.

A Ruby interface for exiftool is available in the form of the mini_exiftool gem

see http://miniexiftool.rubyforge.org/

入画浅相思 2024-07-12 02:45:36

@Thomas Owens TagLibSharp 是一个很好用的库。 我总是首先倾向于 PowerShell,一是为了推广该语言,二是因为它在 Microsoft 领域快速传播。 我并不反对使用其他语言,我只是倾向于我所知道和喜欢的语言。 :) 祝你的项目好运。

@Thomas Owens TagLibSharp is a nice library to use. I always lean to PowerShell first, one to promote the language, and two because it is spreading fast in the Microsoft domain. I have nothing against using other languages, I just lean towards what I know and like. :) Good luck with your project.

熊抱啵儿 2024-07-12 02:45:36

@Thomas Owens PowerShell 现在是通用工程标准的一部分(从 Microsoft 2009 年产品线开始),并且从 Serve 2008 开始作为一项功能包含在内。 它与 Python 或 Ruby 一样有机会被安装。 您还提到您愿意使用 C#,它可以使用 TagLibSharp。 或者你可以使用 IronPython...

@Thomas Owens PowerShell is now part of the Common Engineering Criteria (as of Microsoft's 2009 Product Line) and starting with Serve 2008 is included as a feature. It stands as much of a chance to be installed as Python or Ruby. You also mentioned that you were willing to go to C#, which could use TagLibSharp. Or you could use IronPython...

酸甜透明夹心 2024-07-12 02:45:36

使用 exiftool (它也支持 ID3)。 用 perl 编写,但也可以从命令行使用。 它有编译后的 windows 和 mac 版本。

它比任何其他元数据工具领先光年,支持几乎所有已知的音频、视频和图像文件,支持写入(不仅仅是读取),并且了解软件(例如 Photoshop)和硬件使用的所有自定义/扩展标签(许多相机制造商)。

use exiftool (it supports ID3 too). written in perl, but can also be used from the command line. it has a compiled windows and mac version.

it is light-years ahead of any other metadata tool, supporting almost all known audio, video and image files, supports writing (not just reading), and knows about all the custom/extended tags used by software (such as photoshop) and hardware (many camera manufacturers).

已下线请稍等 2024-07-12 02:45:36

There is a great post on using PowerShell and TagLibSharp on Joel "Jaykul" Bennet's site. You could use TagLibSharp to read the metatdata with any .NET based language, but PowerShell is quite appropriate for what you are trying to do.

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