delphi working with 2 webcams at once

Posted on 2005-05-04
Medium Priority
Last Modified: 2012-08-13
I am using the JLCVideo for acquiring images from a webcam. It works perfectly with 1 webcam.
If I add a second webcam, only one component shows the picture. If I do it within an MDI, the 2 forms shows different pictures (which is good) but only ONE captures the pictures to the disk.
If I use 2 webcams in 2 different programs, it works perfectly.
I want to use the 2 webcams in 1 program (it can be MDI or SDI): any idea on how to do it ?
Question by:yarek

Author Comment

ID: 13926662
PS. I am working with JLCVideo.pas which can be found at http://www.firstsoft.com.br/vcl.asp
LVL 12

Expert Comment

ID: 13949084
I used many cams in one app with DSPack - http://www.progdigy.com
each camera module was it's own datamodule having it's own filtergraph and sources

Accepted Solution

vatamy earned 1500 total points
ID: 14534147

From what i can gather the component you are using uses the windows multimedia system.

What this means is that the component sends a call to the MMSystem api sending a handle as a parameter. This means that the component sends a variable to the api, wich in this case has the sme name for all the components. I think that is why only the one can save images to disk.

Why not try video cap component using DirectX Direct show?

I have a Motion detection application selling on the web wich uses Direct X and it works fine with as many cams as you can get.

Hope It Helps

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question