A fork of ruby AviGlitch gem by ucnv.
AviGlitch destroys your AVI files.
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
$ npm install -g aviglitch