https://github.com/tpkn/check-video
Test video for errors using NodeJS and FFMpeg
https://github.com/tpkn/check-video
Last synced: 3 months ago
JSON representation
Test video for errors using NodeJS and FFMpeg
- Host: GitHub
- URL: https://github.com/tpkn/check-video
- Owner: tpkn
- License: mit
- Created: 2018-12-15T16:20:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T18:25:15.000Z (over 4 years ago)
- Last Synced: 2025-02-15T02:18:58.052Z (3 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Check Video [](https://www.npmjs.org/package/check-video)
Test video for errors using NodeJS and FFMpeg## Installation
```bash
npm install check-video
```## API
### CheckVideo(file[, options])
### file
**Type**: _String_
Path to the video file### options.bin
**Type**: _String_
**Default**: `ffmpeg`
Path to [ffmpeg](http://ffmpeg.org/download.html) binary file### options.buffer
**Type**: _Number_
**Default**: `2000`
Exec [maximum buffer size](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) in kilobytes## Usage
```javascript
const CheckVideo = require('check-video');let video = './videos/MONICA BELLUCCI in the Matrix Sequels (HD Movie Scenes).mp4';
CheckVideo(video, { bin: './bin/ffmpeg.exe' }).then(errors => {
// =>
// [h264 @ 00000000005087a0] left block unavailable for requested intra4x4 mode -1 at 0 3
// [h264 @ 00000000005087a0] error while decoding MB 0 3, bytestream 28606
}).catch(err => {
console.log(err);
})```
#### v1.0.2:
- security fix