<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I got the reason by myself ----- The <FONT 
face="Times New Roman" size=3>vtkWin32VideoSource are written in VFW (Video For 
Windows). And&nbsp;<SPAN style="FONT-FAMILY: Arial"><STRONG> Pinnale 
510</STRONG></SPAN> usb&nbsp;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&nbsp;this issue&nbsp;in their Spec.</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman">Regards</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman">Leo</FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=leo@esit.com href="mailto:leo@esit.com">Liang Ma</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, November 02, 2008 3:54 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Whould you please 
  help me on vtkWin32VideoSource error?Thanks.</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi vtkusers,</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I tried to capture Video from 
  a<STRONG><SPAN style="FONT-FAMILY: Arial"> Pinnale 510</SPAN></STRONG> 
  usb&nbsp;video&nbsp;capture device&nbsp;using </SPAN><FONT 
  face="Times New Roman" size=3>vtkWin32VideoSource. I searched on the mail list 
  and got some sample program. None of them will work, but if I tried these 
  programs&nbsp;on a Logitech digital camera, they will work.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>I tried other program such as amcap, avcap which can capture the video 
  </FONT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">. They all work well 
  <FONT face="Times New Roman" size=3>on the </FONT><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Pinnale 510 usb</SPAN>. So I think 
  the device and the driver is Okay.</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>My operating system is windows XP and the development environment is 
  Visual C++ 6.0.&nbsp;I tried to traced the program and found the system halted 
  in the Initialize() function.&nbsp;On this sentence:</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT 
  face="Times New Roman" size=3>&nbsp;</FONT></o:p></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">if 
  (!capDriverConnect(this-&gt;Internal-&gt;CapWnd,0))</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>After about 10 seconds, sometimes the information got the information 
  --"The thread 0x1738 has exited with code 0 (0x0)."</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>..............................................................................................................................</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>Loaded 'C:\WINDOWS\system32\iccvid.dll', no matching symbolic 
  information found.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>Loaded 'C:\WINDOWS\system32\lvcodec2.dll', no matching symbolic 
  information found.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic 
  information found.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>Loaded 'C:\WINDOWS\system32\ir32_32.dll', no matching symbolic 
  information found.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>Loaded 'C:\WINDOWS\system32\ir32_32.dll', no matching symbolic 
  information found.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>Loaded 'C:\WINDOWS\system32\ir41_32.ax', no matching symbolic 
  information found.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>The thread 0x1738 has exited with code 0 (0x0).</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3>It seems that when program tried to connect to the device driver, there 
  were some errors. </FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I tried many examples; they all 
  work on </SPAN><FONT size=3><FONT face="Times New Roman"><STRONG>Logitech 
  digital camera,</STRONG> and not work on </FONT></FONT><STRONG><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Pinnale 510. </SPAN></STRONG><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">So I think the software is not the 
  source of the problem. Any way, I attached one of these program.</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  grabber = vtkWin32VideoSource::New(); 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grabber-&gt;SetFrameSize(320, 
  240, 1); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  grabber-&gt;VideoSourceDialog(); 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  grabber-&gt;VideoFormatDialog(); 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grabber-&gt;Grab(); //grab a 
  single frame from the video 
  <BR>......................................</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  This program will halted on grabber-&gt;VideoSourceDialog(); because there is 
  a </SPAN><FONT face="Times New Roman" size=3>Initialize() function in 
  it.</FONT></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" 
  size=3></FONT>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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?<o:p></o:p></SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT 
  face="Times New Roman" size=3>&nbsp;</FONT></o:p></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Would you please help me? 
  Thanks.</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Best regards</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN>&nbsp;</P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Liang</SPAN></P>
  <P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;</P></FONT></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>This is the private 
  VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at: 
  http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to 
  subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>