/node-aviglitch

A node.js porting of aviglitch rubygem by ucnv.

Primary LanguageJavaScript

AviGlitch

Build Status Coverage Status

NPM

A fork of ruby AviGlitch gem by ucnv.

AviGlitch destroys your AVI files.

Usage

import AviGlitch from 'aviglitch';
const avi = AviGlitch.open('/path/to/your.avi');
avi.glitch('keyframe', (frame) => {
  return new Buffer(frame.toString('ascii').replace(/\d/, ''));
});
avi.output('/path/to/broken.avi');

This library also includes a command line tool named datamosh. It creates the keyframes removed video.

$ datamosh /path/to/your.avi -o /path/to/broken.avi

Installation

$ npm install -g aviglitch