Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-video-thumb

meiwhu60MIT1.0.11TypeScript support: included

generate video thumb by ffmpeg

thumb, video

readme

node npm npm GitHub license

node-video-thumb

generate video thumb by ffmpeg

Requirments

  • ffmpeg

Installation

npm install --save node-video-thumb

Examples

const thumb = require('node-video-thumb')

const options = {
  source: "/absolute/path/to/video",
  target: "/absolute/path/to/target/thumb",
  width: 100,   // thumb's width
  height: 50,   // thumb's height
  seconds: 1    // seconds from start
}

(async () => {
  await thumb(options)
})()