Showing posts with label datamoshing. Show all posts
Showing posts with label datamoshing. Show all posts

2/23/2010

Compression art: visualizing the obscured


Demolish the eerie ▼oid. Music composed by Extraboy.
Extraboy used a rain vst, PIPPO vst and C64 noise to compose a complimentary soundscape.

████ Infinitely pliable, yet holding shape
Especially over the last century communication has been striving to become increasingly fast and transparent. As a result the concept of immediacy has become one of the key words of this period (at least for media theoreticians).
To answer this wish for acceleration the transfer of information and information objects themselves have been forced to change. Digital compression technologies are used to encode files into fewer bits (or other information-bearing units), to travel faster and further. These compressions reorganize the relations inside and between the data of for instance sounds and images by means of scaling, reordering, and decomposing. Compressions also reorganize the context, time and space of information; basic values on which communication used to depend.

Compression
The language or taxonomy of digital compressions is horribly complex. Looking at a file, first of all there is the file format, which is a ‘container’ of for instance sound and image (think about mpeg, avi or mov). This container possesses the meta-information about what type(s) of compression-decompression protocol(s) - the codecs - are needed to store and transfer the information or to view the data object. This container however does not posses the compression algorithm itself (.avi is thus not a compression but only a container!).
In the second place, a file depends on the specific compression-decompression protocols (codecs). These protocols can in their turn be divided into two groups: lossy and lossless. Lossless compressed files can be rebuilt exactly the way they were before they were compressed; they have retained all information while being compressed. But while in the beginning the development of new audio and video technologies were focusing on the improvement of sonic quality, by for instance the reduction of noise, recent developments seem to lead to a reversal of this trend. Lossy compression has become almost ubiquitous, whereas original (RAW and lossless compressed) information is mostly absent and relatively obese, especially in the realms of digital music, photography and cinema.
New lossy data compression technologies, such as the mp3 data format have made it possible to distribute music easily, but in lower quality than the CD. Lossy data compression takes a distance from the original file. This compression focuses only on the data that is important for the eye and/or the ear to perceive, and discards the information that is believed to be of lesser importance. For video images for instance, perception depends on the thresholds of luminance (brightness) and chrominance (coloring) in space and time. Therefore, video codecs are based on and centered around the transmission of these two values as efficiently as possible.
Most compressions and codecs are relatively concealed; they rarely come to the surface to reveal their true nature - their system of rules. They have been build and rebuild a thousand or more times to be as transparent and invisible as possible. However, as I also wrote in the Glitch Studies Manifesto, the dominant, continuing search for a noiseless channel has been, and will always be no more than a regrettable, ill-fated dogma.
Even though the constant search for complete transparency brings newer, ‘better’ media, every one of these new and improved techniques will always have their own fingerprints of imperfection. Thus, every compression technology will have its visible, or less visible artifacts, that sometimes come to the surface.

Compression art
While some artists believe that lossy compressions harm their work, since these compressions essentially chop away pieces of information, other artists feel that compression is a necessary part of the character of their canvas. They believe that these rigorous forms of compression add certain artifacts that materialize the inherent character of the digital canvas; they (re-)visualize the obscured. The music label 20kbps for instance, is dedicated to low compression music releases; they advertise the extreme low of 20kbps instead of the already low-end musical standard of 128 kbps.
Johan Larsby also investigated the question of how to apply compression effects to audio. He came up with these results (1 and 2). I especially like the fast degradation by feeding back the compression into itself - reminds me of Seb's I am sitting in a room and Universes' digital decay experiments.
In 2002 Ana Kronschnabl released George The Mewvie (2002), which features her cat in extremely poor compression under the header “new films for new machines”. This film gives an impression of what the final film would look like, once it had been encoded and compressed for streaming through a 56K modem, which was the standard at that time. The three-minute long video shows a brown, blocked away moving and purring cat.
The RyBN audiovisual-art collective from France also makes use of lossy artifacts. They describe themselves as specialized in the “realization of installations, performances and interfaces by referring [...] to the codified systems of the artistic representation (painting, architecture, counter-cultures).” RyBNs Monochrome performance for instance, takes place in total darkness and consists of only black sequences extracted from various DIVX movies. The saturation parameter (color intensity) of the black video channel is linked to the sounds master volume. During the performance, the saturation becomes higher when the volume is turned up. This makes several blocks emerge from the previously black screen that obtain their form and dirty yellow greenish color from the DIVX compression codec.
Works like George The Mewvie and the Monochrome performance are not always aesthetically engaging; at times they only show very slow moving blobs. But this (lack of) visual pleasure fits well with the critique they voice towards the progression of digital technologies and the common opinion that digital communication is supposed to be fast, perfect and clean: the dogma of instant pleasure. In the Plugin Manifesto Kronschnabl and Tomas Rawlings instruct the reader to:

