Skip to content

volumenetwork/video-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lib to crop videos using ffmpeg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published