Answered by:
Does anyone know where the Amcap2 sample code is?

Question
-
As the title, I can find the Amcap2.exe but I can't find the Amcap2 sample code. Does anyone know
which SDK includes it.
Thanks for your help
Wednesday, March 7, 2007 10:11 AM
Answers
-
I think the OP is looking for AMCap2 source, not the AMCap sample. AMCap2 is a different program.
The AMCap2.exe is included in the Windows Driver Kit.
http://msdn.microsoft.com/en-us/library/aa906848.aspx
AFAIK, its source has not be released there or in the Windows SDK.
This page lists AMCap2 as available in the 6.1 Windows SDK but it is not there (at least on my system):
http://msdn.microsoft.com/en-us/library/ms716686.aspx
UPDATED I confirmed with the MS dshow team that the AMCap2 sample source was never released and the docs page above is incorrect.
My dshow site is http://tmhare.mvps.org- Proposed as answer by The March Hare Tuesday, December 16, 2008 4:57 AM
- Marked as answer by Karin Meier Wednesday, December 17, 2008 5:10 AM
Tuesday, December 16, 2008 4:57 AM
All replies
-
Sunday, November 9, 2008 4:15 AM
-
Seems its in vista sdk but i m run on windows xp
Saturday, December 6, 2008 1:26 AM -
Update: The Amcap2 sample does not ship in the Windows SDK. We will update the MSDN document that lists AmCap2 as one of the new in the Windows SDK for Windows Server 2008.
The Amcap sample ships in the Windows SDK for Server 2008 and .NET Framework 3.5, and installs by default to c:\Samples\RTM2\Multimedia\DirectShow\Capture\AMCap. This is the right SDK for you if you are using Windows XP or developing applications for Windows XP. This SDK can be installed on and/or create applications for Windows Server 2008, Windows Vista SP1, Windows Vista, Windows XPSP2, Windows Server 2003 R2 and Windows Server 2003.
Get the ISO Download of the SDK
Get the Web Install of the SDK
--Karin
||Karin Meier||Windows SDK PM||Build Environment.Samples.Community||http://blogs.msdn.com/KarinM||
Keep checking the Windows SDK blog and the Windows SDK MSDN Developer Center for more information, tips and tricks, and troubleshooting for the Windows SDK.
Karin Meier- Marked as answer by Karin Meier Sunday, December 14, 2008 8:19 PM
- Unmarked as answer by Karin Meier Wednesday, December 17, 2008 5:10 AM
- Edited by Karin Meier Wednesday, December 17, 2008 5:14 AM
Sunday, December 14, 2008 8:19 PM -
I think the OP is looking for AMCap2 source, not the AMCap sample. AMCap2 is a different program.
The AMCap2.exe is included in the Windows Driver Kit.
http://msdn.microsoft.com/en-us/library/aa906848.aspx
AFAIK, its source has not be released there or in the Windows SDK.
This page lists AMCap2 as available in the 6.1 Windows SDK but it is not there (at least on my system):
http://msdn.microsoft.com/en-us/library/ms716686.aspx
UPDATED I confirmed with the MS dshow team that the AMCap2 sample source was never released and the docs page above is incorrect.
My dshow site is http://tmhare.mvps.org- Proposed as answer by The March Hare Tuesday, December 16, 2008 4:57 AM
- Marked as answer by Karin Meier Wednesday, December 17, 2008 5:10 AM
Tuesday, December 16, 2008 4:57 AM -
The March Hare is correct.Thank you for pointing this out. There is only one AmCap sample in the Windows SDK for Server 2008. The DShow team contacted me today about it and I’ll be updating the page that says the AmCap2 sample is in the Win SDK.
--Karin
||Karin Meier||Windows SDK PM|| Samples.Community|| http://blogs.msdn.com/KarinM ||
Karin MeierWednesday, December 17, 2008 5:10 AM -
Hi Karin,
My name is Jiming Wang and I am with a sensor company called, Aptina Imaging (previously Micron). We are currently trying to find a DirectShow sample code that can show us how to "take Snap" (get a frame) from our UVC camera (which uses Microsoft's UVC driver). I believe AmCap only give us sample how to do video capture instead or still image capture since we only see "Take Snap" function on AmCap2.exe, not AmCap.exe. If Amcap2 source is not available to public, is there anything else in 6.1/7.0 SDK that will show us how to take snap shot through Directshow interface ? I did consider WIA interface before but was discouraged after I find out wiatest.exe does not work with our UVC camera on a Windows 7 system. Is it true that WIA is no longer supported in Windows 7 ?
Thanks,
Jiming
Tuesday, September 28, 2010 10:41 PM -
gfhyang wrote:>> As the title, I can find the Amcap2.exe but I can't find the Amcap2 sample code. Does anyone know>which SDK includes it.The source for AMCap2.exe was never released. What does it have that youneed that isn't also in AMCap.exe?--Tim Roberts, timr@probo.comProvidenza & Boekelheide, Inc.
Tim Roberts, DDK MVPWednesday, September 29, 2010 6:38 AM -
Jiming Wang wrote:>>My name is Jiming Wang and I am with a sensor company called, Aptina>Imaging (previously Micron). We are currently trying to find a DirectShow>sample code that can show us how to "take Snap" (get a frame) from our>UVC camera (which uses Microsoft's UVC driver). I believe AmCap only>give us sample how to do video capture instead or still image capture>since we only see "Take Snap" function on AmCap2.exe, not AmCap.exe.>If Amcap2 source is not available to public, is there anything else>in 6.1/7.0 SDK that will show us how to take snap shot through>Directshow interface ?Nominally, the way to do that is to hook up a sample grabber and a nullrenderer on the snapshot pin, then get an IAMVideoControl interface fromthe graph, then call IAMVideoControl::SetMode withVideoControlFlag_Trigger. However, that's usually done after you'realready streaming.Does your device have a snapshot endpoint with different capabilities fromthe streaming endpoint? If not, then just instert a CLSID_SampleGrabber inyour capture pin path. Then, you can grab a snapshot whenever you needone.--Tim Roberts, timr@probo.comProvidenza & Boekelheide, Inc.
Tim Roberts, DDK MVPWednesday, September 29, 2010 6:56 AM