[vtkusers] Whould you please help me on vtkWin32VideoSource error?Thanks.

Liang Ma leo at esit.com
Thu Nov 6 11:17:58 EST 2008


Hi all,

I got the reason by myself ----- The vtkWin32VideoSource are written in VFW (Video For Windows). And  Pinnale 510 usb does not support VFW as most camera does. Now my problem is how to find a usb video capture which support VFW---- all of them do not mention this issue in their Spec.

Regards

Leo 
  ----- Original Message ----- 
  From: Liang Ma 
  To: vtkusers at vtk.org 
  Sent: Sunday, November 02, 2008 3:54 PM
  Subject: [vtkusers] Whould you please help me on vtkWin32VideoSource error?Thanks.


  Hi vtkusers,



  I tried to capture Video from a Pinnale 510 usb video capture device using vtkWin32VideoSource. I searched on the mail list and got some sample program. None of them will work, but if I tried these programs on a Logitech digital camera, they will work.



  I tried other program such as amcap, avcap which can capture the video . They all work well on the Pinnale 510 usb. So I think the device and the driver is Okay.



  My operating system is windows XP and the development environment is Visual C++ 6.0. I tried to traced the program and found the system halted in the Initialize() function. On this sentence:

   

  if (!capDriverConnect(this->Internal->CapWnd,0))



  After about 10 seconds, sometimes the information got the information --"The thread 0x1738 has exited with code 0 (0x0)."



  ..............................................................................................................................

  Loaded 'C:\WINDOWS\system32\iccvid.dll', no matching symbolic information found.

  Loaded 'C:\WINDOWS\system32\lvcodec2.dll', no matching symbolic information found.

  Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic information found.

  Loaded 'C:\WINDOWS\system32\ir32_32.dll', no matching symbolic information found.

  Loaded 'C:\WINDOWS\system32\ir32_32.dll', no matching symbolic information found.

  Loaded 'C:\WINDOWS\system32\ir41_32.ax', no matching symbolic information found.

  The thread 0x1738 has exited with code 0 (0x0).



  It seems that when program tried to connect to the device driver, there were some errors. 



  I tried many examples; they all work on Logitech digital camera, and not work on Pinnale 510. So I think the software is not the source of the problem. Any way, I attached one of these program.



          grabber = vtkWin32VideoSource::New(); 
          grabber->SetFrameSize(320, 240, 1); 
          grabber->VideoSourceDialog(); 
          grabber->VideoFormatDialog(); 
          grabber->Grab(); //grab a single frame from the video 
  ......................................

          This program will halted on grabber->VideoSourceDialog(); because there is a Initialize() function in it.





  I already added the vfw32.lib in the project.I tried as much as I can to solve this problem. Is there any thing wrong on my system?

   

  Would you please help me? Thanks.



  Best regards



  Liang





------------------------------------------------------------------------------


  _______________________________________________
  This is the private VTK discussion list.
  Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
  Follow this link to subscribe/unsubscribe:
  http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081106/72b46ab9/attachment.htm>


More information about the vtkusers mailing list