[vtkusers] FFMPEG for VTK?

Nicolas Rannou Nicolas_Rannou at hms.harvard.edu
Tue Dec 1 09:55:57 EST 2009


Mathieu Malaterre wrote:
> On Tue, Dec 1, 2009 at 3:36 PM, David E DeMarle
> <dave.demarle at kitware.com> wrote:
>   
>> The recommended way to get ffmpeg to work with vtk is to download the
>> old version of ffmpeg that is known to work with VTK from from
>> http://www.vtk.org/VTK/resources/software.html#addons, and follow the
>> directions in the README.
>>
>> If you need to use a modern ffmpeg then FFMPEG_INCLUDE should point to
>> a directory that has ffmpeg/avformat.h in it. If you can't find that
>> in /usr/include, find out where ubuntu's ffmpeg package puts it.Note,
>> some linux distributions have separate developer and user packages and
>> you generally have to install the developer package to get the header
>> files, but I do not suspect that is the problem in this case.
>>
>> You will also have to change the vtk ffmpeg exporter class to work
>> with the new ffmpeg library. I recall seeing a patch on the mailing
>> list or the bug tracker that does that, but I can't seem to track it
>> down right now.
>>     
>
> debian is using this one:
>
> http://patch-tracker.debian.org/patch/misc/view/vtk/5.2.1-13/IO/vtkFFMPEGWriter.cxx
>
> HTH
>   
We just fixed this in linux.
You should remplace

-FindFFMPEG.cmake in VTK/CMake/
-CMakeLists in VTK/IO/
-vtkFFMPEGWriter.cxx in VTK/IO/

We still have to check that it works properly in mac and windows...

HTH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindFFMPEG.cmake
Type: text/x-cmake
Size: 5344 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091201/0edbc6f9/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091201/0edbc6f9/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkFFMPEGWriter.cxx
Type: text/x-c++src
Size: 13099 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091201/0edbc6f9/attachment.cxx>


More information about the vtkusers mailing list