Use codecs and compression creatively: There are limits to film online. Size should be limited and there is always the ‘problem’ of compression. But the trick is to use this problem in a creative way and play with it.
Kronschnabel and Rawlings continue their argument by stating that the user should investigate the tools created for the internet and explore what he can do with these technologies in creative terms. Because, as the Camera and the celluloid defined the film in cinema, technologies like codecs and compression artifacts will define the material of the digital (internet) film.

Macroblock studies: research in the digital material of film.
The lossy compressed video image is framed fundamentally different from analog or RAW video footage. First of all, the frames no longer rely upon raw pixels. Instead, macroblocks have become one of the elementary components of the lossy compressed moving image (at least under current standard codecs of, amongst others, the Moving Pictures Experts Group ‘MPEG’). Lossy compressed video often depends on luminance (brightness) and chrominance (coloring) thresholds arranged within 16x16 pixel (more or less) macroblocks within the keyframes (the I-frames) of an image sequence. The thresholds (or frequencies) of chrominance and luminance depend on an oscillating cosine function (following Fourier Transform).
Moreover, the material of the digital film is no longer based on a linear series of discrete images (a sequence); instead the video consists of different kinds of frames (I-frames or reference/key frames, P-frames or forward-predicted frames and B-frames or bi-directional frames), of which only the keyframe possesses a complete matrix of macroblocks. The frames between the keyframes (the P- and B-frames) consist of motion vectors that index only the difference in position (the offset) of the macroblocks between the original and the next frame. The handling of space and time within the video technologies is thus significantly different between the linear analog or RAW footage and lossy compressed footage.
Just like any other technology does, these new digital technologies posses their own specific artifacts. A couple of these artifacts are for instance “macroblocking”, “mosaicking”, “pixelating”, “quilting” or “checkerboarding”. And as is normal with any new technology, there is a growing group of (video) artist exploring these different artifacts of this new and constantly changing digital canvas.
A recently popularized wave of video artworks was based on the deletion of keyframes and the exploitation of the vector motion of P-frames. I described this current, which is dubbed datamoshing, pixel bleeding or just compression art, in some earlier posts.
A bit more obscure (partially because maybe the results are a bit less magical) is a related strategy that doesn’t rely on the deletion of keyframes and the exploitation of motion vectors, but on the exploitation/bending of chrominance and luminance algorithms of the Fourier Transform thresholds of the macroblocks. This method visualizes the otherwise mostly obscured macroblock structures of digital video.
The non-technical term macroblocking thus refers to compression/noise artifacts in lossy compressions, that shows up when for instance some data of chrominance/luminance is broken, the FTT cosine function itself is bended or some video image data is for instance edited in a hexeditor.

██ Demolish the eerie ▼oid
In "Demolish the eerie ▼oid" I exploit macroblocking, by opening a DV file in texteditor and playing around with the code.
What became clear to me is that multiple things can happen – and I am not sure (yet) what pieces of code trigger what results. In one of the first tries I encountered some quite mystifying, but nice new organizations of color (chrominance) structures. The matrix of macroblocks is still completely intact but the chrominance values are ... off.
transcoding demolish the eerie ▼oidtranscoding demolish the eerie ▼oid
The structure of the video is still intact - you can still recognize me when you look very close/pay attention. The extreme color shift make it hard though.
biofreakbiofreak
The matrix of macroblocks holds some puzzling but pleasantly surprising opportunities. It can also be rearranged.videoscapesvideoscapes2
But most of the bends have the more usual outcome: a carnival of macroblocks and an ambient landscape of noise, flickering back and forth, confused and agitated about its proportions.RAM Movie Clipping 19RAM Movie Clipping 23And to finish a dessert of mess: when I open the file in VLC player, I got some nice RAM glitches when change the size of the videoscreen.
The data of the file is so high that the player can only show the image with parts of what is still in the buffer.

██████
Kronschnabl, Ana, and Thomas Rawlings. Plug in Turn on: A Guide to Internet Filmmaking. London: Marion Boyars Publishers Ltd., 2004.
Mackenzie, Adrian. “Codecs.'' In: Matthew Fuller, ed. Software Studies. Massachusetts: MIT Press, 2008. p. 48-55. p. 36
Mackenzie, Adrian. "Every thing thinks: sub-representative differences in digital video codecs". Institute for Cultural Research
Mackenzie, Adrian. "Codecs: Encoding/decoding images and sounds"

The music label 20kbps can be found here
ARTKILLART / CIMATICS.BE. AKA/CIMATICS.
monochromatiq. “MONOCHROME.” INCIDENT.NET | MONOCHROME |
TUBE:MONOCHROME | RYBN.ORG.

Special thanks to Emilio Pozzolini, euphotic/Al Astakhov and Extraboy/Anders Carlsson.

12/31/2009

The end of new years resolutions

As the end of the year comes, so must the resolutions of last year (.../end). I kept this video back because I wanted to remake it; I believe it could and should have been better. But I leave this promise as part of a solution to move on. -next year will be full off.,, ..new differences/mistakes and me doing more and better-wrong.
This is what is left over on the old years' plate. Eat it with a kiss for new years!

The video is made with some regular datamoshing, while some of the sounds, especially in the end (music by Extraboy***!) are raw data files.

2/21/2009

How to create compression artifacts [ Datamoshing ]






by mr datamosher


