video-crop

1.1.0 • Public • Published

video-crop

Build Status

Usage

import VideoCrop from 'video-crop';
 
const testFile = '/path/to/myfile.mp4';
const outFile = '/path/to/out.mp4';
 
const opts = {
  input: testFile,
  output: outFile,
  x: [500, 600],
  y: [250, 500],
  height: [100, 300],
  width: [100, 300],
  fps: 60 // optional 
};
 
const vc = new VideoCrop();
vc.run(); // outputs two files: '/path/to/out1.mp4', '/path/to/out2.mp4'

Contribute

Build

yarn run build

Tests

yarn test

Dependents (1)

Package Sidebar

Install

npm i video-crop

Weekly Downloads

26

Version

1.1.0

License

MIT

Unpacked Size

332 kB

Total Files

18

Last publish

Collaborators

  • irvingswiftj
  • dpascu