Convierte vídeos en gifs.
$ npm install gify
Requiere ffmpeg
y graphicsmagick
:
brew install ffmpeg graphicsmagick
Sin opciones:
gify ( 'out.mp4' , 'out.gif' , function ( err ) {
if ( err ) throw err ;
} ) ;
Con opciones:
var opts = {
width : 300
} ;
gify ( 'out.mp4' , 'out.gif' , opts , function ( err ) {
if ( err ) throw err ;
} ) ;
width
máximo [500]height
altura máxima [ninguna]delay
entre fotogramas [automático]rate
de fotogramas [10]start
inicial posición en segundos o hh:mm:ss[.xxx] [0]duration
del vídeo a convertir en segundos o hh:mm:ss[.xxx] [auto]MIT