MantisBT - VTK
View Issue Details
0004719VTK(No Category)public2007-03-29 14:552013-04-05 20:22
Bill McGrory 
Dave DeMarle 
normalmajoralways
closedfixed 
 
 
0004719: vtkFFMPEGWriter needs porting from use of img_convert to sws_scale
img_convert, currently used in vtkFFMPEGWriter is a deprecated function. If the flag --enable-swscaler is included in the build for ffmpeg, then img_convert is not included in the distribution.

Note that this seems to be an either or kind of situation, so the patch I have uploaded will convert to using sws_scale, but will break the writer if the avcodec library uses img_convert (I believe)


Also, the cmake configuration files need to be modded to include -lswscale as a dependent library

Note, this deprecation hit me with the most recent build of ffmpeg libraries from debian-multimedia.org
No tags attached.
? ffmpegwriter.patch1 (2,155) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5964/ffmpegwriter.patch1
Issue History
2008-02-06 10:06Jeff BaumesAssigned ToWill Schroeder => Dave DeMarle
2008-02-13 15:02Dave DeMarleNote Added: 0010484
2011-02-08 09:00Dave DeMarleNote Added: 0025323
2011-02-08 09:00Dave DeMarleStatustabled => @80@
2011-02-08 09:00Dave DeMarleResolutionopen => fixed
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 20:22Berk GeveciStatuscustomer review => closed

Notes
(0010484)
Dave DeMarle   
2008-02-13 15:02   
We need to find a different workaround for the lack of img_convert(). Enabling the swscaler portion of ffmpeg makes the library GPL. We need to use routines from within an option set that keeps the library LGPL, or anything that uses vtkFFMPEGWriter will become GPL.

Lovely - can't we all just get along?
(0025323)
Dave DeMarle   
2011-02-08 09:00   
This was fixed by:

commit a5cd05340f852ae2edf0caccf3a3bb528b63a73c
Author: Arnaud Gelas <arnaud_gelas@hms.harvard.edu>
Date: Tue Feb 2 14:41:11 2010 -0500

    ENH: When using FFMPEG encoder, it first check if you are using a recent version of FFM