Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Color hue shift after export in After Effects CS5. (Not Gamma problem) How to fix?

  • Color hue shift after export in After Effects CS5. (Not Gamma problem) How to fix?

    Posted by Shoukei Tam on November 18, 2017 at 8:16 am

    Hello!

    I’ve been struggling to fix this problem for a long time. Here is what I’ve been experiencing:
    Whenever I export my videos using After Effects, the colors of the video will always turn out to have a different hue and saturation.

    The change in colors are exceptionally noticeable in the green and red colors in the video. In the image above, the screenshot on the left is from the original video and on the right is an MP4 h264 version of it exported out of After Effects. Notice that the red color of the arm(left) has a more yellowish hue making it look orange(right). Whereas the green color of the jacket (the thing that the fist is punching) has a more bluish hue and looks darker compared to the original. The original video is a 25.8GB lossless MOV file that was exported out of Adobe Animate CC using the “Export Video…” option. The MP4 is exported with using 8-bit Project Setting and no Color Management.

    I’ve tried different codecs in After Effects but they all produce the same color-shifted result. I’ve also tried exporting it with the different After Effects Color Management and Working Space settings but all that also produced the same results except for one Working Space, namely “Apple RGB”, that produced a close color hue which was still different from the original colors. The only export format that preserves the original colors is .AVI lossless (probably because there are not codecs used) but the file size is too big for me to work with or upload to Youtube. I’ve also tried encoding the lossless file in Adobe Media Encoder hoping to get a smaller-sized video file without any shift in colors but the output was exactly the same as when I exported it using After Effects.

    I’m using After Effects CS5 64-bit with Windows 8.1 Pro 64-bit. As for hardware(might not be relevant but just in case), I am using Intel Core i5-2400 and Zotac NVIDIA GeForce GTX 1050 Graphics Card. Thinking that it might be a problem with my computer, I even used my brother’s computer to do an export of the video but the output still had the same color shifts. My brother’s computer has Windows 10 and he uses After Effects CC 2017. So I guess it’s not an After Effects version issue.

    Can anyone tell me what is causing this color change and how I can export my video with After Effects without any color change in other video formats besides lossless?

    -Shoukei

    https://jessthedragoon.aarqee.com

    Eugene Vdovin replied 7 years, 9 months ago 3 Members · 19 Replies
  • 19 Replies
  • Chris Wright

    November 19, 2017 at 6:37 am

    I don’t know exactly what is going on, first guess would be 16-235 from 0-255. what media player are you using to playback? does it look the same if you use VLC with openGL video output enabled or when you import it back in again?

    as a last resort, you can also create a correction lut with iwltap, a free lut generator. just render out a corrected palette trillions of colors as a png and then click generate lut.

  • Shoukei Tam

    November 19, 2017 at 9:05 am

    Thanks for the reply guys!
    @Dave
    I don’t think compressing files is to blame. I’ve tried exporting the .MOV lossless with Avidemux into the same MP4 H264 format but the colors didn’t change.
    @Chris
    I use VLC to play the video files. The screenshots here were taken from VLC playing those files. I practically searched the whole internet to find the solution (or at least the cause) and what I found was the color space (or color matrix?) of the exported video was not BT 709. So I tried exporting the lossless video into a MP4 h264 in ffmpeg command prompt with the colormatrix=bt601:bt709 setting and there was no color change in the exported video. I’m not sure if color space has anything to do with “16-235-from 0-255” you mentioned.

    I discovered something else last night. I played the MP4 with wrong colors on my Lenovo laptop(also has an NVDIA graphics card) and the colors looked correct! I even test-exported the .MOV on my laptop using AE and the exported product had the correct colors too! However, when I uploaded the exported MP4 to Youtube from my laptop, the colors looked incorrect on Youtube on my laptop, but correct on Youtube on my computer. I played the MP4 converted on my laptop on my computer and the colors looked correct on my computer. I couldn’t be any more mystified.

    I imported all those exported videos back into AE and the colors are as they look on VLC. Can this still be a problem with AE? Or system graphics settings on my devices??

    -Shoukei

    https://youtube.com/jessthedragoon

    Dave Helmly

  • Chris Wright

    November 19, 2017 at 5:03 pm

    imho, its the playback device, not the encoder that is causing the issue.
    Did you make sure that VLC’s playback output was seting to OpenGL?

    there’s metadata inside the codec called 16-235 that will change the hues.
    quicktime and vlc often read this metadata and change the playback output.
    After Effects ignores the metadata. That is why it looks correct with it.

    Youtube is a separate issue, although related slightly.

    To recap with instructions:
    1. set your graphics driver to 0-255 in its control panel.
    2. fix VLC with video output ‘openGL’, or strip the metadata for quicktime player with JES extensify
    It will strip the quicktime gamma atom tag. Go to color settings and tick allow changes. Remove both the Ganma and Color. Goto Manual and then press update to apply the changes.
    https://download.cnet.com/JES-Extensifier/3000-13631_4-76083103.html

    3 youtube click re-touch panel, don’t save it after the retouch then cancel, it will transform it from 16-235 to 0-255. it will fix the colors in a few hours.

    4. if youtube ‘fix’ still doesn’t work after a few hours, I made a reverse lut that has worked for a lot of people that will make the image temporarily darker, then youtube lightens it again.

    fixmyyoutube lut download
    https://f1.creativecow.net/10598/fixmyyoutube

    it doesn’t work with adjustment layers directly
    you have to use it in the dropdown for the export in adobe media encoder. or you can NEST it first.
    its a premiere bug.

    also it needs to be copied in both premiere-lumetri-technical and adobe media encoder-lumetri-technical

  • Shoukei Tam

    November 20, 2017 at 3:04 pm

    In VLC, after setting the Output setting from OpenGL to Automatic the colors were still off. I updated my VLC thinking that it could be a player version issue. After updating it, there were a few changes in its settings. In the new version of VLC, there is an additional setting called “Use hardware YUV->RGB conversions” on top of the OpenGL setting. Since it is a color issue I’m experiencing, I decided to uncheck that option and the colors displayed correctly!

    Thank you for pointing me to the output setting in VLC, Chris.

    Now that this problem is practically solved, I could just move on from here but there are still a few questions I’d like to address:
    1) Some videos that I convert using other video encoders like Avidemux don’t have this color issue with the “Use hardware YUV->RGB conversions” option enabled or disabled. How come this setting affect videos converted using After Effects?

    2) I did further testing to the AE exported versions by importing them back into AE (as you suggested earlier, Chris) and the colors looked incorrect – like in the screenshot on the right in the image I posted earlier. But when I export it again after importing it, the colors look correct on VLC. Versions exported by other video encoders show the correct colors when imported into AE. Here is a screenshot of the video codec info of the exported videos imported into AE.

    The infolist on the left is the codec info of the AE exported video, which shows incorrect colors when imported back into AE, whereas on the right is the codec info of one that was exported using FFmpeg command prompt, which shows correct colors when imported into AE. It seems like a display problem in AE. What is causing this and how do I get AE to display the colors correctly?

    -Shoukei

    https://youtube.com/jessthedragoon

  • Chris Wright

    November 20, 2017 at 4:19 pm

    Without a color bar test with ffmpeg, I couldn’t say if it encodes 16-235 or 0-255.
    AE with no color management encodes 0-255 directly from your monitor’s OS calibration.
    you can fiddle with AE to use color management 16-235, 0-255 sRGB or effect utility profile converter to burn in relative pixel colors, but that would be a last resort as you start to muddle the issue which is usually a bad video player.

  • Shoukei Tam

    November 21, 2017 at 2:28 am

    I tried simulating output but the different color management options only affect the brightness and gamma of the video. The colors still look off. Utility profile converter uses the same working space options as color management so I guess it won’t be any different from trying color management.
    I never use color management at all in After Effects and is turned off by default. My NVDIA Graphics setting is already set to 0-255 so I guess AE already renders my videos in 0-255.
    If a solution cannot be found, the only way is to work around this by not importing After-Effects-converted videos back into After Effects to work with. What do you think?

    https://youtube.com/jessthedragoon

  • Chris Wright

    November 21, 2017 at 2:53 am

    don’t set vlc to automatic, set it to openGL. this way vlc and after effects and premiere will all match without any weirdness going on.
    if there is indeed a problem at this juncture, it is the difference that AE and vlc see the video, but the data is still the same regardless.
    Make sure vlc has default colors and no filters as well!

  • Shoukei Tam

    November 21, 2017 at 7:37 am

    The colors are wrong when vlc is set to OpenGL. I’ve never changed any color settings or used any filters in VLC. What data is causing AE to see the colors wrongly?

    https://youtube.com/jessthedragoon

  • Chris Wright

    November 21, 2017 at 3:52 pm

    strange…
    can you post a 1 sec. lossless mov file out of animate cc? I will then export from AE and check in VLC.

  • Shoukei Tam

    November 22, 2017 at 8:20 am

    Ok. Here’s the file: https://www.mediafire.com/file/j6pgpbw818hc3fd/myrice_colortest_ANIMATECC.mov

    This is a lossless file so it should look the same when imported into AE. Export it into mp4 (or video with any other encoding) and then import that encoded video back into AE and see if the colors are still the same.

    https://youtube.com/jessthedragoon

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy