# frame-extractor

> Updated version of video-frame-extractor:Wrapper around ffmpeg to extract an image from a particular time and frame

Latest version **0.0.9** (published 2021-09-23) · BSD license · 0 weekly downloads

## Install

```sh
npm install frame-extractor
pnpm add frame-extractor
yarn add frame-extractor
bun add frame-extractor
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2021-09-23 |
| First published | 2017-06-08 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 3 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | itamayo_ |
| Keywords | video, frames, h264, mp4 |

## Links

- npm: https://www.npmjs.com/package/frame-extractor
- Repository: https://github.com/itamayo/frame-extractor
- Homepage: https://github.com/itamayo/frame-extractor#readme
- Issues: https://github.com/itamayo/frame-extractor/issues
- npm.io page: https://npm.io/package/frame-extractor

## Dependencies (3)

- [bluebird](https://npm.io/package/bluebird.md) ^2.8.1
- [mediainfo](https://npm.io/package/mediainfo.md) git://github.com/itamayo/node-mediainfo.git
- [mediainfo-parser](https://npm.io/package/mediainfo-parser.md) ^1.1.5

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2021-09-23
- 0.0.8 — 2019-01-31
- 0.0.6 — 2019-01-31
- 0.0.7 — 2017-06-09
- 0.0.5 — 2017-06-09
- 0.0.3 — 2017-06-08
- 0.0.1 — 2017-06-08

## README

## Modification of original old version of Video Frame Extractor

This library extracts frames from a video file using ffmpeg and saves the file to disk.

### Dependencies

- Mediainfo
- ffmpeg

### Usage

The output path is the path and the filename where the image should be stored on disk

```bash
npm install --save frame-extractor
```
```js
var frameExtractor = require('frame-extractor');
//frameExtractor.extractFrame(sourceFilePath, numOfFrames, frameNumber, outputPath);
frameExtractor.extractFrame('http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4', "50",120, 'frame%04d.jpg');

```

### Test

- Edit the test/index.js and set the frameNumber and frames you want


```
node test/index.js
```

---
_Source: https://npm.io/package/frame-extractor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
