ProRes 422 colors in After Effects

| 6 Comments

[Thanks for today's post go to Dan Ramirez, who did the hard parts.]

If you’re working with Apple ProRes 422 media in After Effects, you may have noticed some undesirable color shifts. The most likely cause for such color shifts is the fact that After Effects by default doesn't know how to interpret Apple ProRes 422 media. Specifically, After Effects doesn't know what color space the color information in these footage items is in. When After Effects doesn't know what color space a footage item's colors are in, it has to pick something, and it goes with sRGB---which is wrong for ProRes assets, so the colors are misinterpreted.

Fortunately, it's pretty easy to tell After Effects how to interpret these colors correctly.

The automatic way is to add a set of rules to your interpretation rules file. If you do this, then After Effects will automatically identify Apple ProRes 422 as such and interpret the colors accordingly. (You can also manually assign input color profiles to footage items individually, but trust me: it's easier in the long run to edit your interpretation rules file and let the automagic work from there.)

For information on how to edit your interpretation rules file, see the last section of the "Interpret footage items" page of After Effects Help.

Add the following lines of text directly above the line “# this soft rule should be the last in the list of soft rules”.

# soft rule: Apple ProRes 422 720x480 & 720x486 are SDTV NTSC
*, 480, *, *, "apch" ~ *, *, *, *, "r6nf", *
*, 480, *, *, "apcn" ~ *, *, *, *, "r6nf", *
*, 486, *, *, "apch" ~ *, *, *, *, "r6nf", *
*, 486, *, *, "apcn" ~ *, *, *, *, "r6nf", *

# soft rule: Apple ProRes 422 720x576 is SDTV PAL
*, 576, *, *, "apch" ~ *, *, *, *, "r6pf", *
*, 576, *, *, "apcn" ~ *, *, *, *, "r6pf", *

# soft rule: Apple ProRes 422 HD is Rec. 709
*, 720, *, *, "apch" ~ *, *, *, *, "r7hf", *
*, 720, *, *, "apcn" ~ *, *, *, *, "r7hf", *
*, 1080, *, *, "apch" ~ *, *, *, *, "r7hf", *
*, 1080, *, *, "apcn" ~ *, *, *, *, "r7hf", *

[Note: Be sure to use a plain text editor (like BBEdit or Notepad), not a word processor, to edit this file. Line endings and invisible formatting from word processors can make the file not work correctly.]

The four-character codes apch and apcn denote ProRes 422 HQ and ProRes 422, respectively.

These rules assign ProRes media the appropriate color profile by looking at the vertical frame size to determine whether the media is NTSC, PAL, or HD. You could add a similar rule for 2k assets, etc.

After you’ve made these changes to your interpretation rules file, start After Effects. Your ProRes media will now be automatically be assigned the correct color profile.

Of course, assigning the correct input color profile to a footage item doesn't help anything if you're not using the color management features that use those input color profiles to convert colors into the project's working color space (project working space). You must therefore also enable color management by choosing a project working space. (Choose File > Project Settings, and choose a working color space from the Working Space menu.) For information about color management, see the "Color management overview" section of After Effects Help, and the white paper and tutorials that it points to.

(update: When you render and export the movie out of After Effects, make sure that you've assigned an output color profile that is appropriate for your output. If you're "round-tripping" back to ProRes 422, then you'll probably want to assign the same profile to the output file that you used to interpret the input file.)

6 Comments

Hey Todd,

Thanks for the post. I was hoping this would address some color & gamma shift issues we've been having taking HD ProRes 422 files from FCP6 to AE CS4, doing some compositing in AE, and then rendering out ProRes 422 to go back to FCP6. Try as I might, the steps detailed here don't seem to have any effect on the footage.

Adding the rules to the interpretation file DOES successfully instruct AE to interpret ProRes files using the REC 709 profile, but setting up the project as as a 16 bpc/REC 709 project, and having the ProRes files interpreted thus, still creates the color shift when taking rendered ProRes 422 material (rendered using the REC 709 color profile) back to FCP. I gather from other posts that this has something to do with YUV>RGB color space discrepancies that Adobe has not yet addressed in AE, but since I'm not an engineer I can't be sure ...

Any thoughts or suggestions on maintaining color & gamma values in this workflow would be greatly appreciated. We love working with ProRes but are tiring of running into this problem.

Thanks again,

-Nils

Nils, did you assign an output color profile for the output file to match the input color profile that you used to interpret the input file?

This is a big help, Todd. But I'm still confused by AE ProRes handling. When I shift between an 8-bit project and a 16-bit project, there is a major gamma shift. Any ideas on why that is happening?

This is before I output, it is glaring just watching the canvas as I toggle back and forth between 8-bit and 16-bit.

hi Geoff,

Did you figure out how to work with Apple ProRes in both AE and FCP successfully with acceptable color space resolution? I'm in preproduction on a little art video and researching this.

the post production for video will also need both AE and FCP and i'm considering transcoding hdv video capturing and rendering to Apple ProRes 422.

Any sharing of advise appreciated.

The posted solution didn't work for me, I still have a gamma shift (becomes darker) after viewing the output from After Effects in Final cut. I have changed the color space in project settings and output render que to many different settings with no luck. So I just apply an adjustment layer with a gamma increase of 1.22(using levels effect) in After Effects and render it out in ProRes codec. This seems to offset the problem perfectly everytime. Adding a adjustment layer is just about as annoying/time consuming as setting color space options, so its not that bad of fix considering...I only work in 8 bit..but I would try coming up with a gamma adjustment for 16 bit that works...

I have had promising results with ProResHQ (1080) using following settings.

Interpret: Rec709 (16-235)
Working space: sRGB
Output: Rec709 (16-235)

Round tripping gives accurate results in the canvas.

Leave a comment

About this Entry

This page contains a single entry by Todd Kopriva published on March 31, 2009 10:59 AM.

Rotoscoping in After Effects was the previous entry in this blog.

Adobe After Effects user-to-user forum: tips and links is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.