Skip to content

maelswarm/datamosher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Datamosh your videos.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published