EII
EII use ffmpeg to convert video to gif, let us can easily intercept want pictures.
Required
brew install ffmpeg
Installation
$ yarn add eii
Usage
const test = teststart /*耗时4.748s, 已完成: 1, 还剩余: 142耗时9.33s, 已完成: 2, 还剩余: 141耗时14.812s, 已完成: 3, 还剩余: 140耗时21.59s, 已完成: 4, 还剩余: 139...*/
Api
field | default | required | desc |
---|---|---|---|
input | true | Video file address | |
outDir | current dir | The output file directory | |
fps | 10 | frames per second | |
time | 10 | Every how many seconds to extract | |
height | auto | What do you want to output ratio, like: 720 1080 | |
startSec | 0 | How many seconds from the beginning |
Example
license
MIT. Copyright (c) viii.