简体   繁体   English

如何将视频编码器添加到Windows以便DirectShow识别

[英]How to add a Video Encoder to windows to be recognized by DirectShow

i don't understand somethings about video encoder if you could help me clarify: 如果您能帮助我澄清一下,我对视频编码器一无所知:

  • where the encoders exist in the system? 系统中编码器的位置?
  • how's directshow recognize them? DirectShow如何识别它们?
  • what's the encoders supported by directshows and how to add them? DirectShows支持哪些编码器以及如何添加编码器?

thank you for reading my questions, and for any help. 感谢您阅读我的问题以及给予任何帮助。

A very usefull tool for things like that is GraphEdit (part of DirectShow SDK and can be downloaded for example here: http://www.videohelp.com/tools/GraphEdit ) GraphEdit(DirectShow SDK的一部分,可以在此处进行下载,例如: http : //www.videohelp.com/tools/GraphEdit )是一个非常有用的工具。
If you click Graph -> Insert Filters you see a list of all installed filters and can see their file location. 如果单击图形->插入过滤器,您将看到所有已安装过滤器的列表,并可以看到其文件位置。

To register a filter you can use (in command prompt): regsvr32 filter.dll 要注册过滤器,您可以使用(在命令提示符下): regsvr32 filter.dll
(As described here: How to use/install custom Directshow filter ) (如此处所述: 如何使用/安装自定义Directshow过滤器

See Choosing a Compression Filter : 请参阅选择压缩过滤器

To enumerate the video or audio compressors available on the user's system, do the following: [...] 要枚举用户系统上可用的视频或音频压缩器,请执行以下操作:[...]

There is also a code snippet there to enumerate and instantiate the compressors/encoders. 那里还有一个代码段,用于枚举和实例化​​压缩器/编码器。

You tagged the question as and not , so you might also need to look at DirectShow.NET for accessing DirectShow API from managed code. 您将问题标记为而不是 ,因此您可能还需要查看DirectShow.NET才能从托管代码访问DirectShow API。 DirectShow.NET also provides you with samples. DirectShow.NET还为您提供示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM