[vtkusers] Pb with usage of class vtkAVIWriter
David Cole
david.cole at kitware.com
Wed Oct 26 14:18:41 EDT 2005
I will have to defer to others regarding your legal questions
(copyrights / sold projects)...
However, the fact remains: vtkAVIWriter is Windows only for now.
Sorry,
David
PETROV Alexey wrote:
> David Cole wrote:
>
>> vtkAVIWriter is included only in Windows builds of VTK that have
>> VTK_USE_VIDEO_FOR_WINDOWS turned on.
>>
>> From VTK/IO/CMakeLists.txt:
>> IF(WIN32)
>> IF(VTK_USE_VIDEO_FOR_WINDOWS)
>> SET(Kit_SRCS ${Kit_SRCS} vtkAVIWriter.cxx)
>> SET(KIT_LIBS ${KIT_LIBS} vfw32)
>> ENDIF(VTK_USE_VIDEO_FOR_WINDOWS)
>> ENDIF(WIN32)
>>
>> You could:
>> (1) do it on Windows
>> (2) use vtkMPEG2Writer instead
>
>
> Does vtkMPEG2Writer is not protected by corresponding copyrights?
> Can it be used into sold projects?
>
> Thank you in advance,
> Alexey
>
>>
>>
>>
>> Hope this helps,
>> David
>>
>> Peter KURNEV wrote:
>>
>>> Hello.
>>>
>>> I've faced with the problem using the class vtkAVIWriter on LINUX
>>> Debian.
>>> All that I did is the following:
>>> {
>>> ..
>>> vtkRenderWindow *renWin = vtkRenderWindow::New();
>>> ...
>>> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
>>> iren->SetRenderWindow(renWin);
>>> ...
>>> vtkWindowToImageFilter *pWTI=vtkWindowToImageFilter::New();
>>> pWTI->SetInput(renWin);
>>> ...
>>> vtkAVIWriter *pAVIWriter=vtkAVIWriter::New();
>>> pAVIWriter->SetInput(pWTI->GetOutput());
>>> pAVIWriter->SetFileName("/data/pkv/V1/x.avi");
>>> pAVIWriter->Start();
>>> ...
>>> // do smth to draw some picture on the screen
>>> // btw: the picture was displayed OK before the usage of vtkAVIWriter
>>> //
>>> pAVIWriter->Write();
>>> ...
>>> pAVIWriter->End();
>>> ...
>>> }
>>>
>>> The result is :
>>> fixme:avifile:AVIFileInit (): stub!
>>> Segmentation fault
>>>
>>> Could you please, help to fix the pb.
>>> Thanks in advance.
>>> _________________
>>> Regards,
>>> Peter
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>> _______________________________________________
>> 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
>>
>>
>
>
More information about the vtkusers
mailing list