Socket
Book a DemoInstallSign in
Socket

video-crop

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

video-crop

Lib to crop videos using ffmpeg

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

video-crop

FAQs

Package last updated on 18 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts