1.1.0 • Published 6 years ago

video-crop v1.1.0

Weekly downloads
253
License
MIT
Repository
github
Last release
6 years ago

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