Intermediate Compositing: Blue & Green Screen
iMovie Tutorial 5

Effect
Plugin
Blue Screen, Smooth
Masks & Compositing



This tutorial assumes you have already read Tutorial 2, and understand how masks and compositing work.

In this tutorial, we will demonstrate how to do blue and green screen effects in iMovie.

What is a blue screen composite?

Also known as chroma keying, or simply keying, blue screening is a special kind of compositing, where the mask is calculated (extracted, or pulled) from the foreground image. Wherever the foreground image is blue, the mask is considered to be transparent. This technique is commonly used when shooting film and video, as a blue screen (hence the name) can be placed behind the subject being shot and some other image then inserted in that space later.

Much of the quality of a blue screen software is due to its ability to extract a clean (i.e. good) mask from real world images, which may have imperfections in the blue areas, or present challenges such as fuzzy objects, transluscent objects, and reflected blue light on the object from the screen.  This is why professional blue screen software costs thousands of dollars.



An image shot against a blue screen.

The mask which the blue screen effect automatically extracts from the image.

A background image to be placed "behind" the object.  That is, composited using the extracted mask.

Steps

Step 0
Open an iMovie project containing a blue screen clip or still and a background clip or still.


Step 1 Place both clips in the timeline, making sure the blue screen clip is first.


Step 2
Select the blue screen clip.  Make sure that the background clip is the same length or longer than the blue screen clip.


Step 3
Select the ss| Blue Screen, Smooth effect.  Adjust the sliders and click on Apply.

Getting good blue screen results is a little more complicated than simply clicking on the Apply button!  ;)

As you adjust the sliders, you will notice that the small preview window changes to display the mask which the effect is extracting.  The quality of this mask will determine the quality of your final blue screen composite.  Understanding what each slider does is very important, so we will take some time here and explain each one.

The Outside Fill controls the blue (transparent) portion of the image.  This slider should be set so that the mask shows only black where the blue is.

The Inside Fill controls the part of the image which is meant to appear as the foreground in the final composite.  The slider should be adjusted so that the mask for the foreground is a solid white color.

The Choke is used to trim away at the edges of the mask.  This is sometimes necessary if the subject edges are not very sharply defined.  For example, if the subject is furry.  You will need to inspect the final composite before deciding how to adjust this slider.

Here are some examples of incorrect settings for the sliders.


Outside Fill is too high (mask).  The background is not solid black.


Outside Fill is too high (composite).  The blue color of the screen is bleeding through.


Inside Fill is too low (mask).  The foreground is not solid white.


Inside Fill is too low (composite).  The background shows through parts of the foreground.

Variations & Considerations

Should I use blue or green screen?

The choice of whether to use a blue screen or a green screen depends mainly on the subject you are shooting.  What is important is that the subject contain as little of the screen's color as possible.  If your subject has green eyes, use a blue screen.  If she has blue hair, use a green screen.

Another color consideration is to use the color which most closely matches your background color.  For example, if you will be compositing against a blue/gray image of sky and clouds, then use a blue screen.  If your background will be a forest, use a green screen.  What this does is minimize the impact of possible blue or green edges around your subject due to a less than ideal mask.

Why does my composite look blocky sometimes?

Because the DV standard (which iMovie uses) was never meant for doing special effects work.

Blue screen compositing relies entirely on the color of each pixel to determine where the edge between the subject and the background is. Since the DV standard is a compressed format, each pixel has a brightness value, but color information is stored only at every fourth pixel. What this means is that every four pixels in a row have the same color (with different brightnesses).  While the human eye may not notice the compression artifacts, these pixels look the same to the blue screen.

This makes it challenging to come up with good clean edges for the extracted mask. The "Smooth" effects in this plugin attempt to compensate for this, but there will always be cases where it is very difficult to extract a clean mask.  This is why there are two blue and two green screen effects in the "Masks & Compositing" plugin.  The plain effects are faster, while the "Smooth" ones take more time to soften the edges of the mask.

Effect
Plugin
Blue Screen
Masks & Compositing
Blue Screen, Smooth
Masks & Compositing
Green Screen
Masks & Compositing
Green Screen, Smooth
Masks & Compositing

How can I make a blue screen?

You can buy commercial blue screens, but if you're spending that kind of money, you should be using an expensive professional video post production system as well.

For the rest of us, any flat surface will do surprisingly well.  The exact shade of blue is not crusial; the important thing is that the screen provide a uniform blue color.  A cloth backdrop, painted wall or sheet of foam core or cardboard, or even a nice blue sky will do.  Dirt, discolorations, folds, wrinkles, shadows and the like will present problems, so make sure you take time and iron the cloth and tape it down so it is nice and flat.

What should I look out for when setting up a blue screen shot?

Some subjects are better suited to blue screen than others.  In general, subjects with well-defined outlines will be easier to extract a mask from, while furry subjects or subjects with loose hair flying around in all directions will prove to be a challenge when it comes to extracting a mask.  As mentioned before, the color of your subject will determine the color of the screen you will use (blue or green).

It is important to set things up so that there is a well-defined, sharp separattion between the subject and blue background.

Make sure your subject is in focus.  If it is not, you will get a blurry outline.  Also be wary of fast movements which may cause motion blur.  If your subject will be moving quickly, consider using a higher shutter speed.  It is not impossible to extract a good mask from a blurred subject, but it is harder.

If you are able to set up lighting for the subject, do so.  When lighting, make sure that the background blue surface is uniformly lit, avoiding shadows if possible.  If necessary, shadows can be avoided or moved away from the subject by moving the blue screen farther back.  Also, consider rim-lighting the subject, so that there is a bright outline which stands out from the background.  A yellow rim-light against a blue background is quite effective.



For more tutorials and information about iMovie plugins, please visit www.stupendous-software.com