[vtkusers] FFMPEG latest release in VTK
Nicolas Rannou
Nicolas_Rannou at hms.harvard.edu
Tue Dec 1 15:47:32 EST 2009
Hello,
so far, we have to use old versions of FFMPEG in order to make it usable
with vtkFFMPEGWriter.cxx.
here is a solution to use FFMPEG latest release in VTK (note that we
checked with ffmpeg folks and we only used LGPL components).
It has been tested on Linux and Mac so far.
You only need to replace:
- FindFFMPEG.cmake in /VTK/CMake/
- CMakeLists.txt in /VTK/IO/
- vtkFFMPEGWriter.cxx in /VTK/IO/
Would it be possible to integrate it in VTK? Indeed, the previous FFMPEG
working version is more than 2 years old and it would be nice to upgrade
to the next versions. I am not sure if old versions of ffmpeg with vtk
properly work on mac, and windows...
Since VTK is a visualization tool, easily recording video using FFMPEG
would be very usefull!!!
Few days back, I also asked if it was possible to add:
SET( VTK_USE_FFMPEG_ENCODER "@VTK_USE_FFMPEG_ENCODER@" ) in
/VTK/VTKConfig.cmake.in
indeed, it appears that this variable is missing.
Do I need to open a request/bug on Mantis for that?
Thanks,
Nicolas
Nicolas Rannou wrote:
> 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 --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091201/d897efde/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/d897efde/attachment.cxx>
-------------- 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/d897efde/attachment.bin>
More information about the vtkusers
mailing list