Click to See Complete Forum and Search --> : In VC++ use API to run and stop video of camera attached to TV Tuner card


piyage
September 23rd, 2003, 05:04 PM
I want to make an SDI application in VC++ which will use API to start and stop video coming from a camera attached to TV tunercard. i dont know how to use API and how that camera will give input to VC++.

gaesferr
November 16th, 2003, 07:19 AM
Well, you've three choices about that:
1 - Use Video for Windows API (VfW);
2 - Use Media Control Interface (MCI);
3 - Use Windows Driver Model (WDM).

The first method is more simple than others but some drivers couldn't be VfW compatible.
The second method is a bit complicated to use... someone can tell you that is the simplest way but is so simplest to be complicated :D (eg. if you want compress the captured stream you must interact with the VCM/ACM (Video Compression Manager and Audio Compression manager) directly)
The third method use DirectShow (no more explanation about complexity)

I've developed a simple capturing application for my webcam and TV tuner using VfW... is very simple, take a look to MSDN about it.

Goodbye!