https://github.com/timb-103/video-thumbnails
Get thumbnail images from any public video URL.
https://github.com/timb-103/video-thumbnails
thumbnail video
Last synced: 9 months ago
JSON representation
Get thumbnail images from any public video URL.
- Host: GitHub
- URL: https://github.com/timb-103/video-thumbnails
- Owner: timb-103
- Created: 2023-07-31T23:33:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-01T04:51:37.000Z (over 2 years ago)
- Last Synced: 2025-04-04T13:54:02.580Z (10 months ago)
- Topics: thumbnail, video
- Language: Vue
- Homepage: https://thumbnail.video
- Size: 210 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Video Thumbnails
[![npm version][npm-version-src]][npm-version-href]
> 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
```sh
npm i video-thumbnails --save
```
## Usage
```js
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: }
```
[npm-version-src]: https://img.shields.io/npm/v/video-thumbnails/latest.svg
[npm-version-href]: https://npmjs.com/package/video-thumbnails
[npm-downloads-src]: https://img.shields.io/npm/dt/video-thumbnails.svg
[npm-downloads-href]: https://npmjs.com/package/video-thumbnails