如何创建Directshow过滤器

如何创建Directshow过滤器

本文介绍了如何创建Directshow过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个软件:
-输入为视频流H264(来自其他软件)
-输出为网络摄像头,我的朋友可以在skype,yahoo或类似设备中观看。
我知道我需要创建DirectShow过滤器来执行此操作,但是我不知道必须创建哪种类型的过滤器。
当我有一个过滤器时,我不知道如何将其导入到我的应用程序中?
我需要示例或教程,请帮助我

I want to create a software: - Input as a video stream H264 ( from another software) - Output as a webcam for my friends can watch in skype, yahoo, or something like that. I knows I need to create directshow filter to do that, but I dont know what type filter I must to create. And when I have a filter, I dont know how to import it to my application? I need a example or a tutorial, please help me

推荐答案

您需要创建虚拟视频源/相机过滤。在SO上有很多这样的问题,所以我只链接到其中一些:

You need to create a virtual video source/camera filter. There have been a dozen of questions like this on SO, so I will just link to some of them:





  • How to write an own capture filter?
  • Set byte stream as live source in Expression Encoder 4
  • "Fake" DirectShow video capture device

Windows SDK具有 PushSource 示例显示了如何通过过滤器生成视频。 VCam 示例节目从视频源制作虚拟设备需要什么。

Windows SDK has PushSource sample which shows how to generate video off a filter. VCam sample you can find online shows what it takes to make a virtual device from video source.

另请参见:

See also: How to implement a "source filter" for splitting camera video based on Vivek's vcam?.

注意:Skype的最新版本对于视频设备很挑剔,并且无故忽略虚拟设备

NOTE: Latest versions of Skype are picky as for video devices and ignore virtual devices for no apparent reason.

这篇关于如何创建Directshow过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 08:43