What do you do when your QuickTime movie has ugly artifacts around the borders? Use QuickTime Pro’s unlikely Mask feature to slice ’em off. Here’s how.
For the recent O’Reilly Digital Media feature on composing music for mobile games, author Peter Drescher sent several movies of expert gamer Lucas Finklestein playing on a T-Mobile Sidekick. Due to the camera position, though, the movies had enormous black borders. Not only did that look strange, the borders bloated the file size. (See Figure 1.)

Fig. 1: The original movie had big, ugly black borders, but QuickTime Pro’s Crop command snips out time, not area. What to do?
It would be nice if QuickTime Pro let you crop a movie by dragging the edges inward. But the actual solution is to cover the borders with a white mask. Once you do that, the movie shrinks to the size you want, and you can export it as a new movie. I shrunk the file in Figure 1 from 8.8MB to 2.7MB.
Choosey Mothers Choose GIF
To begin, I copied a single frame of the movie by scrolling to the spot I wanted and then pressing Command-C. (You can also use QuickTime Pro’s export command to export the frame as a PICT file.) I then pasted the frame into my graphics editor, Macromedia Fireworks.
Next, I set Fireworks’ canvas color to white and drew a black box over the part I wanted to keep. (See Figure 2.) Then I deleted the photo layer and exported the black-box-on-white-background as a GIF.

Fig. 2: After copying a single frame of the movie and pasting it into Fireworks, I drew a black box around the part I wanted to keep. (I made the box gray and semitransparent in this screenshot so you could see the background.) UPDATE: See comments below for more detail on this step.
Back in QuickTime Pro, I pressed Command-J to open the Properties window. Then I selected the video track and imported the GIF mask file. (See Figure 3.)

Fig. 3: In QuickTime Pro, open the Properties window, select the video track, and then choose your mask file with the Choose button.
As soon as you import the mask, the metallic QuickTime Player frame closes in like the Death Star trash compactor. (See Figure 4.) It’s just a cosmetic change, though, because simply saving the movie won’t change the file size. To make the cropping permanent, you need to export the movie. I opted to use stronger compression to shrink the file more.
Fig. 4: With the mask in place, the QuickTime frame has closed down on the hapless black border.
QuickTime Unmasked
You can see the final movie on page 2 of Peter’s article. Note that the mask I used there is rather oblong, because the camera jumped to the side partway through the movie. I could have split the movie into two files, applied custom masks, and then recombined the halves, but the morning birds were already singing.
For more QuickTime masking tricks, see Dan Slagle’s article (which includes downloadable masks), or this one where the editor used a mask shaped like a football for a special effect.


This was amazingly helpful. Thank you so much.
Thanks - was a good hint for me...
I don't often leave comments but this little tip has saved me loads of time and money. I scoured the net and I think this is the only place that actually explains the technique properly.
Thanks a million...
Quite nice indeed... Been holding off on upgrading to Quicktime Pro for awhile but this was enough to make me pull the trigger. Thanks!
Thanks for the tip -- it's simple once you know how it works. Thanks again!
!!!!!! Cripes! I made some projects in iMovie DV instead of DV Widescreen, and I've been looking for hours to figure out how to crop out the black bars. Wow, this was simple, and perfect. I'm going to go buy an O'Reilly book of some kind to pay you back for this. Great!
Ok, thats a cool trick but now can I go the other way with it?
I am making a movie in iMovie and iDVD but I have run into the TV safe area problem. Could I just add a black border around the whole movie effectivly shrinking the movie to with-in the TV safe area?
THAT would solve my very stressfull situation as the DVD has to be ready in a just a few days!
Nathan: Try this, using a rectangle that's larger than your movie but with the same height-to-width ratio: http://www.oreillynet.com/pub/a/oreilly/digitalmedia/2006/09/29/two-slick-quicktime-tricks.html
Nathan (2): You might also check out the plugins at iMoviePlugins.com; Minify (just $2.50!) looks like it will do exactly what you need.
The solution above sounds incredible.
However I don't have Fireworks or know how to "set Fireworks' canvas color to white and draw a black box over the part I want to keep. (See Figure 2.) Then delete the photo layer and export the black-box-on-white-background as a GIF."
Huh?
Any solutions using basic Mac software or something in Adobe Creative Suite? Also what exactly are you doing with a black box with a white background? The pic shows a big black background. Is it supposed to be a black or white background? I'm a little confused.
Any more explicit step by step for people not familiar with graphic editors? Would a Photoshop work? Is that a graphic editor as well or just a photo editor.
Sorry don't have the assumed knowledge to take advantage of this solution, I fear. Any additional thoughts? Sure I'm not the only one with this problem who read this and didn't know how to do it. And don't have Fireworks.
@andintroducing: Thanks for asking. I see how Fig. 2 could be confusing. What you want to produce here is a black box with a white border, as seen in the bottom left hand corner of Fig. 3. It will look a bit like a film slide. (You can also make a white box with a black border and then hit the Invert button in QuickTime Player, but I digress.)
When you insert this black-on-white graphic into QuickTime Player as a mask, QTP will hide the parts of the image that lie under the white areas.
Almost any graphics program that lets you draw boxes will work to produce the mask. You can simply substitute “Photoshop” for “Fireworks” in the Fig. 2 caption. I like Fireworks (which is now a component of the Adobe Creative Suite ;-) because it’s like a streamlined combination of Photoshop and Illustrator, offering both vector and bitmap tools.
Generically, you can make the mask by copying a frame of the movie (Command-C), pasting it into a new graphics document (Command-N, Command-V), and then drawing a black box over the part you want to keep and white rectangles over the parts you want to hide.
Thanks alot!
I don't know why qt doesn't just have a cropping tool. Thanks for the help.
Thanks - really helpful, followed the instructions using Photoshop to produce the GIF with no problems at all. Anyone who isn't used to using photoshop might want extra instruction:
When you've copied your video shot to your clipboard, open a new file in photoshop and set the background to white and the dimensions the same as the original video. Paste in your video shot to its own layer, add a layer on top of that and draw your black box over the area that you want to keep in your video. Make the video shot layer invisible or delete it, then choose 'save as' and save it as a GIF with all the default options. Allow it to compress all layers and discard hidden layers. Then follow the other instructions above for using this as the mask in quicktime pro.
Thanks!