Drag the “displacement map” effect onto your top clip. To create this effect, drop two clips into your timeline, and overlap them by a few seconds. The displacement wipe ghosts luminant pixels into the next frame by using displacement maps. This is a transition that our friend Todd created for After Effects (Thanks Todd). The Delta frame settings will create the “bloom” effect on your videos, and the I-frame settings will help pixels travel and track onto your next clip, creating the mosh effects you’re looking for. You can choose from presets on a dropdown menu, or you can toy with the settings yourself. Open up the datamosh plugin, and it will prompt you with a few different options.
In the past, you’d have to download an old video editor that would “accidentally” corrupt the footage, but luckily, there’s now an After Effects plug-in to help you datamosh in one click.įollow the download instructions for the plugin, open After Effects, and drag two clips into your timeline next to each other. It doesn't work with other player and codec combinations.Īt last, we will show the achievement of excess glitches using ffmpeg, mencoder and AviGlitch (and no Adobe stuff).įor more details, read the documentation.As you can see in the video, datamoshing is a process of purposely corrupting footage to make the pixels act strangely. It completely depends on the VLC player application and the Xvid codec.
pack('B*') + dataĪnd to play the result output with the VLC player, it becomes like this. require 'aviglitch'Ī.glitch_with_index(:keyframe) do |data, i|
Following code overwrites key frames' screen size data randomly. O = AviGlitch.open q # New AviGlitch instance using the frames. Q.concat(x * rand(50)) # Repeat the frame n times and concatenate with q. X = a.frames, 1] # Select a certain non-keyframe. require 'aviglitch'ĭ.push(i) if f.is_deltaframe? # Collecting non-keyframes indices. Following code makes a certain frame repeated a number of times. Next is an example of the frames manipulation. If you like a complex and messy way, learn from this guy. This is the world's easiest way to make a datamoshing video.
Without any coding, in the terminal, simply type The AviGlitch library includes a command line tool named datamosh, The datamosh command does same thing as the code above. This code will generate a video like this. Nil # Returning nil in glitch method's yield block 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.