[vtkusers] vtkVideoSource problem

Madhusudhanan Balasubramanian madhu_lsu at yahoo.com
Mon Jul 12 20:25:50 EDT 2004


Hi all,
 
I'm trying grab frames from a video capture board.  I tried Play(), Stop(), FastForward() and Rewind() functions, but none of them seem to have control over the tape connected to the video capture board.  
 
Here is my code fragment:
 //Initialize the video source
 this->videoSource = vtkVideoSource::New();
 this->videoSource->SetFrameSize(640, 480, 1);
 this->videoSource->SetFrameRate(30);
 this->videoSource->SetNumberOfOutputFrames(1);
 this->videoSource->SetFrameCount(0);

this->videoSource->Play();
(won't this send a play command to the tape?)
 
this->videoSource->ReleaseSystemResources();
this->videoSource->Delete();

I've searched through the archives but didn't help much in understanding whether Play() and other such commands would actually send commands to play the tape.
 
I tried grab() too, but didn't work (returns a data size of 0, 0, 0)
 
I appreciate your help.
 
Madhu.

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040712/0b7fa97d/attachment.htm>


More information about the vtkusers mailing list