1.0.2 • Published 7 years ago

eii v1.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

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

fielddefaultrequireddesc
inputtrueVideo file address
outDircurrent dirThe output file directory
fps10frames per second
time10Every how many seconds to extract
heightautoWhat do you want to output ratio, like: 720 1080
startSec0How many seconds from the beginning

Example

preview

license

MIT. Copyright (c) viii.