How to use 2 webcam for java at the same time?

hi there,
I have a question to ask regarding webcam and java. Basically i want to know whether is it possible to have 2 web cam running in java at the same time? I have no problem when running one usb webcam since i m using "
ml = new MediaLocator("vfw://0") ;
what parameter must i use to specify when using 2 web cam
many thanks
sun

Hi
I am making a project in which i have to capture a image through webcam. How can I do it will you please guide me or if can provide me code. Many thanks for your support. My email id is [email protected]

Similar Messages

  • [SOLVED] How to use timidity++ and other programs at the same time?

    I have installed timidity following arch wiki instructions - I have soundfont, and I start it in /etc/rc.conf
    It works properly with tuxguitar (and tuxguitar-alsa) or kmid, but I cannot play MIDI and - for example - oggs in amarok at the same time.
    I suspect that the problem is that timidity doesn't use dmix alsa plugin I have made in my ~/.asoundrc.
    The question is: how to tell timidity to use my dmix plugin?
    Last edited by senjin (2007-11-19 19:53:50)

    but they don't define "default" there, but "!default"...
    anyway, I have already both "default" and "!default" defined exactly the same way:
    pcm.!default
    type plug
    slave.pcm "dmixer"
    pcm.default
    type plug
    slave.pcm "dmixer"
    pcm.dmixer
    type dmix
    ipc_key 1024
    slave
    pcm "hw:0,0"
    format "S32_LE"
    channels 2
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 44100
    bindings
    0 0
    1 1
    ctl.dmixer
    type hw
    card 0
    pcm.w_y_h
    type hw
    card 0
    device 0
    pcm.what_you_hear
    type plug
    ttable.0.10 1 # digital mix left
    ttable.1.11 1 # digital mix right
    slave.pcm w_y_h
    pcm.skype
    type asym
    playback.pcm "dmixer"
    capture.pcm "skype_input"
    pcm.skype_input
    type dsnoop
    ipc_key 2048
    slave
    pcm "hw:0,0"
    period_time 0
    buffer_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
    and it doesn't work!
    Last edited by senjin (2007-11-18 17:49:21)

  • Win 8 - How to use StereoMix and Headphones Mic at the same time?

    I am using Windows 8 64 bit and believe I may have an IDT driver problem.
    I need to enable StereoMix and my Headphones Mic at the same time. I know this was previously possible with windows xp and windows 7.
    What happens is If I enable either Headphones Mic (Logitech headphones with Mic) or StereoMix the other one becomes " current;ly unavailable"  I cannot get them both to work together. I can get StereoMix and the Internal Mic to work together ( both enabled at the same time) but the sound quality is bad because the internal mic picks up noises from the PC. I need to have both my headphones mic and stereo mix enabled at the same time.
    The driver I'm using is the one provided by HP with the laptop. It is called sp59620.exe
    Would another IDT driver solve the problem? Can you think of another reason this is not working?
    Here are my specs.
    System Manufacturer/Model Number HP Pavillion G7-2251dx
    OS Windows 8 64 bit
    CPU AMD A-8 4500M
    Memory 8 Gigabytes DDR3 sdram
    Graphics Card Discrete ATI Radeon HD 7640G with 2 Gigs
    Sound Card IDT Audio
    Monitor(s) Displays 17.3
    Screen Resolution 1600x900
    If you cannot help, where else should I look? i have tried Windows and Microsoft forums and no one can give me an answer.
    Thank you.

    I have tried the instructions in that video and I cant get passed the very bad feedback i get when telling my recording device to Listen.  His secone instruction from his notes here
    ["Right Click the Realtech HD audio device and set as default if its not already.
    (note you may want to turn off any powered speakers you may have to prevent feedback.)
    -Select the Recording Tab at the top of the window.
    -Select the Stereo Mix device and set it to default if its not already.
    -Right click and select Properties.
    -Select the Listen Tab at the top of the window.
    -Change the drop-down box to the entry for USB headset and check the Listen to this device checkbox.
    -click ok to dismiss the window.
    -Right click on the USB headset microphone device and select properties.
    -Select the Listen Tab at the top of the window.
    -Change the drop-down box to the entry for the Realtech HD Audio device and check the Listen to this device checkbox.
    -click ok to dismiss the window.
    So, essentially, the game audio will play through the Realtec, your mic is also set to play to the Realtec. both audio streams are now part of Stereo Mix. Stereo Mix is being listened to by your headset allowing you to hear the game and your voice.]
    ~~~~~~~~~~~~~~~~~
    Don't know about turning off any powered speakers.. the only speakers I have besides the headphones are the internal laptop speakers.  I get the same feedback if i have the headphones plugged in or not.

  • How to Use different icons for JTree in the same level

    Hi guys, i come cross a problem with JTree. The module need a JTree which need to represent items in the same level using different icons. For example:
    [Icon for Root]Root
    |
    |_____________[Icon for Table] TABLES
    |
    |_____________[Icon for Index] INDEXS
    |
    |_____________[Icon for Views] VIEWS
    As i know, the default behavior for JTree is using the same icon for all leaves and
    the same icon for all node that has children. How can i achieve that?
    Thansk a lot!

    subclass DefaultTreeCellRenderer. if you overwrite the method below, then you can set the icon to whatever you want....!
        public Component getTreeCellRendererComponent(JTree tree, Object value,
                                    boolean sel,
                                    boolean expanded,
                                    boolean leaf, int row,
                                    boolean hasFocus) {
         String         stringValue = tree.convertValueToText(value, sel,
                               expanded, leaf, row, hasFocus);
            this.tree = tree;
         this.hasFocus = hasFocus;
         setText(stringValue);
         if(sel)
             setForeground(getTextSelectionColor());
         else
             setForeground(getTextNonSelectionColor());
         // There needs to be a way to specify disabled icons.
         if (!tree.isEnabled()) {
             setEnabled(false);
             if (leaf) {
              setDisabledIcon(getLeafIcon());
             } else if (expanded) {
              setDisabledIcon(getOpenIcon());
             } else {
              setDisabledIcon(getClosedIcon());
         else {
             setEnabled(true);
             if (leaf) {
              setIcon(getLeafIcon());
             } else if (expanded) {
              setIcon(getOpenIcon());
             } else {
              setIcon(getClosedIcon());
            setComponentOrientation(tree.getComponentOrientation());
         selected = sel;
         return this;
        }

  • How to use Counter B0 and B1 in the same time

    Hi, I am a rookie, and first time post question at here.
    my Card is DAQcard-1200, and data acquisition code is based on MFC of VC6. now I used counter B0 as timer for data sample. how can i use B1 as a suqare wave generator?
    Thank you.

    Hello P.
    The post says that you cannot setup a squarewave generator using B1 unless you provide an external clock; which would not make any sense since you are trying to generate a clock signal. But if you use B0, then the first thing I would advise you to do is read the general purpose timing section of the manual.
    I would then search National Instruments' web site for examples such as this one. You can search for examples in the NI Developer Zone.Message Edited by sergesl on 06-29-2005 02:05 AM

  • HT5569 How do I print using a wireless printer when I'm using wifi for Internet at the same time

    I can't figure out how to print via wifi when I'm using wifi for Internet at the same time please help

    You need to have your printer & ipad connected to the same wifi router.  ( This would be my best guess. )
    Robert

  • Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes? Both my daughters have ipods, my wife has one

    Dear All
    Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes. My daughters have a different generation 'nano' each & my wife a 'shuffle'?
    Many thanks

    Click here for options.
    (69081)

  • Can I use my creative cloud account at the same time for my iMac and my MacBook?

    Can I use my creative cloud account at the same time for my iMac and my MacBook?

    Thank you Sheena!!
    Guy
    Op 2-jan.-2015, om 12:16 heeft Sheena Kaul <[email protected]> het volgende geschreven:
    Can I use my creative cloud account at the same time for my iMac and my MacBook?
    created by Sheena Kaul <https://forums.adobe.com/people/Sheena+Kaul> in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/7059158#7059158>
    Hi Guy Heyligen,
    Absolutely. You can use the creative cloud account on two machines.
    You may also refer to the link below:
    Creative Cloud Help | Creative Cloud / Common Questions <http://helpx.adobe.com/creative-cloud/faq.html>
    Regards,
    Sheena
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7059158#7059158 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7059158#7059158
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Creative Cloud by email <mailto:[email protected].com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=46 70>
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.

  • How to use parallel flowed subforms begining at the same position.

    How to use parallel flowed subforms begining at the same position in my form.
    Ex
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1
    I would like to repeat  with a button the 3 subforms in parallel
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1
    Subform1
    Subform2
    Subform3
    DropDownList1
    DropDownList1
    DropDownList1

    Post your question in the LiveCycle Designer forum.

  • Can you use sync on multiple computers at the same time? ie have someone else logged into your firefox account for you whilst you are also logged in

    I am trying to sign up to something but there is only a short window so was going to ask a friend to sign in at the same time using my account to try to sign up (with my password being saved into my firefox account)

    Hi. Yes, you can use Sync on multiple devices at the same time. I use it to keep my bookmarks in sync across my desktop and Android versions of Firefox.

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • How do I get two screens up at the same time

    Hello.
    How do I bring up two screens at the same time so I can work on one and refer to the tutorials on the other?

    Hello Jazzy6491
    All you should need is another monitor and the appropriate adapter for it you plug into you MacBook Pro. Check out the article below on how to use multiple monitors with your Mac.
    OS X: How to use multiple displays with your Mac in Mountain Lion and earlier
    http://support.apple.com/kb/ht5019
    Regards,
    -Norm G.

  • How do i start video and audio at the same time in ios

    How do i start video and audio at the same time in ios?
    I have tried a lot of different ways but i cant figure it out?
    I can get the sound and animation (timeline) to start playing.
    There is no problem to start the video and the animation at the same time.
    But i cant get both the video and the audio to start playing when i press a button.
    It works great in OSX and on windows?
    Here is an example:
    // insert code for mouse click here
    // Play an audio track
    sym.$("_1")[0].play();
    // Play a video track
    sym.$("host")[0].play();
    // Play the timeline at a label or specific time. For example:
    // sym.play(500); or sym.play("myLabel");
    sym.play("marker1");

    If the game has sound in it (and possibly even if it doesn't) it may be overriding the Music app and causing it to stop playing - in which case there is nothing that you can do about it.

  • How far will the extreme reach and how many users can be on there at the same time?

    How far will the airport extreme reach and how many users can be on there at the same time?

    Last question first, since that is the easy one......approximately 50 (fifty) users for wireless depending on how active each user might be.
    The first question is much more difficult, as distance is not really the issue with wireless.....obstructions are the issue.
    A wireless signal can easily travel 300 feet or more with no obstructions in the signal path.
    But, a typical wall of sheetrock or wallboard in a home will absorb....on average....15-20% of the wireless signal. Brick or adobe will obviously absorb much more. A ceiling....because it is thicker....will absorb about 25-35% of the signal.
    So, if the wireless signal must pass through several walls and a ceiling, there won't be much, if any, of the signal left....even though the distance that the signal travels is not great...for example, 20-25 feet.
    Other wireless networks around you at the neighbors can also affect the relative strength of the wireless signal.
    The bottom line....locate the AirPort Extreme where wireless devices will receive a signal with the least amount of obstructions in the signal path. Your actual performance cannot be predicted in advance. You will not know how well the AirPort Extreme works for you until you try it out in your home.
    If you find that the signal does not reach as far as needed,  you will need to add additional "extenders", like an AirPort Express to provide more signal coverage.

  • How to sync with two computers not at the same time, I'm registerd with one computer

    How to sync with two computers (not at the same time), I'm registered with one computer and am trying to connect with second computer with same iPhone. To sync the first time with the second PC "Firefox Sync Option tells me Create New account or Connect, when I connect it gives me a Passcode and on iPhone it also gives me a Passcode, than how do I connect? Both the iPhone and PC gives me a Passcode and have now idea what to do with them.
    Where do I find my Sync Key ? so I can install manually if it works ?

    Use the Sync Key ''(Recovery Key)'' from the PC that you used to initially setup your Firefox Sync service, when setting up that 2nd PC with Sync. You need to use '''Add a device''' to setup the 2nd and subsequent devices on a Sync account. <br />
    https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync

Maybe you are looking for

  • How do I clear my bookmarks from the Firefox browser on a public computer, having synced my account to see them during a browsing session?

    Here's what I'm trying to achieve: 1. I use Firefox on someone else's computer and sync my account to retrieve my bookmarks. (This works.) 2. After finishing my browsing session, I sign out of my Firefox account, and my bookmarks are cleared from the

  • Solution for Overlapping dates

    Hi I am looking for an easy solution the problem described below I have 4 records under party key and PartyKey account id taxtype date start date end 123 145 100 01/01/2001 12/31/2002 123 145 100 05/01/2001 05/31/2001 123 145 100 01/01/2002 11/30/200

  • Value mapping values to be reflected dynamically

    Hi All,    I have a scenario where R3 entries should be reflected in value mapping dynamically for a particluar field . Can anyone explain wht does the component SAP BASIS 7.00(NS- http://sap.com/xi/XI/System,MI -ValueMappingReplication) has the role

  • Can't access nor see Macintosh partition and files in Windows

    Hello, Basically I just rebooted the whole laptop and installed OS X and windows 7 (using Boot Camp Assistant). I don't know why, I can't see the Macintosh partition when I open My Computer. It's like it doesn't even exist! I've been searching a solu

  • Matrox dual head to go

    Hello, I'am using a matrox dual head to go digit ME. But of some reasons it is not possible to put the resolution on the recommend settings 1920 x 1080 60Hz. When I using this settings the right external monitor turns into snow. We checked this also