1.1.0 • Published 4 years ago

video-preview-buffer v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Video Preview Buffer

The aim with this project is create a preview for a video. Be awere that this package uses node child process, therefore you will need to have installed ffmpeg in your OS.

Features

  • This package recieves a file type video and returns an image type Buffer

Installation

npm i video-preview-buffer

Usage

const { screenshot } = require("video-preview-buffer")

Usage promise chaining

screenshot("video-url" , "number of seconds in which the preview will be taken").then(previewImage => console.log("My preview as Buffer: ",previewImage))

Usage async/await

Inside of an async funciton
const previewImage = await screenshot("video-url" , "number of seconds in which the preview will be taken")
console.log("My preview as Buffer: ", previewImage))
1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago