Web-cam is not detected yet installed

Hi!
I m doing a program tat can capture movie from available video capturing devices, i hav installed web-cam, but while searching for the devices available(Detecting the device) , it is not identifing the device. And still if i m giving direct the device info to the program("vfj//0")then movie is captured from web-cam.
Program is listed below which is not detecting the web-cam:
public void setMainSource(){
setProcessing(false);
VideoFormat vidformat = new VideoFormat(VideoFormat.YUV);
Vector devices = CaptureDeviceManager.getDeviceList(vidformat);
CaptureDeviceInfo di = null;
if (devices.size() > 0) di = (CaptureDeviceInfo) devices.elementAt(0);
else {
/* I got exception here */
JOptionPane.showMessageDialog(parent,
"Your camera is not connected", "No webcam found", JOptionPane.WARNING_MESSAGE);
return;
try {
ml = di.getLocator();
setMainCamSource(Manager.createDataSource(ml));
} catch (Exception e) {
JOptionPane.showMessageDialog(parent,
"Exception locating media: " + e.getMessage(), "Error", JOptionPane.WARNING_MESSAGE);
return;
Output:
Web cam not found....
So wht shd be the problem , nyone please explain the problem how to overcome from it.
Thank you

First of all sorry for spelling mistake i write ("vfj//0") rather then "vfw://0"
Yeh! i read your code n your code is also giving the same error
like
Web cam not detected/installed(like something this).
But still i hav attached cam n capturing movie from the code shown below:
//This will not detect the webcam n directly captures the movie, try it out so now wht to do so tat will detect the webcam properly....
CODE:
import javax.media.*;
import javax.media.util.*;
import javax.media.format.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import javax.media.control.*;
class testing extends JFrame implements ControllerListener,ActionListener
     //Variables for gui
     public JButton play=new JButton("Play");
     public JButton stop=new JButton("Stop");
     public JPanel p1=new JPanel();
     public JPanel p2=new JPanel();
     Container c;
     //Variables for videocapturing
     boolean stateTransitionOK = true;
     Object waitSync = new Object();
     Processor p;
     ///Variables required to store the movie
     DataSink sink;
     MediaLocator dest = new MediaLocator("save_video.wav");
     ///methods
     public testing()
          super("Video Capture Demo");
          setupvideocapture();
          setupgui();
     public void setupgui()
          c.add(play);
          c.add(stop);
          addWindowListener(new WindowHandler());
          stop.addActionListener(this);
          play.addActionListener(this);
          setSize(350,350);
          setVisible(true);
          show();
     public void actionPerformed(ActionEvent ae)
          String str;
          str=ae.getActionCommand();
          if(str=="Play")
               try
                    //Before starting capturing store the movie to the HDD
                    p.start();
                    sink = Manager.createDataSink(p.getDataOutput(), dest);
                    sink.open();
                    sink.start();
               catch(Exception e)
          else if(str=="Stop")
               try
               //     sink.stop();
                    p.stop();
               catch(Exception e)
     public void setupvideocapture()
          c=getContentPane();
          c.setLayout(new FlowLayout());
          try
               p = Manager.createProcessor(new MediaLocator("vfw://0"));
               p.addControllerListener(this);
               p.configure();
               waitForState(p.Configured);
               p.setContentDescriptor(null);
               p.prefetch();
               waitForState(p.Prefetched);
               c.add(p.getVisualComponent());
               ///Intializing the saving procedure
          catch(Exception e)
               System.out.println(e);
          public void controllerUpdate(ControllerEvent evt)
               if (evt instanceof ConfigureCompleteEvent || evt instanceof RealizeCompleteEvent || evt instanceof PrefetchCompleteEvent)
                    synchronized (waitSync)
                         stateTransitionOK = true;
                         waitSync.notifyAll();
               else if (evt instanceof ResourceUnavailableEvent)
                    synchronized (waitSync)
                    System.out.println("ResourceUnavailable");
                    stateTransitionOK = false;
                    waitSync.notifyAll();
               else if (evt instanceof EndOfMediaEvent)
                    p.close();
                    System.exit(0);
          boolean waitForState(int state)
               synchronized (waitSync)
                    try
                         while (p.getState() != state && stateTransitionOK)
                              waitSync.wait();
                    catch (Exception e) {}
               return stateTransitionOK;
     //Entry point
     public static void main(String args[])
          testing t=new testing();
class WindowHandler extends WindowAdapter
     public void windowClosing(WindowEvent e)
          System.exit(0);
This is working properly........ so plz if other option plz notify me.
Thank you for helping me.......

Similar Messages

  • WEB CAM IS NOT DETECTED

    Last one month.. wn i opned youcam.. disply ths msg..  "NO WEB CAM DETECTED. TRY PLUG IN NEW WB CAM.. AND SURE TO ON YOUR INTEGRATED CAM.."" im unble to on during skype n also fb video calling.. what shold i do??

    Hello @PARTHA_BISWAS ,
    Welcome to the HP Forums!
    I understand the computer is not detecting the webcam. I will do my best to assist you, but first I require the following information:
    1. The computer's model number. If you require assistance locating this information, please reference this website: Guide to finding your notebook product number
    2. The computer's operating system. If you require assistance locating this information, please reference this website to determine your Windows operating system.
    3. Does this occur on certain programs, or all programs?
    4. Have you installed any new software or drivers on this computer, before the issue appeared?
    5. Have you tried another webcam to see if one does work?
    Additionally, if the issue just began occurring, I would perform a system restore. I want you to bring the computer back to the earliest restore point possible, in an attempt to dodge whatever caused the issue. Here is a document on how to perform a System Restore: System Restore
    Mario
    I worked on behalf of HP.

  • Touch Pad and Web Cam are not working after installing drivers also

    Hiii
    Synaptic Touch pad drivers are not working like not detecting the hardware so please help me on this
    and
    Webcam is not working like its not detecting even after installing cyberlink software given in the hp web site
    please help me regarding this problems

    1.Download hp support assistant.
    2.Run it and go to the tab updates and tune-ups.
    3.Click in the button check for updates. It will find you the updates. 
    4.Click in the button Download and Install.
    5.When it finish restart your computer.
    [link:http://www8.hp.com/us/en/campaigns/hpsupportassistant/hpsupport.html?jumpid=va_r602_us/en/any/psg/pl...
    Also if it doesnt' work , you can also try :
    1.Right click to the computer. 
    2.Click to the manage option.
    3.Then select the device manager.
    4.After that go to imagine devices and select your camera, then right click on it and select the option update the driver software do the same in the touchpad.
    If and this doesn' t work unistall the drivers and install them again.

  • My Camera is not detect while installing JMF

    Dear All,
    Im using cannon RE camara with my pc and its recognize easily by both gmail video chat and also with Skype.But while i am installing JMF it is not recognize my camera as a capturing device.Can any one explain me the reason or
    what should i have to do to fix this.
    Thanks
    Edited by: Anushkadar on Jan 16, 2009 7:13 AM
    Edited by: Anushkadar on Jan 16, 2009 7:18 AM

    Anushkadar wrote:
    Yaa.Thanks for ur opinion but i should say to u i am using Cannon,s very latest Document capture camera
    which product id is RE-455.JMF can detect even my cell phone camera but so far not for this.what ever I appreciate ur opinion and hope more meaning full idea further more.ThanksRandom question...if my point was "JMF hasn't had a patch or update of any kind in 6 years so it was designed to support cameras with 6-years ago technology", why should you say that to me?
    Second, I looked up your camera's specs to see if it was or was not VFW compliant. It doesn't say it's VFW compliant, but that doesn't necessarily mean it isn't. Then, I saw the list of ports...
    RGB input/output (XGA) D-SUB 15-pin x 1, input/output impedance: 75§Ù
    Video output RCA pin jack x 1, output impedance: 75§Ù
    S-video output 4-pin mini-DIN x 1, output impedance: 75§Ù
    RS-232C serial interface x 1
    AC input x 1So...how exactly are you plugging it into your computer???

  • After installing 10.9.3 computer won't recognize Canon SD 1200 IS camera: get message "a camera was not detected".  Any suggestions?

    After installing 10.9.3 computer won't recognize Canon SD 1200 IS camera: get message "a camera was not detected".  Any suggestions?

    I have an older Kodak which they have stopped supporting and I have to take out the SD card and put it in the card slot to download pictures.  I read other threads where this solved similar problems for others.  Some have a separate card reader but I just use the one on my imac.  Wish it was more convienent to get to it though.

  • My integrated web cam is not working

    I Am using hp pavilion p001tx laptop. My web cam is not working
    It shows a warning
    No web cam detected. Try to plugging in a webcam into your computer now. If you are using an integrated camera, Make sure that it is turned on.
    Help me please.
    My laptop serial number is [Personal Information Removed]

    Check if the drivers are installed or not.
    Try to update the camera drivers and restart the system.
    You can also go to device manager setting and see if the webcam is disabled or not.
    If everything fails try system resore or run OS recovery.

  • Hp TrueVision HD web cam does not work. The light will come on but no image appears in the window.

    Hi.
     I have an HP Pavilion dv7 6178us Entertainment PC I just bought it last week. My operating system is Windows 7 Home Premium Service Pack 1 64 bits.
    The problem I have is that yesterday I install Skype in the computer and realized that the HP TrueVision HD web cam does not work. The light right next to the web cam will light up but no image will appear on the screen.
    I have checked the software that  I have in the computer for the webcam and the program is CyberLink YouCam BE version 3.5.
    But the web cam does not work. The light right next to it will turn on when I activate Cyberlink, Skype or Messenger but no actual image will come out in computer screen. The computer is fully updated BIOS, Windows 7 and HP.
    But the web cam is not working. Could you help me fix this problem?
    Best regards:
    JEIO71

    I have a pavilion dv6 notepad. it's about a year old.
    about a month ago internal webcam truevision hd stop working.
    Called hp tech. they sent a box for me to ship the laptop.
    they hp tech attempted to correct the problem via internet
    did not work.
    wanted me to do a restore to factory setting i stopped him there.
    Webcam detected in device manager.
    the webcam light come on but no image.
    I actually see the back drop through the image space.
    running windows 7, fully updated.
    I found many comments on the web about the webcam connector disconnecting.
    But if it was the case with my computer, the webcam would not be detected.
    Many other comments suggests to do a restore to factory setting but \i read also that
    does not work often.
    I read many comments where disappointed clients believe hp should update
    the software but the driver is actually microsoft dating back to june 2006.
    Is it possible it's  a hardware problem, ie webcam is burned out.
    I have received a box to sent it and know they will do a system restore.
    Don't feel to go that way.
    Many comments refers to hp making an effort to get a driver update.
    ps I decided to purchase a logitech webcam, works perfectly.
    What else can I do to fix this problem.
    Can hp send me another internal webcam.

  • My web cam is not working, I downloaded a update of the web cam it was a 15 day trial, I dec ided I

    I downloaded a updated version of the web cam installed on my laptop, it was a version 5, this is what I was told that would come with the laptop, is was a 15 day trial, I decided I didn't want to purchase it, and now my web cam is not working

    Hi, 
    You may have a virus on your PC.  Review this NBC Nightly news article.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Help, web cam is not working properly with win vista

    Hii.. my web cam is not working properly with win vista..even if the icon appears bt it does nt start.. its
    lenovo easy capture 2.5...so if u cud suggest me anything...
    Moderator note; subject edited

    re-install drivers and try again. ( also easy capture )

  • HP Compaq web cam is not working

    I have Hp Compaq  Notebook 620. The devices have 2MP Web Cam but the Web Cam is not working. When i try to make it on, its shows error
    "No webcam detected. HP Webcam will now Close"
     Please suggest the solution of the problem.

    Hello Manishshakya,
    I see that you are having problems with the webcam on your computer. The unit you have is a HP commercial unit.
    I would suggest posting your problem in the HP Commercial Forum as well. There are more users with the computer you have on this board and it is specific to your computer.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • My HP-Pavilion dv6 web cam is not working properly, fluctuating always

    My HP-Pavilion dv6 web cam is not working properly, it is fluctuating always

    re-install drivers and try again. ( also easy capture )

  • Web-Cam does not work on Lenovo G480, PLEAS HELP!!

    Hello,
    I have a Lenovo G480 (20165), and my built-in Web-Cam is not working.
    When I enable it by pressing Fn+Esc the little light by the Web-Cam turns on, then shuts off after a second.
    So I downloaded the Lenovo Easy Capture, and when I open the software, I get a message saying "Failed To Open Camera".
    And when I turn on my laptop, the little light comes on for a short moment, then the light shuts off.
    I don't know what to do, It's a brand-new laptop and I've never been able to get the Web-Cam to work, not even on Skype.
    I would REALLY appreciate the help. Thank you!

    Have you installed camera drivers from the us support site? Try reinstalling them
    Win 7
    http://download.lenovo.com/consumer/mobiles/0qca12ww.exe
    http://download.lenovo.com/consumer/mobiles/0lca12ww.exe
    Win 8
    http://download.lenovo.com/consumer/mobiles/0qca08w8.exe
    http://download.lenovo.com/consumer/mobiles/0lca11w8.exe
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

  • My tx is so slow, the web cam is not working, the screen freezes and got color distortions

    - My tx is so slow, and heats up very fast... so i think that the advance is not working properly
    - the web cam is not working, since the 3th time iused... when i try to use it with my msn... got freezed, then y try ending the process and doesnt work, y     have to restart it but it stay just on logging off... and do nothing more... so i have to switch off directly from the power button
    - The screen freezes... some thimes the screen got freezed... and got color distortions too... so i have to to switch off again directly from the power button
    i was thinking that it was a software problem... but i restore my lap and it doesnt work cuz it still being with the same problems... so lately im thinking that its a hardware problem... i call to technical support from mexico... but they can do nothing for me cuz i bought my lap at circuitcity from el paso... and that store close a few months ago... so i need help before de warrantie expires...
    This is the second time that my lap gives me problems, last time I made the change at the store but this time it will be impossible cuz is now closed...
    that is why I seek your help...
    i will be grateful if you answer in Spanish because my English is not very good...
    thankyou so much...

    If your warranty has not yet run out get it serviced, now!  All of the comments seem to indicate that it is the motherboard>

  • Re: Canon IXUS V installation - Camera connection not detected

    I have installed this driver from the Cannon website but when I connect the camera I get a message saying " Camera connection not detected" followed by an error message saying pscN109 has stopped working.
    Then a Microsoft message saying no soloution found. Can anyone help me?

    Jeffrey
    The reason I posted it on the Toshiba forum is that whilst I have downloaded the correct driver for Vista but there is a compatibilty issue between it and Vista. Microsoft don't want to know as the Vista was supplied with the computer so they said contact the computer manufacturer

  • G550 Easy Cam is not detecting

    Dear all,
    Am having a Lenovo G550. Recently i was changed its HDD and installed Windows vista 32bit from an OEM DVD after the installation my easy cam is not detecting by the windows. then I tried to install the driver, that time no matching device found message is comming. even the cam is not appear in the windows device manager also.  Anybody please help me to resolve the is please..
    Thanks
    Aby

    Hi Kkpsblesaint,
    Welcome to Lenovo Community!
    I’m sorry to hear that Webcam is not working as expected after upgrading the OS (Operating System) to Windows 8, I suggest you to check if the Webcam is getting detected in “Device Manager” after enabling the Webcam by pressing Fn+Esc keys on the keyboard.
    Do post us back if the issue persists.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • Can't pass event from WebDynPro to JspDynPage - why?

    I Created JSP project and embedded in main page script (in its title), which subscribes to event by EPCM API, EPCM.subscribeEvent("urn:ru.intertech.common.wd.component", "save",   go); and created WebDynPro page that fires event using, when pressing

  • Backing up ipad mini to MacBook Air

    how to synch or back up files and photos (mostly) ?  When plug in to USB port on Mac it does not show up as a storage device.  I am not using the cloud storage. I've read the iPad will be visible as a storage device by plugging in.

  • How do I synch a new magic mouse

    My old magic mouse died and I just bought a new one; how can I synch it? This instructions say I have to navigate to the menu, but without a mouse how can I do that? I'm attempting to do this without borrowing someone elses mouse.

  • Using BDC in Webdynpro ABAP

    Hai All,       I am currently working on HR req.         I hav to upload my data form my webdynpro screen to Infotype 267.           Can I use BDC recording and program to upload it to the infotype???            Please give ur suggestions.... Thanks

  • ITunes doesn't accurately display what's on my iPhone

    Hello, all - I have always manually managed my music.  In the old days (pre iOS 6?) if I deleted a song off my phone it would no longer appear through iTunes when it was connected.  Nowadays, however, nothing matches - manually deleted items on my ph