-->
Register now and get Early Bird pricing for Streaming Media 2025, October 6-8, in Santa Monica, CA! 

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.

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.

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


  • 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.

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.

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.

Jan Ozer's article first appeared on OnlineVideo.net

Streaming Covers
Free
for qualified subscribers
Subscribe Now Current Issue Past Issues