Archive for January, 2009

22
Jan

Fixing Quicktime’s Gamma change

I’ve noticed that Quicktime with an H264 codec has this nasty habit of changing your video’s gamma.  I’m not sure what the cause of this is.  It might be my settings, it might be my computer, it might be whatever LUTs are being used, but I know it’s NOT my monitor.  I have also reproduced the results on multiple computers, both mac and pc.

To measure this, I first made a test card to render out.  The values shown are the actual pixel values.

card

Then, I rendered it out (of After Effects) into a quicktime movie using H264 and used ColorCop to meaure the new values. Next, I graphed the input-output results to get the gamma curve.

qt_color

Using this information, I used a levels effect to create a compensation for the change imparted by the codec.  The results after the correction are shown in red.  Very close, but not perfect.

car_qt

This is what the correction looks like on a normal image, it makes it darker:

card_adjust

Here is the After Effects Preset I made to compensate for this.

QT_H264_Gamma_Fix.ffx

Hopefully I will eventually find out exactly why this is happening and fix it in a more elegent way.

13
Jan

Intro to 3D Animation