Transformez les vidéos en gifs.
$ npm install gify
Nécessite ffmpeg
et graphicsmagick
:
brew install ffmpeg graphicsmagick
Sans options :
gify ( 'out.mp4' , 'out.gif' , function ( err ) {
if ( err ) throw err ;
} ) ;
Avec options :
var opts = {
width : 300
} ;
gify ( 'out.mp4' , 'out.gif' , opts , function ( err ) {
if ( err ) throw err ;
} ) ;
width
largeur maximale [500]height
hauteur max [aucun]delay
entre les images [auto]rate
d'images [10]start
position de départ en secondes ou hh:mm:ss[.xxx] [0]duration
de la vidéo à convertir en secondes ou hh:mm:ss[.xxx] [auto]MIT