Hello friends,
I am working on a camera system that should have 3 USB web- or digicams. They are controlled with C#/C++ to take photos at the same time and give the photos back to my PC with the date and time. The program should at best be useable for any popular normal cams.
I think i''ve ready know the codes should be worked out with DirectShow''s help.
But what''s more, i want know if it''s possible that three sameusb-cameras together or one after another to take fotos(for various sights).
Is there conflikts between them? How can i prevent the problem when i don''t choose three different ones?
Or does anybody already worked with more than one webcams in a c-program?
Thanks a lot for your help!
Christoph
解决方案I presume your platform is windows (C#...), if you are looking for a way to handle input from the cameras, i recommend looking into Microsoft''s DirectShow[^]. The documentation is quite detailed and there are a lot of tutorials around the net.
Yes, I agree with Code-o-mat,you can read about DirectShow (sometimes abbreviated as DS or DShow), is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams. It is the replacement for Microsoft''s earlier Video for Windows technology. Based on the Microsoft Windows Component Object Model (COM) framework, DirectShow provides a common interface for media across various programming languages, and is an extensible, filter-based framework that can render or record media files on demand at the request of the user or developer. The DirectShow development tools and documentation were originally distributed as part of the DirectX SDK.
Currently, they are distributed as part of the Windows SDK (formerly known as the Platform SDK). But Microsoft plans to completely replace DirectShow gradually with Media Foundation in future Windows versions. Windows Vista and Windows 7 applications use Media Foundation instead of DirectShow for several media related tasks.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375454%28v=vs.85%29.aspx
http://www.laganiere.name/directshowTut/
http://www.codeguru.com/cpp/g-m/directx/directshow/article.php/c9551/DirectShow-SingleFrame-Capture-Class-Without-MFC.htm
DirectShow Programming from Youtube:
http://www.youtube.com/watch?v=bl_ADLC76oQ
http://www.youtube.com/watch?v=BOGF3WkmcL8&feature=relmfu
http://www.youtube.com/watch?v=ZzIKOGKJEwc&feature=relmfu
http://www.youtube.com/watch?v=BA1Vkx77fZ4&feature=relmfu
http://www.youtube.com/watch?v=RN8ygMtQFu4&feature=relmfu
Here articles from codeproject:
A Brief Tutorial On How To Develop DirectShow Source Filter For Beginners[^]
Streaming Server using Direct Show and Windows Media Format[^]
DirectShow.NET[^]
Programming DirectShow applications in C#: A set of tutorials[^]
Streaming video across a network using DirectShow:
http://social.msdn.microsoft.com/Forums/en-US/windowsdirectshowdevelopment/thread/f28de003-abe6-4949-8a3f-6f7d1198e008/
For example, you can also read about Mango DSP a developer and manufacturer of intelligent video surveillance devices:
http://www.mangodsp.com/default.asp?id=11&item=4[^]