Topic: P&P:Tips for Exporting H264 on Windows

I brought this up briefly in the chat, but I think a thread might be more appropriate since it's a complex issue and it's probably worth discussion (and may help others out in the future).

As I've recently started making videos, I've stumbled issues with exporting videos in .h264, the most common codec out there at the moment.

Specifically, when exporting h264 out of Premiere CS6 on Windows systems, the resulting video will have the gamma values all screwed up and washed out looking on Quicktime players. Some players display correctly, but Quicktime and many web browsers in particular will have the washed out color-palette.

This is something you don't notice if you're just uploading to Youtube or Vimeo, because they seem to work around this problem somehow on their backend when they re-encode your original video for online distribution.

Digging into this online, I've discovered that this appears to have been an issue for years going back, and what's most baffling, no one seems to have a real solution for it. The most common suggestion I'm seeing is "encode it on a Mac, because Apple refuses to fix this", which is just insane to me.
Apparently it has something to do with a special gamma related tag that gets embedded in the exported file, which some players will read and others will ignore.

That makes the problem particularly annoying, because it means I can't just fix it by boosting the gamma before the export, since then the previously unaffected players will show the image over-saturated.

So, as I'm sure lots of people in this community work with Premiere and AE regularly, I'm wondering if anyone has run into this, knows any solutions for this, or what kind of export settings you recommend in general. I wasn't able to find an agreed upon solution for the gamma issue anywhere online, but that can't be the case, can it? How the hell have people been encoding their videos for the last decade?

Thumbs up Thumbs down

Re: P&P:Tips for Exporting H264 on Windows

According to Photoshop's eyedropper the Premiere Color bar dsplays the far-right gray at [103,102,104]
Exporting to h264 direct from Premiere to an MP4 and displaying in QuicktimePro, the gray is reported as [114,114,114]
Exporting from Premiere via Quicktime' h264 and viewed in QTpro, that gray is [113,113,113]
https://dl.dropboxusercontent.com/u/29628015/h264Compare-01.png
When those 2 exported files are imported back to premiere and placed on the timeline all the colors match perfectly. Blame the QT Player?

There are several different "solutions" that I've seen around for this.

http://www.videocopilot.net/blog/2008/06/fix-quicktime-gamma-shift/ wrote:

SOLUTION: After rendering into a QuickTime/h.264 file, open it up in QuickTime and select “Show Movie Properties.” Highlight the video track then click on the “Visual Settings” tab. Towards the bottom left you should see “Transparency” with a drop-down box next to it. Select “Blend” from the menu then move the “Transparency Level” slider to 100%. Choose “Straight Alpha” from the same drop-down and close the properties window and finally “Save.”

I don't see an improvement to my test exports from the VC suggestion, a slight change but not a match to the original Premeire display. That may be an older soluition to a similar problem, when the QT player had a Gamma setting that was wrong.

This adobe forum thread digs a bit deeper, but still does not offer a comprehensive solution.
http://forums.adobe.com/thread/1063696


The trivial solution is don't use 264 if you care about your colors.

To make matters worse, I exported an uncompresed PNG, and viewed it as an image sequence in QTplayer. Much closer to the original, but still every color was one or two digits different from the Ppro program monitor. https://dl.dropboxusercontent.com/u/29628015/h264Compare-02.png

Last edited by drewjmore (2013-11-21 04:39:06)

(UTC-06:00) Central Time (US & Canada)

Thumbs up Thumbs down

Re: P&P:Tips for Exporting H264 on Windows

Yeah, old issue. My best solution for it has always been adding a Levels adjustment to my footage, either as an effect or an adjustment layer, and setting the gamma to 0.9. (Instead of 1.)

Does this solve the problem? No, because now your gamma is just wrong twice. But it yields the closest-to-intended results I ever bothered to sit down and figure out.

Teague Chrystie

I have a tendency to fix your typos.

Thumbs up Thumbs down

Re: P&P:Tips for Exporting H264 on Windows

Tomahawk is always saying how his Mac is *so* good that I'm sure he could totally render out all your projects without it making a difference to what he's doing wink

Extended Edition - 146 - The Rise Of Skywalker
VFX Reel | Twitter | IMDB | Blog