I thought I would test the new Photoshop’s rotoscoping abilities. On the whole I’m pretty impressed! I might not have to use After Effects at all. One problem is that Photoshop is not smart enough to separate fields with interlaced footage, so you get things like this:

Good luck trying to rotoscope anything out of that. The solution, as others have noted, is to separate the fields first. One way is to do it in After Effects, as explained above. What do you do if you do not have that? You can use open-source tools Virtualdub and avisynth, as I will explain here.
Another minor problem with using videos in Photoshop is that the Save For Web tool tries to read the entire video when you try to save a single frame. It took me ten minutes just to generate the screen cap above! Save For Web huffed and it puffed, only to give up in the end because there was “not enough memory”. I only asked it to save a single frame, and navigated to it on the time line, so what does it need memory for!? After that it only took a few seconds to copy the canvas on to a blank document and save it with Save For Web. I bet Adobe will use this bug to entice people to upgrade to the next version: “New Save For Web…now compatible with video!”
Back on the topic of separating fields for interlaced footage… First you have to create an Avisynth file that looks like this for an NTSC video:
avisource("file.avi")
SeparateFields()
BicubicResize(720,480)
If you are using SD NTSC, as we did, this will create a 720×480 59.94fps video. The last line in the script instructs avisynth to expand the video vertically so that we can re-use the DV codec, which requires the video to be 720×480. Otherwise we would be working on a squished 720×240 video.
Save this script to a file with an AVS extension, open it in Virtualdub, and export it to something Photoshop can understand. The help file says that Quicktime, MPEG-1, MPEG-2, MPEG-4, MOV, AVI, and FLV are supported. Since AVI is merely a video container, you would think that Photoshop could use DirectShow to open any codec, but this is not the case. My understanding is that Photoshop uses Quicktime to open its files, so you are limited to the subset of codecs compatible with Quicktime. Well what are they? After some experimentation, I discovered that AVI files using DV worked, while those using YUY2, lagarith, MSU, JPEG lossless did not.
Once you have opened your file in Virtualdub you need to make note of the mark in and mark out points in Vegas. Go to the Trimmer and change the ruler to use Absolute Frames so you can input them in Virtualdub. You will notice that Vegas uses the time code of the tape by default, while Adobe naturally starts from the beginning of the clip. To make Vegas reset the counter to the beginning of the clip you have to go into the clip’s properties and reset it yourself, as shown below:

Now you should be able to determine the mark in and mark out points easily from the trimmer:

Go to Virtualdub and use Jump to Frame (Ctrl+G) to set the mark in-out points. Since we separated the fields in an earlier step, we need to multiply the frame numbers from the previous step by two to reach the same point in time. To use our example, if the mark in was 151 and mark out was 245, look for frames 302 and 490 in Virtualdub:

Here we used Mainconcept’s DV codec since it is compatible with Photoshop’s video import filter. Note the AVS file in the applications title bar, and that the RGB 16…235 check boxes have been ticked in both the decoder and the encoder. The first (decoder) ensures that the video imported into Virtualdub looks like it does in Vegas. The second (encoder) ensures that the rotoscoped footage looks like it does in Virtualdub.
You should now have a de-interlaced file you can rotoscope in Photoshop.
Image sequences
For short clips, you can make life easier, and get the highest quality to boot, by using images sequences instead of videos. Just load the Avisynth script in Virtualdub and invoke the image output filter from File>Save Image Sequence…. Use the TARGA file format and enter the file output directory, otherwise Virtualdub will litter its own installation folder with images. Once you have generated the image sequence you can import it into Photoshop by using the Image Sequence tick box in the File Open dialog:

Your screen may look different if you use the OS dialog rather than Adobe’s (which allows you to see the metadata). The next step is to select the frame rate, which is actually the field rate in our case. For NTSC it is 59.94.
The final step is to set the pixel aspect ratio. Since we are working with fields, we have half the vertical resolution of a frame, therefore the PAR has to be halved. Therefore, set it to 4:9=0.4444 for full screen and 16:27=0.5926 for widescreen. It should now look like it used to before separating the fields.
Once you are finished go to File>Export>Render Video. If you export to another sequence of images, you can combine the fields using an avisynth script like this:
imagesource(”retouched%03d.png”,000,147,59.94)
assumefieldbased
weave
The first line indicates that the sequence of images to load has file names retouched000.png to retouched147.png.