[vtkusers] vtkWin32VideoSource
Mathieu Malaterre
mathieu.malaterre at kitware.com
Sun Feb 29 13:04:07 EST 2004
Jono,
Did you try the video.tcl example. I attached it to my email. Also please note you should be carefull on how you use this class :
http://vtk.org/pipermail/vtkusers/2001-May/006553.html
HTH
Mathieu
> hey vtkusers
>
> i've been interested in using vtk for my graduate study in animal behaviour
> for some time, but havent any experience with it til now.
>
> I want to monitor a dv camera signal and capture consecutive frames to a
> buffer. i have hacked the following which brings up a window showing video
> from my tv tuner card, but if i set input to dv camera, the overlay window
> is black. Im just using the vtkRenderWindowInteractor as a lowlife way to
> keep the thread alive.
>
> int main(int ac, char **av)
> {
> vtkRenderer *renderer = vtkRenderer::New();
> vtkRenderWindow *renWin = vtkRenderWindow::New();
> renWin->AddRenderer(renderer);
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> iren->SetRenderWindow(renWin);
>
> vtkWin32VideoSource *videoSrc = vtkWin32VideoSource::New();
> videoSrc->Print(cout);
>
> iren->Initialize();
> renWin->Render();
>
> videoSrc->VideoSourceDialog();
> videoSrc->VideoFormatDialog();
> videoSrc->SetPreview(1);
> videoSrc->PreviewOn();
>
> iren->Start();
> videoSrc->Delete();
> renderer->Delete();
> renWin->Delete();
> iren->Delete();
>
> return 0;
> }
>
>
> i'm using win2k, MSVC6, vtk 4.2 and a JVC GR-DVL 9800 camera connected by
> firewire. it wld be really useful if somebody could post some code showing
> use of the vtkWin32VideoSource & vtkVideoSource classes.
>
> also, could anybody tell me if the kitware books would be much help in this?
>
> cheers
>
> jonathan poff
> christchurch
> new zealand
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: video.tcl
Type: application/octet-stream
Size: 2053 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040229/525b45c6/attachment.obj>
More information about the vtkusers
mailing list