JMF - how to detect second webcamera

Hi
I am trying to modify single web cam capturing screen code into multiple web cam screen capturing. The method autoDetect() recognizes the web camera. I want to choose web cam by myself. I tried all devInfo from the list but it resulted no success. Always the first camera is selected . I use different cameras (Logitech and Genius). Please, how to detect both camera to work at the same time.
public CaptureDeviceInfo autoDetect ( )
        Vector list = CaptureDeviceManager.getDeviceList (null);
        CaptureDeviceInfo devInfo = null;
            if ( list != null )
            String name;
            for ( int i=0; i<list.size(); i++ )
                devInfo = (CaptureDeviceInfo)list.elementAt ( i );
                name = devInfo.getName();
               if ( name.startsWith ("vfw:") )
                                 break;
The whole code is on: JWebCam

I tried getting the device list on my system but the following code is not returning any devices (deviicelist is empty) ? When I look at my Device Manager on Windows7 machine, I see there is 'High Definition audio device' . Does anyone have a clue why/when would this happen ?
I have jmf installed and it is in the classpath. I also have jmf.jar, sound.jar added to my project.
CaptureDCaptureDeviceInfo di = null;
Vector deviceList = CaptureDeviceManager.getDeviceList(
                    null);
          if (deviceList.isEmpty())
               System.out.println("No Devices found");
          if ( deviceList.size() > 0 )
          di = (CaptureDeviceInfo)deviceList.firstElement();
          System.out.println("di::" + di.getName());

