C#在Windows中读取视频元数据(标题,描述,年份) [英] C# Reading Video Metadata in Windows (Title,description,year)

查看:101
本文介绍了C#在Windows中读取视频元数据(标题,描述,年份)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,每个人都只是试图制作一个程序来浏览视频文件,并从文件元数据中读取标题和描述.我从Microsoft 此处 ,其中提供了所需的信息,但是我该如何访问这些功能?在C#中需要使用什么名称空间?我很乐意提供任何帮助.

解决方案

在您发布的链接中,滚动到底部,然后单击"Shell Metadata Providers".有更多信息和一些示例C ++代码.

以下是一些其他相关链接:

读取/写入音频/视频文件的元数据

http://www.codeproject.com/Articles /14535/使用C访问WMF元数据

使用C#读取视频文件的属性?

对不起,我无法提供更多具体信息,但是看起来某些标签库(例如,用于读取MP3元数据)也可以工作,因为视频的元数据似乎存储在类似的(如果不相同的话)中,格式.话虽如此,您可以尝试一下TagLib#.

https://www.nuget.org/packages/taglib/

Hey everyone just trying to make a program that browses video files and reads the title and description from the files metadata. I found some docs from microsoft here giving whats needed but how do I access these functions? what using namespaces are needed in c#? I would love any help that can be provided.

解决方案

In that link you posted, scroll to the bottom and click "Shell Metadata Providers". There's more more information and some sample C++ code.

Here are some other relevant links:

Reading/Writing metadata of audio/video files

http://www.codeproject.com/Articles/14535/Accessing-WMF-metadata-with-C

https://social.msdn.microsoft.com/Forums/pt-BR/0f36a3b2-4d3d-4842-88a4-bea493bbbace/read-video-filemov-avi-mpg-etc-meta-data?forum=csharpgeneral

C# to read properties of video files?

Sorry I can't give you anything more concrete, however it looks like some tag libraries (i.e. for reading MP3 metadata) may work as well, as the metadata for videos seems to be stored in a similar, if not identical, format. That being said, you can give TagLib# a shot.

https://www.nuget.org/packages/taglib/

这篇关于C#在Windows中读取视频元数据(标题,描述,年份)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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