views:

1192

answers:

3

I am interested in developing an application that will allow me to build a list of videos from xml (containing video title, duration, etc) and play that list as my webcam stream. Meaning, if I were to visit ustream.tv, or activate my webcam on live messenger my video playlist would register as my active webcam.

Does anybody have experience in this area, and perhaps have some advice to offer?

A: 

I don't have a lot of experience in this area, but I would start by looking at the MSDN docs for the DirectShow API.

A couple of .NET wrapper libraries exist as well:

Matt Peterson
A: 

If you want this to work so that third party apps see your video as a standard webcam stream (and is sounds very much like you do) then the only way to do it is to write a virtual webcam driver. You will then then be able to "play" your video content as your webcam's streaming output. This will involve writing code to decode the video content - probably using DirectShow - and then copying the raw video stream to the webcam's output stream. You'll need to either write a custom DirectShow renderer filter or use the sample grabber to access the raw, decoded frames.

It's certainly an achievable goal, but not particularly easy given that both DirectShow and driver development have fairly steep learning curves. There are a variety of different driver models you could use for this, depending on exactly what your aims are. The easiest thing would be to create a Video for Windows (VfW) virtual camera driver. The huge benefit of this approach is that the driver will be entirely user mode code - much easier to debug and to write in general.

Stu Mackellar
A: 

Any luck?? Did you achieve this? cuz i'm trying the same right now... some people suggested using VLC to stream feeds

Faizan Kazi