如何从 .NET 中的 m4a 文件中读取标签?
我有一些经过大量修改的代码,最终来自 Windows Media SDK这非常适合从 MP3 和 WMV 文件中读取标签。在此过程中,Windows Media Player 添加了对 .m4a 的支持文件(是在 Windows 7 中吗?),但 Windows Media API 似乎没有反映该添加(或者至少在 .m4a 文件上出现了 IWMMetadataEditor2::OpenEx
)。
关于如何从 m4a 文件中挖掘元数据标签的一些好的 C# 代码或链接是什么? (Google 在 C# 方面已经干瘪了。)
更新 AtomicParsley 确实最终成为最好的方法。由于该代码是一个命令行工具,但我最终不得不围绕其某些功能创建一个托管包装器才能在进程中使用。 如果其他人需要这样的东西,它会发布在 Google 代码上。
I've got some heavily modified code that ultimately came from the Windows Media SDK that works great for reading tags out of MP3 and WMV files. Somewhere along the line, Windows Media Player added support for .m4a files (was it in Windows 7?) but the Windows Media API doesn't seem to reflect that addition (or at least IWMMetadataEditor2::OpenEx
pukes on an .m4a file).
What would be some good C# code or links on how to dig meta data tags out of m4a files? (Google has come up dry on the C# front.)
UPDATE
AtomicParsley did indeed end up being the best approach. Since that code is a command line tool however I ended up having to create a managed wrapper around some of its functionality in order to use in-process. It is posted on google code if anyone else needs such a thing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一些开源软件可以满足您的需求,尽管它是用 C++ 编写的(也许它包含一些有用的信息)
http://sourceforge.net/projects/atomicparsley/
这是一个使用winforms来实现你想要的东西的项目。
http://www.codeproject.com/KB/files/m4afiletags.aspx
我尝试了与上面相同的操作,看看在让它在控制台应用程序中工作时是否缺少某些东西,但如果不使用 Winforms 项目上使用的 ActiveX 控件,我无法让它工作。
Here is some opensource software that does what you are looking for, although it is in C++ (maybe it contains some useful information)
http://sourceforge.net/projects/atomicparsley/
Here is a project using winforms to achieve what you are wanting.
http://www.codeproject.com/KB/files/m4afiletags.aspx
I tried the same thing as above to see if there was something he was missing in getting it to work in a console application, but I was unable to get it working without using the ActiveX control used on the Winforms project.