delphi working with 2 webcams at once

Posted on 2005-05-04
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

    PS. I am working with JLCVideo.pas which can be found at
    LVL 12

    Expert Comment

    I used many cams in one app with DSPack -
    each camera module was it's own datamodule having it's own filtergraph and sources
    LVL 2

    Accepted Solution


    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

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now