video-screen
Generate screenshots from videos
Install
This module requires ffmpeg
$ npm install --save video-screen
Usage
var videoScreen = ;var fs = ; ; // or if streams aren't your thing;
API
videoScreen(filename, [options], [callback])
filename
Required
Type: string
String of video path
options
time
Type: string
Default: '00:00:01'
The video time where the screenshot should be taken from
width
Type: number
Default: 200
The width of the generated screenshot
height
Type: number
Default: 125
The height of the generated screenshot
CLI
$ video-screen --help Take a screenshot of a video Usage $ video-screen <input-file> > <output-file> Options -t, --time Seeked position of video to take screenshot -w, --width Width of screenshot -h, --height Height of screenshot Example $ video-screen clip.mp4 > clip.png
License
MIT