eii

1.0.2 • Public • Published

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

import eii from 'eii'
 
const test = eii({input: 'foo/bar.mkv', outDir: 'foo/bar'})
 
test.start()
 
/*
耗时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

preview

license

MIT. Copyright (c) viii.

Dependents (0)

Package Sidebar

Install

npm i eii

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • vaiii
  • koishi