适用于Delphi的通用MP3和WMA标签阅读器 [英] Universal MP3 and WMA tag reader for Delphi

查看:120
本文介绍了适用于Delphi的通用MP3和WMA标签阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道类似的主题已经出现在SO中,但没有找到我想要的答案.我需要一个Delphi库来从音乐文件中读取标签信息.目前,我正在使用JEDI库中的TJvID3v1,但据我所知,JEDI不适用于WMA文件.

I know similar subjects have appeared in SO, but there wasn’t answer I am looking for. I need a Delphi library for reading tag information from music files. Currently I am using TJvID3v1 from JEDI library, but as far as I see, JEDI does not work with WMA files.

我已经找到了一些有关如何实现这种标签读取的手册,但是其中大多数手册的内容都非常低(逐字节读取文件并进行分析).那么,您知道任何能够读取该信息的Delphi库吗?欢迎支持OGG和其他流行格式.我们想要获取歌手姓名,专辑名称,歌曲标题以及曲目的长度(这不会是下一个iTunes,我们正在编写安全应用程序来检测用户的公司PC上是否存在警告).

I have found some manuals on how to implement such tag reading, but most of them go quite low level (reading file byte-by-byte and analyzing). So, do you know of any Delphi library capable of reading that information? Support of OGG and other popular formats will be welcomed. We want to get artist name, album name, song title and maybe length of the track (this is not going to be next iTunes, we are writing security app to detect if users have warez on their company PC’s).

推荐答案

它不是专门的Delphi库,但是如果MP3和WMA是您的主要目标,那么您可能还想看看

It isn't a Delphi library specifically, but if MP3 and WMA are your key targets then you might also want to check out the Windows Media Format SDK

这提供了COM接口,其中包括媒体文件中标签的抽象表示-即您可以使用 Media Format SDK 属性和Media Format来处理事务运行时会根据您在任何特定实例中处理的特定文件类型来适当地处理这些属性.

This provides COM interfaces that include an abstracted representation of tags in a media file - i.e. you deal with things in terms of Media Format SDK attributes, and the Media Format runtime takes care of handling those attributes appropriately according to the specific file type you are dealing with in any specific instance.

当然,它是免费的,可以内置在Windows本身中.

And of course it's free, being built into Windows itself.

这篇关于适用于Delphi的通用MP3和WMA标签阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