views:

172

answers:

4

Do we have a way to simulate a webcam driver, that will provide realtime captured screen (30 frames per sec) as it's output?

A: 

I need the same thing. I need to write a driver that is written and can under Win, Linux and MacOS work. Is that actually possible with the same code that simulates a driver on all platforms? Is there such a java library that can do the job. How about Java Media Framework?

georgi
Hardware drivers are always device and platform specific. You will never find one ring... i mean. . . driver to run them all.Depending on the platform, you may be able to find an API or wrapper to get webcam support.
It Grunt
A: 

Yes, just google video2webcam. It works quite well and will loop a video or picture as output.

Joemama88
A: 

The driver's job is to provide a level of abstraction between the software and hardware. The driver is supposed to issue commands to the hardware. It's not responsible for taking pictures and turning it into an animated GIF for instance. It's going to do low level stuff like, turn the device on and off, send raw data to a socket.

That being said, if you need to create a virtual device driver. Here's an overview of VDD's. Windows Programming/Device Driver Introduction

Generally these are not written in higher-level languages such as C#. Rather, they are written in languages such as C/C++. You will need the KMDF, or Kernel-Mode Driver Framework.

If you just need to access a webcam from a .NET application on a system with a webcam, you just need an API.

Open your browser.. go to google.com and type ".NET webcam API"

You will see something like this:

Webcam in your own application

It appears that this is a wrapper for the DirectShow class.

It Grunt
The question is on simulating the webcam driver, not on capturing the webcam
amazedsaint
updated my response... Thanks for the downvote. The original question does not make it clear what he is trying to do. I edited my response to handle a number of scenarios.
It Grunt
+1  A: 

This is one of several features of ManyCam (free). It is a virtual webcam driver through which you can stream your real webcam video (with optional real-time video effects), video or image files, or your full/partial desktop.

Lucas