Similar Messages

  • Detect possible webcam resolutions

    Happy New Year to everybody!
    So, I searched forums and googled and not found anything on how to detect the Webcam supported resolutions in flash.
    The whole issue stems from the issue when I use Camera.getCamera() (only have one attached to my laptop) I'm always getting
    different values for camera.height and camera.width. Also some 720p cams have different aspect ratio then the old cameras.
    Is there possible to detect somehow what's the largets resolution is supported by a webcam? Or all possible resolutions supported?
    GLTA.

    hi
    I´m trying to know if the webcam is 4/3 or 16/9. You know that your solution could work?
    cam.setMode(64000,48000,fps);
    switch (ScaleCam(cam)) {
                    case 1.33: // 4/3
                        mx.controls.Alert.show("4/3"+"\n"+cam.width+"\n"+cam.height);
                        break;
                    case 1.77: // 16/9
                        mx.controls.Alert.show("16/9"+"\n"+cam.width+"\n"+cam.height);
                        break;
                    case 3: //
                        break;
    protected function ScaleCam(cam:Camera):Number {
        var scale:Number = new Number();
        scale = cam.width/cam.height;
        scale = Number(scale.toFixed(2));
        return scale;
    I haven´t got webcam HD 16/9, so can´t try this solution.
    Thanks!

  • URGENT: JMStudio can't recognize my second webcam

    Hello everybody
    I'm trying to create an applet which capture from two webcams and display them into two different frames.
    I already created one frame and it captures from the first cam perfectly.
    NOW�
    I cant create the second frame because the JMStudio cant recognize my new (second) webcam (it's not in the registry list even when I click the Detect capture devices button).
    I also tried to run jmfinit but this did not work.
    Even I uninstalled JMF and reinstall it but it always recognize the first webcam
    Any suggestions to solve this situation.
    (my second webcam is Logitech USB).
    Please please give me any advice.
    Thank you all.

    Hello all,,
    I run java VFWAuto, then the system recognize the second camera. BUT guess what ?????
    It forgot all about the first one !!!.
    Shortly, it manipulates one cam at a time !!! please please if any one have any idea tell me.
    Thank you,,

  • Detecting multiple webcams

    There's a lot of old posts about this, but no solutions. Does anyone know a way to detect multiple webcams? It appears that JMF can't do this, but maybe someone has come up with another way? I'm trying to switch between 2 usb webcams.
    Thanks!

    What type of scanner do you have? Did it come with software or are you just using Image Capture? I've a Canon printer/scanner and use the supplied software to preview and select the item that I want to scan at any given time. Never used Image Capture before...
    Clinton

  • Skype can't detect any webcam

    Hi, Since I updated the newer version of skype 6.11, my video does not work anymore. When I go under options, I get the message, "skype can't detect any webcam". I have a built-in camera in my laptop using windows 7. I know my camera works, but I don't know how to make skype detect my built-in camera. So far, I can call people, I see and hear them and they can hear me, but they can't see me since I don't even have the options to put on my camera anymore. Please, can anyone help me with this issue? I have already uninstalled and reinstalled skype, but it does not work. Thank you

    Please,  run the DirectX diagnostics tool. Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post. Be aware that you will have to zip this file before attaching it here.

  • JMFRegistry: Detect virtual webcam instead actual webcam

    Hi all
    I have a issue of not detecting my webcam by JMF registry.
    Initially it was detected and worked fine. Recently I have installed virtual web camera.
    So when I tried to capture video by JMFStudio (JMFStudio->capture) it plays the video from virtual web cam software not from my real web cam.
    And under the JMF registry capture devices "vfw:Microsoft WDM Image Capture (Win32):0" was found.
    Seems Virtual web cam driver doesn't change this because before installing the virtual software it was the same.
    Virtual webcam software provides us an interface to change the video source and there it detects my web camera. So still I can use my web cam with JMF through this virtual web cam driver.
    "I can remember that I have changed the default video source by an windows interface where it was prompt by JMF it self, it was a very simple interface having a single drop down where it carries all the capturing drivers I have installed. But not I cannot find this interface"
    So can anyone please help me to get rid of this issue
    Thnak You

    Hi this is to answer my own question, I have found that JMF doesnot detect all the webcams(virtual or real) having same id "vfw:Microsoft WDM Image Capture (Win32):0.
    So what we have to do is disable the current selected camera and start rescan of the capturing devices. Then it prompts a window to select what we want.
    This is the link why we need such virtual webcam.
    These are many virtual web cams which are free and works with JMF.
    Edited by: deshan on Jun 8, 2009 7:02 PM

  • HT201343 how to detect appletv for mirroring?

    how to detect appletv for mirroring?

    Be on same network, apple id with homesharing on for ATV and Mac or iOS.  Always try a reboot of router and ATV with all cables out for 30 Seconds too.  Mirror icon should appear near clock IF you have a mid 2011 mac or newer (early 2011 for MBP) AND are running OSX 10.8 Mountain Lion or newer.
    Oler mac or OS can 'mirror' with a third party app called airparrot.

  • How to indent second line in a very long heading when creating a table of contents?

    I need to make a table of contents.
    Some of the chapter headings are very long and fill more than a single line.
    When I create my table of contents, I want the second lines to be 'pushed in' in the table.
    Like this
    1 chaper one xxxxxxxxxxx
    2 Chapter two xxxxxxxxxxxxxxxxxx
    3 Chapter three x xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
         xxxxxxxxxxxxx xxxxxxxxxxx
    4 Charpter four xxxxx xxxxx
    5 Chapter five xxxxxxxxxx xxx xxxxx xx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx
         xxxxxxxxx xxxx xxxxx
    I thought I had solved it by having the actual chapter headings indented like this, but the table of contents overlooks this/overrules this.

    See also my reply to the duplicate thread:
    http://social.technet.microsoft.com/Forums/office/en-US/8f88b64c-1a15-4761-aed9-f662f17b94ca/how-to-indent-second-line-in-a-very-long-heading-when-creating-a-table-of-contents?forum=word
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • ATI Radeon 4870 won't detect second display

    ATI Radeon 4870 won't detect second display I have a sony that come up as a sdm-hs95p and a asus that i want to connect they both have vga and both have conveters vga to dvi and on the asus it also has a dvi to mini dp because on the graphics card it has dvi and mini dp

    You can't use more than one converter per display.
    You need to get single converter that connects directly from the Mac port to the display.

  • How to detect USB Flash Drive name in LabVIEW

    Hi there
    I was looking for how to detect a USB Flash Drive name in Labview
    appearently every time i insert USB Flash Drive in a computer, windows assign it a different name
    once "J:" and sometimes "M:"
    Is there anyway to obtain USB Flash Drive name programmatically in Labview ?
    Because in my program an user shouldn't be able to access HDD Drives except his USB Flash Drive (for inserting some file ...)
    thank you and excuse me for my poor english 

    I was able to get the demo.vi to load, but it could not load the other two because there is no block diagram associated with those.  I'm not sure why this is.  I haven't had any issues with other llbs before.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • How to detect a selected row in ALV GRID

    Hi,
    Can anyone tell me how to detect and catch an event when a row is selected in an ALV GRID?
    I would like to catch such event when the end user presses Ctrl + Shif + Space bar.
    Thank you and best regards.
    Hassane.

    Hi,
    Use this wiki link, to have a checkbox with all the records in ALV Grid and to process those selected records at a user command, as per the requirement.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How to detect the Acrobat Browser Plug-in version installed on a users system for non-IE browsers?

    How to detect the *Acrobat Browser Plug-in version* installed on a users system, on Firefox, Safari, Opera, etc?
    Or one script for detecting Plug-in version for major browsers. Need full example code.

    Wrote an article on this with code samples (Javascript + HTML) - basically there are differences between IE and other browsers. Chrome natively comes with the Chrome PDF Viewer so I've incorporated that in my detection script.
    The script detects the browser type, and the installed acrobat version...
    Have a look here:
    Detect the Adobe Reader Plugin

  • How to detect the path of Temp directory

    I am writing a class library which allows users to manipulate a database in the web server java applications/applets. In my logic the Application/Applet communicate with a CGI script/Servlet in the server and that do all the database handling. My objective is to make the Client independant from the Database Drivers, and to some restrictions and possible security threats that can arrice when accessing the database directly.
    99% of the work is done and now I am doing the fine tuning.
    My Problem:
    When the user downloading a blob object from the server database. each time the program read the blob it will get a new copy from the server. This is not good if the blob is large (few 100 megs) . So I am going to implement a cache system. but the problem is If I am caching in the memory it will not support large objects (Memory is a limited factor). So the preferance is use the Temperary files but I do not know how to detect the path to temperary folder.
    And my 2nd questions is are the applets allowed to write and read in temperary folder.

    The Java default temporary file path can be determined with
    System.getProperty("java.io.tmpdir")This is typically the same value as the os environment variable

  • How to create second or third level  of  menu bar in se41 ?

    Hi All
      How to create second or third level  of  menu bar in se41 ?
      I created it once but forgotten , do anybody remember ?
    Regards
    Jaman
    Message was edited by:
            ABAP Techie

    Hi..,
    Once you have created a menu bar, you enter the individual menu entries. Each menu can contain up to 15 entries.
    A menu can contain any of the following:
    Function names (with function code and text)
    Submenus (pull-down menus)
    Separators
    You may include submenus up to three levels deep.
    Menu functions that logically belong together are grouped together using separators. This makes the menu easier to use. Separators also make long menus easier to read by dividing them into smaller parts.
    Defining Menu Functions
    To add functions to a menu that is already open in the Menu Painter:
    Open a menu list in the menu bar by double-clicking the menu title.
    The system opens the menu. The menu entries list contains the two columns Code and Text.
    In the Code column, enter a function code (this may be up to 20 characters long).
    If you want to enter a function code that is longer than the input field, you must first change the displayed length of the field in the user settings. (Choose Utilities ® Settings ® User-specific.)
    Enter the function text in the Text column.
    The name you enter here appears in the menu at runtime. You can also determine the contents of function texts at runtime (see Defining Dynamic Function Texts).
    Repeat steps 2 and 3 for each item in the menu.
    Creating Cascading Menus
    To add a cascading menu (sub-menu) to a menu:
    Leave the Code column blank.
    Enter a menu name in the Text column.
    Double-click the cascading menu to open it.
    The system opens the menu entry list for the cascading menu.
    Complete the menu as you would any other.
    Inserting Separators
    Place the cursor on a line.
    Choose Edit ® Insert ® Separator.
    If you want to insert a separator between two existing menu entries, place the cursor on the line before which you want to insert the separator.
    Editing Menu Entries
    You can cut, copy, paste, and delete menu entries.
    Place the cursor on a line.
    Choose Edit ® Entry ® Cut (or Copy, or Paste, or Delete).
    If you double-click a function code, the Function Attributes dialog box appears. Here you can, for example, change the icon assigned to a function.
    regards,
    sai ramesh

  • How to detect color pages in a PDF?

    I am using a C++ Acrobat plug-in do read/edit a PDF file.
    I need to get the total number of pages in the PDF as well as the page numbers of color pages.
    So far I have been able to get the total number of pages using PDDocGetNumPages() without any trouble.
    However, I cant seem to find an API that lets me know whether a particular page is color or not. Is there a way to do this?
    Thanks in advance!

    But what if there is RGB data that means black or gray (R == G == B), does that mean black or RGB?
    There is some sample code in the SDK for iterating over the content in the PDF, and then you can get the colorspace and the color of each object.
    But you really need to do some background research on colors & colorspaces to properly achieve this goal.
    From: Sachintha81 <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 8 Feb 2012 16:57:10 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to detect color pages in a PDF?
    Re: How to detect color pages in a PDF?
    created by Sachintha81<http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4194889#4194889

Maybe you are looking for

  • Cannot add ringtone - weird problem

    So I'm running Mac OS Snow leopard, and iTunes 10.5 with an iPhone 4Gs. In iTunes' preferences I have sources / Ringtones checkbox checked. I have an .m4r ringtone that I created. When I drag this file into the iTunes library, the library gets the "g

  • Problem signing in after updating Skype

    I have just updated Skype to its new version, entered my username and password as asked, and the signing in goes on forever. The same thing happened the last time I updated. Any suggestion? 

  • Printing from XP

    OK, here's what I have: I have a 10.4.7 Server with every network printer on our network setup on it. They are all being shared via IPP & SMB. When our Mac users want to print to a network printer, they can choose the printer from the Shared Printers

  • Export H.264 video gives me Elongated Text

    I've edited a sequence (HDV 1080i60) that includes some text that I made in Final Cut. When I export the video using H.264 compression/ 480p all of the text in the video gets elongated (stretched vertically) I've tried different pixel aspects I've tr

  • Can I buy a skype number outside of my own country...

    I live in the US but have many friends in Denmark, can I buy a Denmark number and they can call me and I can call them?