datamosher
v0.2.1
Published
Datamoshing Library
Downloads
19
Maintainers
Readme
datamosher
Datamosh your videos.
Supported File Types
- mp4
- mkv
- avi
Quick Start
npm install datamosher
Methods
glitchMP4(value, freq, repeat, start, end, left, right); //default values (0, 0, 1, 0, 100, 10, 90)
glitchAIV(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>
Properties
fileName
fileType
rawData //hex buffer
data //string buffer
Example
//simple datamoshing program
var dmosh = require("datamosher");
var file = new dmosh("video.mp4");
file.glitchMP4();
file.generate();
console.log(file.rawData);