Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 same usb-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
Posted
Updated 7-Aug-12 1:08am
v4
Comments
Code-o-mat 6-Aug-12 9:52am    
What is the question? "Any ideas?" doesn't really describe the problem you are facing with this project.
christmars 7-Aug-12 4:15am    
sorry. I want to know how to realize the function with C#. How to make the codes able to control the cameras?
Code-o-mat 7-Aug-12 4:19am    
As said, try studying DiectShow, it's kinda like...there for such reasons.
christmars 7-Aug-12 4:24am    
thank you! i will try to use it.
[no name] 6-Aug-12 9:52am    
Any ideas for what? How is this a description of a problem? Where is the code that demonstrates the problem described?

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.
 
Share this answer
 
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[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Aug-12 16:05pm    
Good links, a 5.
--SA
Volynsky Alex 25-Aug-12 5:02am    
Thanks, Sergey Alexandrovich!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900