媒体文件元数据的 C# 包装器
我正在寻找一个很好的包装器来提取依赖于文件类型的媒体文件属性。 我正在创建一些通用媒体库,可以处理视频、音频、图像等。 它们不仅仅是 .wmv 或 .mp3,我希望能够支持各种格式,并且不想将自己归入像 WMP SDK 这样似乎只支持 MS 编解码器的 SDK。 我在 VLC 包装器上看到过一些小文章,该包装器正在开发中,但还不太成熟。
所以,基本上我希望能够指向一个文件并提取它的内容。 音乐、图像、视频,然后获取其分辨率、fps、比特率、编解码器(如果可能的话)之上的元数据,等等是艺术家、专辑歌曲,我意识到这并不总是可能的。
I am looking for a nice wrapper for extracting media file attributes dependent of file type.
I am creating a bit of a generic media library that can handle video, audio, images etc.
They are not just .wmv or .mp3, i would like to be able to support various formats and dont want to pigeon hole myself to an sdk like WMP SDK that seem to only support MS codecs.
I have seen small write ups on a VLC wrpper that is in dev but not quite mature yet.
So, basically I would like to be able to point at a file and extract what it is. music, image, video, and then get the meta data on top of it resolution, fps, bitrate, codec if possible etc, etc being artist, album song, this I realize not be always possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试MediaInfo,应该做你想做的事。
Try MediaInfo, should do what you want it to.
您可以使用 IFilter 界面是为 Windows 桌面搜索而设计的,已经实现了 MP3、WMV、JPEG 的接口。
您将需要充当 IFilter 主机,加载 IFilter 实现并向其提供文件,这并不简单,但也不太复杂。
You can use the IFilter interface which was design for Windows Desktop search, there are already implementation of the interface for MP3, WMV, JPEG.
You will need to act as an IFilter host load IFilter implementation and feed them the files, not simple but not too complicated.