First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Troy Dreier

This article is an excerpt from Real World Video Compression, written by Andy Beach and just published by Peachpit Press. It's a truly outstanding book for online video newcomers and veterans alike.

Most digital video is interlaced when it’s created because it is assumed that at some point it is meant for playback on a standard TV. This will not always be the case, and the trend toward progressive (noninterlaced) video will continue; however, for now, most of the clips you compress will come to you as interlaced video. Because interlaced video is unacceptable for Web delivery, deinterlacing video for playback on the Web or other progressive displays is a fundamental and necessary step.

If the source video is left with interlacing lines intact, the output will appear as jagged lines. The lines do not make for a good viewing experience and are also difficult to encode for a couple of reasons. Because moving objects will keep merging and reassembling (the two fields moving out of step), motion estimation will become difficult, making the encode very inefficient. The interlaced image will also have more detail than is necessary to display the image, so additional bits are wasted when relaying this redundant detail.

You can perform a deinterlace in several ways. Each is designed to optimize different types of images and different types of motion within the video. All in all, there are approximately eight ways to perform a deinterlace, though those eight have several different names by which they are recognized, depending on who you are working with.

  • Blend

    The first common deinterlace method is referred to as blending, also known as averaging and combining fields. This method involves both fields being overlaid. This method gives you good results when there’s no movement, but it results in unnatural, low-quality movements. The advantage of this approach is that it’s a fast way to deinterlace and is good for low-motion scenes, such as interviews, but you will get ghosting every time an image moves.

  • Weave

    The next commonly used method is weaving, which shows both fields in each frame. This method basically doesn’t do anything to the frame, leaving you with jagged edges but with the full resolution, which can be good.

  • Area-based

    Next is area-based deinterlacing, which blends nothing but the jagged edges. You do this by comparing frames over time or by space/position. It gives you good results in quiet scenes with little movement, because in those circumstances there is nothing to blur.

  • Motion Blur

    The motion blur method blurs the jagged edges where needed, instead of mixing (that is, blending) them with the other field. This way, you get a more film-like look. You may have to apply Motion Blur with a program such as Apple Final Cut Pro or Adobe After Effects before using a compression application.

  • Discard

    With the discarding method, you discard every second line (leaving the movie at half the original height) and then resize the picture during playback. Because this is the same as skipping Field 2, Field 4, Field 6, and so on, you could also call this Even Fields Only or Odd Fields Only. Although you won’t get artifacts from trying to blend or merge the images, you’ll lose half the resolution, and motion will become jerky.

  • Bob

    The bob approach displays every field (so you don’t lose any information) one after the other (that is, without interlacing) but with double the frames per second. Thus, each interlaced frame is split into two frames (that is, the two former fields) at half the height. Sometimes bobbing is also called progressive scanning. However, since the bob approach doesn’t analyze areas or the differences between fields, the two approaches are not really the same (see the next section).

  • Progressive Scan

    Progressive scanning analyzes the two fields and deinterlaces only the parts that need to be deinterlaced. The main difference between progressive scanning and area-based is that progressive scanning gives you a movie with twice the frames per second instead of the standard 25 fps or 30 fps movie, thus leaving you with perfect fluidity of motion. To say it more academically, it has high temporal and vertical resolution. This method is also variously called motion-adaptive, bob and weave, and intelligent motion-adaptive.

  • Motion Compensation

    The motion compensation method analyzes the movement of objects in a scene, while the scene consists of a lot of frames. In other words, it involves tracking each object that moves around in the scene, thus effectively analyzing a group of consecutive frames instead of just single frames. Although effective for horizontal motion, some software for this technique does not handle vertical motion at all and may fall back on selective blending or other techniques when it is unable to resolve the motion vectors.

Excerpted from Real World Video Compression by Andy Beach. Copyright © 2008. Used with permission of Pearson Education, Inc. and Peachpit Press.

» Level Intermediate

Added: 2009-01-28
Rating: 1 Votes: 1
» Author
Flash Expert
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.