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
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 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?.
NOTE: Latest versions of Skype are picky as for video devices and ignore virtual devices for no apparent reason.
回答2:
You should start here : Writing DirectShow Filters or here : Introduction to DirectShow Filter Development
I assume you already have Windows SDK for such develpment, if not check this