Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I am trying to grab images from two cameras that are running simultaneously. I am using DirectShow.NET and this is in a windows form application written in C#.
Are there any good examples that I can use? I have seen some examples where one can list the devices, but I am not sure how to proceed after that? How can I display both images simultaneously?
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 12-Aug-13 19:50pm    
They are displayed in the same exact way as one. "I'm not sure..." doesn't make a valid question. You cannot even ask "what to do next?", because nobody knows what have you done so far, and because there can be different ways to proceed, not even related to the final results. Not a productive question. You need to read the documentation, try to solve the problem and ask questions on your particular concerns.

—SA

1 solution

Please see my comment to the question, and then see the documentation:
http://directshownet.sourceforge.net/faq.html[^].

Basically, the Capture object expects the parameter representing the index of the device. Then you can use two different Capture objects exactly in the same way as you would do with one.

The devices are enumerated using the method DsDev.GetDevicesOfCat. See, for example: http://msdn.microsoft.com/en-us/library/windows/desktop/dd390351%28v=vs.85%29.aspx[^].

—SA
 
Share this answer
 
Comments
Joezer BH 10-Sep-13 3:31am    
5ed!
Sergey Alexandrovich Kryukov 10-Sep-13 10:37am    
Thank you.
—SA

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