Video Essentials

Learn the Basics of Deinterlacing Your Online Videos


Jan Ozer is an online video expert, author, and a valued contributor to this site. We’re pleased to present this excerpt from his new book Video Compression for Flash, Apple Devices and HTML5.

Figure 1-3. This video frame clearly wasn’t deinterlaced.

Have you ever seen a streaming video that looked like Figure 1-3? I call those slices Venetian blind artifacts, and they are typically caused by video shot in interlaced mode with either inadequate or no deinterlacing. Interestingly, this frame is from a trailer for the movie Little Miss Sunshine, which was shot in either film or progressive video, so the interlacing probably appeared after the video was converted to interlaced for DVD or VHS production.

You can see a subtler deinterlacing artifact in Figure 1-4, which is from a Wal-Mart online video advertisement. Specifically, the jaggy lines on the table and back of the computer indicate that the video was shot in interlaced mode and a poor-quality deinterlacing filter was used. Note how the rest of the video is sharp and clear—it’s just the diagonal lines that are affected.

Figure 1-4. This video frame was either inadequately deinterlaced, or wasn’t deinterlaced at all.

Where do these problems come from? Here’s the CliffsNotes version:

  • Figure 1-5. Two fields combined without deinterlacing.

    Most video was originally shot in interlaced format. This means that each frame consists of two fields, each shot 1/60 of a second apart (that’s in NTSC-land; in Europe it’s 1/50 of a second apart).

  • All streaming files are progressive. This means that the two fields must be combined into a single frame.
  • When combining the two fields, the most classic problem occurs in high-motion shots when there’s a noticeable difference in the position of the subject in the two fields. That’s what you see in Figure 1-5. During the swing, the club head moved about a foot in the 1/60 of a second between when the first and second fields were shot—hence the double image when you combine the fields without deinterlacing.

Deinterlacing filters combine the two fields and apply algorithms to minimize the resulting (usually jaggy) artifacts. You can see this on the left in Figure 1-6. On the right, you can see the same frame, shot with a camera in progressive mode that was mounted alongside the camera shooting in interlaced mode.

Figure 1-6. On the left, two fields with deinterlacing; on the right, a progressive frame that looks cleaner.

These figures lead to several deinterlacing-related conclusions. First, the quality of deinterlaced footage will never be as good as that of progressive footage of the same source. When shooting for streaming, always shoot progressive when it’s available.

Second, when working with interlaced source footage, it’s always deinterlace your source footage before or during the encoding process. If you don’t, you’ll see artifacts like those in Figure 1-3 in higher-motion sequences.

Finally, if you see artifacts like those in Figure 1-4, deinterlacing quality isn’t as good as it could be. Experiment with different deinterlacing settings offered by your encoding tool until you find the one that works best with your source footage. For example, Figure 1-7 shows the options available in the Sorenson Squeeze encoder, with the default (and best) option selected.

Figure 1-7. Deinterlacing options available in Sorenson Squeeze.

Overall, when working with interlaced source footage, be on the lookout for interlacing artifacts. If you see them, try different deinterlacing settings in your encoder, and don’t be afraid to change deinterlacing tools to produce the optimal result.

Excerpted with permission from the publisher, Doceo Publishing, from Video Compression for Flash, Apple Devices and HTML5, by Jan Ozer. Copyright © 2011 by Jan Ozer.




Discussion

Comments for “Learn the Basics of Deinterlacing Your Online Videos”

  1. Since 100% of my product is either DVD or Web distribution, should I just shoot everything in progressive?

    Posted by Stephen Mann | May 24, 2011, 12:32 pm

Post a comment