Transforme vídeos em gifs.
$ npm install gify
Requer ffmpeg
e graphicsmagick
:
brew install ffmpeg graphicsmagick
Sem opções:
gify ( 'out.mp4' , 'out.gif' , function ( err ) {
if ( err ) throw err ;
} ) ;
Com opções:
var opts = {
width : 300
} ;
gify ( 'out.mp4' , 'out.gif' , opts , function ( err ) {
if ( err ) throw err ;
} ) ;
width
largura máxima [500]height
altura máxima [nenhum]delay
entre quadros [automático]rate
de quadros [10]start
em segundos ou hh:mm:ss[.xxx] [0]duration
do vídeo a ser convertido em segundos ou hh:mm:ss[.xxx] [auto]MIT