Discussion:
problem: capturing form 2 webcams by use of directshow
(too old to reply)
m***@gmail.com
2007-08-22 19:13:46 UTC
Permalink
Hi,
I'm new to programming in directshow. I have following problem.
I just can't capture video from 2 webcams simultanously.
It is verry simple modification of DxLogo example from
http://directshownet.sourceforge.net

cam = new Capture(0, FRAMERATE, VIDEOWIDTH,
VIDEOHEIGHT, textBox3.Text);
cam2 = new Capture(1, FRAMERATE, VIDEOWIDTH,
VIDEOHEIGHT, textBox4.Text);
cam.SetLogo(textBox2.Text);
cam2.SetLogo(textBox2.Text);

cam.Start();
cam2.Start();


As result of that code I obtain following exception of kind:

"An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in DxLogo.exe
Additional information: One of the arguments is invalid"

In advance thx for help
Mike.
PjotrvA
2007-08-23 06:46:51 UTC
Permalink
Post by m***@gmail.com
I just can't capture video from 2 webcams simultanously.
This could be a problem of the driver. I have had some similar problems
in the past.
Are you able to play both the webcams in a single graph with graphedit?

gr. Pjotr

Loading...