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

Liang Ma leo at esit.com
Sun Nov 2 15:54:37 EST 2008


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081102/a35449ba/attachment.htm>


More information about the vtkusers mailing list