Sunday 2 August 2015

DATA MOSHING TUTORIAL for PC using AviDemux.

Hello everyone,

I have researched many DataMoshing tutorials online and many of them are quite old and not very easy to follow. I have put everything I learned from those tutorials into this tutorial so I think this is one of the best, most comprehensive DataMoshing tutorials you will find online. Toolfarm, the company that sells plugins for VFX software like After Effects, even published an article about DataMoshing which was inspired by THIS tutorial!
But now it's time to make your own awesome DataMoshing video, and don't forget to check out the extra tips below the tutorial to give your video that extra edge!!

So here goes:

First we need to download an older version of AviDemux. Version 2.5.6 to be precise. You can find that version here: http://www.videohelp.com/software/AviDemux/old-versions
You will need to scroll down almost to the bottom of the list to find it. (The date of publishing is 2012-01-01 or 2011-12-30.) Choose the 64 bit or 32 bit version according to the system your computer uses. 64 bit is preferable.

Okay, now you need to make a video, using your preferred editing software (I use Premiere Pro CC), with at least one cut in it so it goes from one scene to an other. Videos with slow moving objects or people work best for Data Moshing. Fast movement in your video means the effect won't last very long. See my test video on YouTube to see what I mean. Sorry it's in black and white. Colour would have been better but when I made the video I hadn't planned on making a tutorial yet.
You can watch the video here:


Save your video as an "AVI" file. This is important otherwise AviDemux can't handle your video properly.

Open 'AviDemux 2.5.6'  Go to 'FILE' and load in the video you want to use.

Go to the 'VIDEO' tab on the left and choose 'MPEG 4 ASP (Xvid)'

Now go to the 'CONFIGURATION' tab and fill in the following settings:

- GENERAL:  here you can set the quality of your video. A lower number means higher quality, however these settings have little to no effect on the DataMoshing effect so you can leave that at the default setting if you wish. Should your finished video have a low quality (some of the presets I offer have a high Quantise number) then you should set Quantisation to 1 and try again.




- MOTION: Turn the 'Rate Distortion Optimisation' off (uncheck the box).
Motion Estimation can stay on 'High'.
Uncheck the box for 'Chroma Motion Estimation' and turn on 'Quarter Pixel Motion Estimation'.



- FRAME:  Turn on (check box) 'Four Motion Vectors per Macroblock.'
Set the 'Maximum I-Frame Interval' to a number of frames that exceeds the number of frames in your video. 90000 will usually be enough.
Set the 'Maximum Consecutive B-Frames' to 0 (zero).



- QUANTISER:  Turn 'Trellis Quantisation' off (uncheck the box).
Set the 'Quantisation Matrix' to 'MPEG Matrix'.



Now save your video. Go to 'FILE' -> 'SAVE' and save it with '.avi' behind the name!! (Important)

Now load the file you just saved back into AviDemux. Now we're going to cut out the I-Frames.

1. Use the blue button with the 2 arrows in it, pointing to the right, to move to the next I-frame in your video.
2. To select this I-frame press 'A'. (see picture below)
3. Now go forward one frame by pressing the blue button with the single arrow pointing to the right.
4. Now press 'B'.  Now this I-frame is selected.
5. Press Delete on your keyboard to cut the I-frame out.

Repeat this process until the blue button with the double arrows to the right doesn't take you to any other frame but the first one of the video (in other words, until pressing that button has no more effect). This means there are no I-frames left to jump to.

(Sometimes it can occur that there is no I-frame at the beginning of your next cut in the video but if you save it, the Datamosh effect doesn't occur. In this case you need to manually go to the first frame of the next clip, by pressing the blue button with the single arrow to the right repeatedly until you come to the first frame of the next clip and then select the first frame using the 'A' 'B' method described above and delete it. Even-though this wasn't an I-frame it still can cause the Datamosh effect to not work so every first frame of a new scene needs to be cut out using the method above. )

Here's a picture of the procedure:



Now to save our video:
Under 'VIDEO' choose 'copy'. Go to 'FILE' -> 'SAVE'. Fill in a name and make sure you put '.avi' at the end of it. If it asks you to use Smart Copy, select NO.
And that's it. Play the video back in any video player and the Data Moshing effect should be there, even if you import it into your preferred editing software.

The UI look as you save your video:


SMEARING EFFECT.

An other technique used a lot with the DataMoshing effect is the so called 'Smearing' effect. This is where the picture stands still and the pixels get smeared out. You can see that in the music-video, Evident Utensil by Chairlift. Right at the beginning of that video, in the opening shot, you can see the effect I mean.
This is simply done by copying and pasting a bunch of the same frames after eachother.
First you load in the video you made in the first part of the tutorial, the one with only one I frame at the start of each cut in the video. Then, when you are cutting out the I-frames and you come to the part where you want the smearing effect to take place, you select that frame using the A-B method described above. Now you hit CTRL+C to copy the frame and then you simply hit CTRL+V a number of times to paste the frame in. Paste in at least 24 copies of the frame for one second of smearing effect (depending on the frame-rate of your video of course). When you are done pasting them in continue cutting out the I-frames.
Now simply save the video as mentioned above.
That's all there is to it. The smearing effect will go in the direction of the general movement in that clip. So if for instance the video shows a head that moves upward and in the middle of that movement you pasted in the duplicate frames, then the pixels will smear out the image in an upward movement.
It looks really cool, have fun experimenting with this.

EXTRA TIPS!

Tip 1:
Something that works very well with the Datamoshing effect is having a picture be torn apart by an ink-flow video. Make a little AVI video (with the method described above) which starts with a still picture and is followed by a video of an inkflow (or a shock-wave), like those you get in the RiotGear FX or Action Essentials by VideoCoPilot. Make sure the inkflow is already in full view at the start and not completely black at frame 1.
Watch this little experimental video to see the effect.



Tip 2:
If you want a really glitchy and heavy Datamoshing effect then try also deleting the very first frame of the video. In the tutorial above we leave the first frame intact. If you don't do this then your video will be seen by some players as 'broken' and they won't play it back. Your video will also have no thumbnail with some players (VLC for instance) BUT VLC player will play it back without problems and the datamoshing effect is really heavy if you delete the very first frame too. Try it out and see what happens.

SIDE-NOTE FOR PREMIERE PRO CC (and up).

When preparing a video for the Datamosh treatment in Premiere Pro I have encountered problems when exporting the video (from CC2015) as an AVI file. I couldn't get the 'square pixel' format with the AVI codec. To counteract that I save it as an MP4 file and then open it in After Effects and there I render it out in the AVI format. In the render queue I choose AVI and in Format Options I choose the TechSmith Screen Capture Codec. This codec won't be available to you unless you have Camtasia Screencapture software installed on your computer. However, you can download it for free from their website. Here is the link for the download of just the codec alone: https://www.techsmith.com/codecs.html
(All you need to do is only install the codec, not the rest of the software. Premiere will automatically see it and add it to the AVI codecs.)
In the Codec Settings I set the Compression Control all the way left to Faster Compression to get as small a filesize as possible. AviDemux can crash if you use videos with a very high bitrate.
Now if you don't have this TechSmith codec or don't want to install it from the link above, I suggest you experiment with the different options to find one that allows you to render with high compression and low filesizes, or use a different video editor for the purpose of Datamoshing. If you found a good solution for this problem I'd be interested to hear it from you. Please comment below and tell me how you solved this problem so I can share it in this tutorial.


Okay, this concludes this DataMosh tutorial. If you have any comments or discovered an error in the above text or if you have any questions, feel free to comment either here or on the YouTube video posted in this tutorial.

I have a few AviDemux PRESETS for you to download (for free)  which you can install into your AviDemux software and that will give you the best settings for a few different scenarios. Like best pixel carry-over for slow videos of for fast video movement etc.
You can download those here:
http://www.mediafire.com/download/p4t1h40czeptp04/DataMosh+Presets+Avidemux+2.5.6.zip

You'll need to place these presets in a folder that is normally invisible in Windows:
C: > (your username) > AppData > Roaming > avidemux > xvid
Place the presets in the 'xvid' folder and they should be available under the 'CONFIGURE' tab. Press the 'Configure: Default' option and they'll pop up.  If there is no 'xvid' folder at the above mentioned address then make one and put the presets inside it. That folder is only generated when people make their own presets so if you haven't done that before there won't be an 'xvid' folder.

There is now a Datamosh Plugin available for Adobe After Effects. It costs $39,99 and is available here:  https://aescripts.com/datamosh/

The Datamoshing article on the Toolfarm website is no longer available and it now has a tutorial on it for the Datamoshing plugin for After Effects. Check it out here: http://www.toolfarm.com/blog/entry/datamosh

I found this video tutorial on Datamoshing by NebulousNova on YouTube which was inspired by my DataMoshing article.

OKAY, THAT'S IT!!  ENJOY!! And please, if you want, share the videos you made with this tutorial with me. I would love to see them! Just leave a link in the comments below. Thank you!! ^____^

Some inspiration, LOL  :)

Click here for Datamoshing music video.