require 'aviglitch'Ī = AviGlitch.open 'file.avi' # Rewrite this line for your file.Ī.glitch :keyframe do |f| # To touch key frames, pass the symbol :keyframe. You can see in the code below that AviGlitch provides an easy way to remove key frames. Datamoshing means key frames removed video. If you use Ruby 1.8.x, you must require 'rubygems' on the top of code lines.Īnd what we do is basically an illegal operation for the file and the player application, try codes at your own risk.Īt first, let's do a simple glitch that is known as datamoshing. We recommend making the input file in small size (5 mins or shorter) for saving your machine power and executing time. AviGlitch doesn't provide any file converting function, use ffmpeg or something to make an input sample. The input file must be an AVI formatted file. Before that, there is something you need to know. $ sudo gem install aviglitch Codes and Examples A Ruby library to destroy your AVI files.