Page 1 of 1

Dual camera, moniker string?

PostPosted: Thu Oct 25, 2018 9:16 pm
by gripner

Im trying to use 2 identical webcameras with aforge, did not get it working so googled some and found ppl saying, cant have same moniker string. So started checking there. this is what i have.

When I use 2 diff cameras it works, see moniker strings

When I use 2 identical cameras this is the 2 moniker strings

to me the moniker strings are clearly different.
I have tried the two camera samples, same result in that application.

Anyone got any idea?

Re: Dual camera, moniker string?

PostPosted: Fri Oct 26, 2018 7:02 am
by andrew.kirillov

Well, it really depends on camera drivers. I heard from people many times, that if they have two identical cameras, then things don't work for them. Long time ago I had two cameras of the same model and luckily it did work fine (some cheap noname cameras, so can not name them). The problem is that some manufacturers (or driver developers) simply can not think of a use case for two cameras.

Re: Dual camera, moniker string?

PostPosted: Sat Nov 03, 2018 3:39 pm
by JuKu
At least on Windows, two identical cameras work without issues. You can find link to the source code of my software at to see how I did it. The application will work without the associated hardware, so you can try it, too.

Re: Dual camera, moniker string?

PostPosted: Tue Nov 13, 2018 1:07 pm
by JuKu
I'm back in the office, so I can look in my code. I do all kinds of tests to see it actually starts etc(*), but basically it is simple:
Code: Select all
VideoSource = new VideoCaptureDevice(MonikerStr);
VideoSource.NewFrame += new NewFrameEventHandler(Video_NewFrame);

*: In practice, it is not this simple. The issues are in Windows and USB, not in Aforge. Some systems can use both at the same time, usually those that have separate USB controllers in the machine, others are limited to one at the time. On some of these, you need to stop both cameras and set VideoSource to null and create the source again, some are fine using just start and stop. See also about issues on multiple USB cameras.

Re: Dual camera, moniker string?

PostPosted: Wed Jun 19, 2019 11:59 am
by gripner
Dont know if im dumb or blind, but looking into the troubleshooting it talks about OpenPnpCaptureCamera driver.
I am unable to find any driver to download. Do one need to install the entire openPnP system to get the drive installed?


Re: Dual camera, moniker string?

PostPosted: Mon Jun 24, 2019 6:43 am
by gripner
After finaly finding some information.
Issue seems to be that the "usbvideo.sys" enumerates the usb and basicaly "asks" for just about all USB bandwidth/resources thus when camera nr 2 using same driver there are no resources left.

Where i found this information they mentioned USB3 might work better, did not for me, might be since cameras are not true USB3 cameras uncertain.
But "easiest" solution is to put the 2 camera son DIFFERERNT usb controllers, easy way for me was to put one camera in USB2 connector and one camera in USB3 connector, then I for sure know its on two different controllers.

Works just fine like this.