An open API service indexing awesome lists of open source software.

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.

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