The aim with this project is create a preview for a video.
- This package recieves a file type video and returns an image type Buffer
npm i video-preview-buffer
const { screenshot } = require("video-preview-buffer")
screenshot("video-url" , "number of seconds in which the preview will be taken").then(previewImage => console.log("My preview as Buffer: ",previewImage))
const previewImage = await screenshot("video-url" , "number of seconds in which the preview will be taken")
console.log("My preview as Buffer: ", previewImage))