Subscribe to Crepitus' TypeOf Blog        RSS Feed
- - - - -

Webcams via VFW - Part 5 - dialogs, status, caps

Icon 2 Comments
After testing with multiple cameras attached, I noticed that the last program would let you choose the source when the program starts. In order to allow the user to choose whilst the program is running we have to show a dialog - if the driver supports showing dialogs. We can find out if the driver supports showing dialogs by getting a ...
- - - - -

Webcams via VFW - Part 4 - Start Preview

Icon Leave Comment
Now we have the capture window created, and we can enumerate the drivers we might as well try to connect them up so that we can see something.

If we look at the help topic "Previewing video" it says to do this (in C):

capPreviewRate(hWndC, 66); // rate, in milliseconds
capPreview(hWndC, TRUE); // starts preview
...
- - - - -

Webcams via VFW - Part 3 - Create capture window

Icon 2 Comments
Next we have to create a capture window. This window will display the stream from the camera. We can send messages to the window with SendMessage to get it to do things. But first we have to create it, and we use capCreateCaptureWindow...
- - - - -

Webcams via VFW - Part 2 - Enumerate drivers

Icon 1 Comments
One of the first things to do is to enumerate all the webcam drivers that are on the system. It is likely that there is only one of these, and all the installed cameras will share it.

The msdn topic for this is : "Enumarating Installed Capture Drivers"

It uses the capGetDriverDescription...
- - - - -

Webcams via VFW - Part 1 - Intro

Icon Leave Comment
In .Net, there's no built in way to get data from a webcam. Microsoft don't support interacting with various media apis, see:
"Calling the Format SDK, DirectShow, Media Foundation or the WASAPI from managed code (C#, VB.net)...
Page 1 of 1

May 2013

S M T W T F S
      1234
567891011
12131415161718
192021 22 232425
262728293031 

Recent Entries

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)