简体   繁体   English

DirectShow运行时编码器H264

[英]DirectShow Runtime Encoder H264

I have already used DirectShow.NET to display alive webcam,now I need while the webcam is working to encode the video using H264 then write/Append it on the desk after x time. 我已经使用DirectShow.NET来显示实时网络摄像头,现在我需要在网络摄像头正在使用H264编码视频时使用,然后在x时间后将其写入/添加到桌面上。

I have already found a library for H264 using directShow contains Encoder and decoder but when I try to insert it I got this error (image shown below) 我已经找到了使用DirectShow的H264 ,其中包含编码器和解码器,但是当我尝试将其插入时出现此错误(如下图所示)

在此处输入图片说明

So My questions are: 所以我的问题是:

  1. Does anyone have idea about the error message 有谁知道错误消息
  2. if this way will not work is there any other library to use to have H264 with direct Show(without needing to wrap) 如果这种方式行不通,是否有其他库可用于具有直接Show的H264(无需包装)

VS is telling you that you cannot add reference to h264 because it is not assembly or COM component. VS告诉您不能添加对h264的引用,因为它不是程序集或COM组件。 And you don't have to. 而且您不必。

These are DirectShow filters that need to be registered on your system (using regsvr32) and then you can instantiate and add them to your filter graph using only their GUIDs. 这些是DirectShow过滤器,需要在您的系统上注册(使用regsvr32),然后您可以实例化它们,仅使用它们的GUID将它们添加到过滤器图形中。

If you need to access custom interfaces on them, to change encoding parameters or similar, then you'll have to translate interfaces into your managed language. 如果您需要访问它们上的自定义界面,更改编码参数或类似参数,则必须将界面翻译成您的托管语言。 (You can probably find interface definitions in VideoProcessing source code). (您可能可以在VideoProcessing源代码中找到接口定义)。

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

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