How to compile AMCap
July 20, 2007
The DirectShow SDK (now part of the Windows SDK) includes a sample application called AMCap (Active Movie Capture) that illustrates the use of DirectShow filters to capture video from a device like a webcam or camcorder. I had all kinds of trouble the first few times I tried to build this, so I documented the steps for a successful build. Here they are:
These are the steps I followed to successfully build and run AMCap. I used Visual Studio 2005 Professional edition, SP1 for Vista, running on Windows Vista Business version . Note: the paths I have listed are the default installation paths and may be different on your computer.
A. Install the Windows SDK
1. Download and install the Windows SDK
2. Run ”Integrate Windows SDK with Visual Studio” from the “Visual Studio Registration” folder under “Windows SDK programs” on the start menu.
3. Reboot the computer.
B. Build the DirectShow base classes
1. Open the BaseClasses c++ solution (baseclasses.sln) using VS2005. The source code for the base classes is located in C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\Multimedia\DirectShow\BaseClasses.
2. Set the active configuration to “debug”
3. Build the solution.
C. Build AmCap
1. Open the solution.
2. Add the DirectShow include directory to the project properties under: “Property Pages - Configuration properties – C/C++ – General”. The path is: C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\Multimedia\DirectShow\Common
3. Add the path to the DirectShow base classes directory to the project properties. The path is: C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\Multimedia\DirectShow\BaseClasses\Debug
2. Build the solution.
3. Run it!
Entry Filed under: C++, Development, DirectShow, Technology, Windows SDK, video. .
4 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1.
blue | July 30, 2007 at 7:28 am
I m encountering same problem these days.
I follow ur steps but can u plz tell wot m i supposed to give in EXECUTABLE file drop-down list?
Furthermore, I tried to download WSDK from this
and wen starts the set up it gives me error. I got Directshow Folder from someone. So i didnt perform ur step “A”.
2.
Bahrom | August 2, 2007 at 9:05 pm
I didn’t need to set anything in the executable drop down. I don’t know what might have caused your setup error. You probably still need to run the program that sets up the environment vairables for VS2005. The progarm is at this path on my computer:
\Program Files\Microsoft SDKs\Windows\v6.0\Setup\VCIntegrate.exe
I hope that helps!
3.
blue | August 8, 2007 at 6:41 am
Thanku so much for the help !
I managed to run the programme by following again all the guidlines given on this site.
Thanku !!!
4.
22li | October 25, 2007 at 4:05 pm
I follow the steps you discribed to compile AMcap.
I built the solution successfully for Baseclasses
But when I built AMcap I have the error : can’t open Strmbasd.lib
The file exist, I put the following path C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples\Multimedia\DirectShow\BaseClasses\Debug in Property Pages – Configuration properties – C/C++ – General”.
but the error is remaining.
I don’t understand whats wrong
Could you help me?