1.0.3 • Published 9 months ago

video-thumbnails v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Video Thumbnails

npm version

Get thumbnail images from any public video URL.

Features

  • 🕑 Take thumbnails from any second of the video (default = 1s)
  • 🌀 Typescript types
  • ⚡ Fast & easy to use
  • 📹 Uses ffmpeg to process video

Install

npm i video-thumbnails --save

Usage

import { getVideoThumbnail } from 'video-thumbnails'

const videoURL = 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'
const thumbnail = await getVideoThumbnail(videoURL)

// { ok: true, buffer: <Buffer 89 50...> }