Datamosh your videos.
- mp4
- mkv
- avi
npm install datamosher
glitchMP4(value, freq, repeat, start, end, left, right); //default values (0, 0, 1, 0, 100, 10, 90)
glitchAVI(offset, value, freq, repeat, start, end); //default values (10000, 0, 0, 1, 0, 100)
glitchMKV(offset, value, freq, repeat, start, end); //default values (10000, 0, 0, 1, 0, 100)
generate(newFilename); //default value <filename>_glitched.<filetype>
fileName
fileType
rawData //hex buffer
data //string buffer
//simple datamoshing program
var dmosh = require("datamosher");
var file = new dmosh("video.mp4");
file.glitchMP4();
file.generate();
console.log(file.rawData);