Vectorpunk [is also over according to mr O'Reilly]

[rest of this post is written with info I got from George Gardiner]
Although I just learned that Datamoshing is over, I want to quickly describe how you can make it happen, to late. So here we go,

When a video is encoded, each frame is stored as an I frame or a P/B frame. An I frame [Sven Konig calls them ∆-frames] is like a JPEG image, it holds the still image (that frame) in its entirety. P and B frames are the smart frames that allow videos to be compressed. They store only the differences between the current frame and the last frame. The effect you see in the datamosh videos is what happens when you store only the differences between frames, ie. when there are no I-Frame references.

Here is how you can do it the hardcore way:
1. Get your video in MPEG4 format, XViD or DIVX is fine.
2. Save it as an AVI file
3. Download a HEX editor and open the AVI file with it. (http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm is good, and free) You'll see a lot of numbers and symbols. This is the raw video data.
Each video frame in the AVI file will start with the code 00dc, you can search for these in the file (there will be a lot!). About 1 in 25 of these will be an I-Frame (though this depends on things like what quality you saved it at, etc). An I-Frame can be identified by the HEX string 00 01 B0 01 that will appear about 5 bytes after the 00dc frame start marker.
4. These are the frames you need to nuke. I think you can just hold delete until all the data is gone, and the next 00dc, or 00wb moves into its place.

Some notes:
1. NOT ALL VIDEO PLAYERS WILL LIKE YOU DOING THIS! It is a hack afterall, what you're really doing is breaking the video. After removing the I-Frames with this technique, the first thing you should do is use something like VLC to convert it back into an un-broken format. When you do this the visual effect you created by removing the I-Frames will be preserved, but VLC will insert new I-Frames so that all video players understand how to play it back (some throw a fit when they do not find the data they expect, others like VLC will carry on regardless). This is very important if you want to then upload to YouTube as it will probably not accept a broken video.
2. Should go without saying, but keep a backup of your original video before you start.
3. As you are removing video frames, you'll also loose audio sync over time. Best thing to do is probably put the audio on after you've finished.
4. You may get some interesting effects by keeping some I-Frames, eg. syncing the frames you keep to a beat or something?


[[edit"" this following method does no longer seem to work, probably because of a new version -> the youtube way does still work so try this instead!]]
Here is how you can do it the
less hardcore way:
Use
the program called VirtualDub. You need to use MPEG4, (DivX or XViD).
VirtualDub allows frame-by-frame direct editing, which allows you to delete the I-Frames (note: VirtualDub calls them Key Frames). As long as keyframe reconstruction is turned off you will produce the same effect with no nasty hex editing required. [[edit"" this method does no longer seem to work, probably because of a new version -> the youtube way does still work so try this instead!]]

There should be other ways that are even more easy (or hard), but these are the cool ways! Oh no, its over. We need something NEW !

2/19/2009

From compression artifact to filter >> commodified effect!

An archeology of a compression filter. (or from noise artifact to filter)
A couple of months ago I was approached by a company that asked me for my knowledge on glitch and compression artifacts. They were especially interested in recreating bleeding pixels. I recognized their ideas in the work of Sven Konig and send them to his website (on which in 2005 already, Sven published a script that can be used to create such artifacts
). Later the company send me an email that said they unfortunately cancelled their project.
I made my own video (and later another) though, and send it to Goto80, but in the end we also decided it seemed boring to just reuse a technique developed by somebody else - because it feels no longer as an experimental glitch, but more like an commodefied effect.
I kept track of the bleeding pixel effect and noticed its growing popularity, especially over the last few weeks. This lead me to write a small archeology of this particular compression artifact.


The bleeding pixel effect (or datamoshing) is located in a realm where compression artifacts and glitch artifacts and digital effects intertwine. The artifacts caused by compression are stable if triggered on purpose, but for the human eye quite unpredictable. Therefore, technically, they are not a glitch because the method is
explainable and reproducible. They are however often perceived as a glitch (an error)- also because of their parallel existence within the realm of broken television signals and by artists used metaphorically as glitch art. The bleeding effect relies on deleting the information within one frame (the keyframe) which can be found once per 25 frames (more or less, depending on the frame rate) in a divx, xvid (or WMV) video.
I think the most interesting thing about using this effect is that it shows the materiality of digital film - it metaphorically translates the grain of the celloid to the digital pixel. Besides this, the what now has become an effect or commodity (most clearly because it has become an MTV aesthetic introduced by Kanye West), clearly lays bare the ever existing tension between what is a glitch and what is a reproducable glitch effect or commodity?
Here is a timeline. I know there are more works out there, but these works seem (for different reasons) more important or referenced too.


Sven Konig.
aPpRoPiRaTe!, 2005
Online distributed software script made to appropriate complete video files found in file sharing networks with minimal effort.

In 2007 Sven and Bitnik collaborative project Download Finished saw the light of day. Download Finished is a website that "transforms and re-publishes films from p2p networks and online archives. in Downloaf Finished, found footage becomes the rough material for the transformation machine, which translates the underlying data structure of the films onto the surface of the screen. the original images dissolve into pixels, thus making the hidden data structure visible. through Download Finished, file sharers become authors by re-interpreting their most beloved films."


Takeshi Murata
Monster Movie, 2005
Single channel digital video on DVD 4 minutes;
sound by Plate Tectonics. lo-fi version on Youtube


Paul B. Davis
(collaboration with Jacob Ciocci/PAPER RAD)
“Compression Study #2”, 2007
DVD projection (edition of 7), also on Youtube


David OReilly
Compression Reel, 2008
Vimeo Video


Data Mosher
Chairlift - "Evident Utensil" Music Video, 2009
Vimeo Video


Nabil Elderkin
KANYE WEST "Welcome To Heartbreak", 2009
Vimeo Video



Datamosher
How to Datamosh - Datamosh tutorial, February 2009.

 

Yung Jake 
Datamosh, May 2011. 

Since the release of the last three videos (by O'reilly, Chairlift and Kanye), there has been a lot of back-and-forth comment-talk on who was the first to use this effect. The Kanye video will not even be released because "there is another video out there using the same effect". Even so, most of the video makes seem to be quite nice to me and didn't get me tired of the effect yet.

Another couple of works that I really like but didnt index (due to lack of info) are by Antoine Catala and Cosmosabravo


It is only a matter of time before we will see that this artifact develops into a script, like we have seen with much praised image-glitch plugins and browsers like glitchbrowser (2005/2008) developed by dimitre, ant scott, iman moradi.
Then this enchanting artifact will be changed into just another default preset or cultivation.


Update (1): Datamosher just released a datamoshing tutorial

Update (2)(Sept 2010): Vade and Tom Butterworth have developed plugins to use this effect in VDMX and Quartz composer. UCNV created a github page that is dedicated to datamoshing avi files and Eric Souther  made a MAX MSP patch.
These are just a few to choose from if you want to automate your datamosh effect!