Skip to content
This repository

A Ruby library to destroy your AVI files.

branch: master


Build Status

AviGlitch destroys your AVI files.

I can't explain why they're going to destroy their own data, but they do.

You can find a short guide at It provides a way to manipulate the data in each AVI frames. It will mostly be used for making datamoshing videos. It parses only container level structure, doesn't parse codecs.

See following urls for details about visual glitch;


  require 'aviglitch'

  avi ='/path/to/your.avi')
  avi.glitch(:keyframe) do |data|
    data.gsub(/\d/, '0')

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


  gem install aviglitch


Copyright (c) 2009 - 2014 ucnv. See LICENSE for details.

Something went wrong with that request. Please try again.