Node.js FFMPEG Example to Generate Short Webp Animation Preview From MP4 Videos Using fast-preview Library in Javascript Full Project For Beginners

 

 

npm i fast-preview

 

 

 

var FastPreview = require('fast-preview')
var preview = new FastPreview('video.mp4')
preview.exec()

 

 

var FastPreview = require('fast-preview');
var preview = new FastPreview('video.mp4',{
  clip_count: 5,
  clip_time: 5,
  clip_select_strategy: 'max-size', // max-size min-size random
  clip_range: [0.1,0.9],
  fps_rate: 10, // 'keep' number
  dist_path: __dirname,
  speed_multi: 2
});
preview.exec()

Leave a Reply