video-thumbnails
v1.0.3
Published
Get thumbnail images from any public video URL.
Downloads
871
Readme
Video Thumbnails
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...> }