Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 943 Bytes

README.md

File metadata and controls

47 lines (27 loc) · 943 Bytes

datamosher

Datamosh your videos.

Image

Image

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)

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>

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);