New Widescreen Wallpaper - Liquid Lazuli


As I’ve said before, sometimes things take a while to trickle down.

Last month, I was browsing through some digital paintings I created even before I created this website. If I were a physical painter, this is akin to looking through old drawers, full of old paintings and dust. Thankfully though, I don’t have to deal with dusk or damage because I do work digitally. In my browsing, I noticed a digital painting that had some potential, moved it to the wallpapers in-progress folder, and refined it a bit. But alas other projects were more important, and it was put on the back burner.

Then about the middle of this month, I decided this wallpaper in-progress needed a decent name, so I did what I usually do when naming things: I opened my wonderful thesaurus. (And by opened, I mean I opened Apple’s Dictionary app.) It was certainly a liquid-looking piece, perhaps I could incorporate that into the name.

Fall in Love your Thesaurus

When choosing a name for anything, except perhaps a child, using a thesaurus is extremely helpful because it exposes you to works and deeper meaning than you could ever know from daily conversation.

Because this wallpaper features a lot of blue, I searched for blue. (Am I going through a blue phase like Picasso did?) Word origins fascinate me, and I noticed that the word origin of “ultramarine” reference something called “Lapis Lazuli.” I had never heard of this before and discovered that it was a type of beautiful blue stone that’s been mined in Afghanistan for the past 6,500 years! Apparently the ancient Egyptians favored the stone for amulets and ornaments. Lapis jewelry has been found at Predynastic Egyptian sites among other places. The way different hues of blue swirled around in the stone reminded me of the hues in this wallpaper, and I decided on a name that seemed fitting.

Define Procrastination

Fast forward to today when I opened the wallpaper in-progress again, intent on finally finishing it. Some may say my delay was procrastination, but putting tasks on the back burner is a form of intelligent prioritizing. Procrastination only occurs if you put off a task that you truly need to do by a certain time.

Liquid Lazuli preview

Compelled to fix a few small flaws, I started playing with the smudge tool and soon discovered that I could create an interesting river-like effect. After some fine-tuning, I’m proud to finally present: Liquid Lazuli. Checkout the widescreen and fullscreen sizes.

From the color blue to ancient Egypt, it’s amazing what you can learn by just following your digital nose.

How to Fix Washed-Out H.264 Video


In the previous article, I mentioned that I encountered into a serious problem when exporting the “Wheels, Jets, & Rails” travel video for internet distribution. If you export your video with Quicktime, you may have run into this brightness bug without realizing it. Simply put, exporting video as H.264 in Quicktime artificially brightens (or lightens, depending on who you ask) your video which makes it look very washed out and unprofessional. Though some scenes aren’t affected by this bug as much as others, it reduces the overall quality of your video. For instance, the washed out effect isn’t as visible in a snowy scene, but it’s very pronounced on a summer scene. During this article, I will assume that you already have Quicktime Pro since exporting video is a Quicktime Pro feature.

That Darn Gamma

Washed out video comparison

No matter what I did, the resulting H.264 video was too bright, which is what happens when the gamma correction is set too high. If you’re curious how gamma works, Wikipedia has an excellent description of Gamma Correction.

I wondered if using the MP4 filetype was causing the problem, but it wasn’t. Whether exported in an .mp4 or a .mov file, the resulting file was artificially brightened. To demonstrate this, I’ve used source video for an upcoming video to recreate the problem in the thumbnail on the right.

I did some research and discovered the H.264 Gamma thread on Apple Discussions where I learned that Quicktime’s H.264 encoder has had this gamma bug for about 3 years, and Apple has yet to fix this problem. Apparently, it’s caused by Quicktime forcing H.264 video to a 1.8 gamma level. There is a way, which is outlined on the thread, to correct this problem without rendering video again by using alpha transparency, but that only works on MOV files and doesn’t preserve hinting (i.e. the ability for you to start watching a video before its finished downloading).

I also heard that VisualHub does not have this problem, so I downloaded the trial version and began a series of experiments to find out what setting was best. An article from DearCali.com was very helpful, but after trying many combinations in VisualHub, the gamma problem remained in every H.264 video I exported. (Yes, even after forcing ffmpeg, you geeks.) So I did what I should have done in the beginning, I manually applied a brightness filter in Quicktime.

As far as I know, this is the most straightforward, universal, and foolproof solution to this problem.

How To Counteract the Gamma Bug

To counteract this problem, you only need to add one step your normal process. (See “How to Encode a Video for a Podcast” for specific instructions on how byteful video is exported.) Once you have your final video, open it up in Quicktime and export the movie as “Quicktime Movie” again. It’s easy to make a mistake that would result in the loss of quality here, so follow these steps closely:

  1. Click “Settings” and set your Compression Type to “Apple Intermediate Codec”, and make sure your Frame Rate is set to “Current” FPS. Click “OK”.
  2. Filters window screenshot
  3. Now click “Filter”. As you can see, there are many filters that you can apply to a video. Choose “Brightness” and pull the brightness to the left until it says “-7″. You may want to experiment with how much darker you want it be, but in my experience “-7″ seems to be just the right balance. Click “OK”.
  4. Make sure “Sound” is checked, otherwise you won’t have any sound! Then under “Sound” click on “Settings”. The “Linear PCM” format works, but “Apple Lossless” is a smaller file so I use that. Click “OK”, and click “Save”!

The Final Export

Corrected video comparison

Exporting video in Apple Intermediate Codec is much faster than most video codecs, and this is by design. This codec was designed to be an intermediate codec to work with between computers and video cameras, without having a huge file size like most DV codecs.

Once the export is done, try exporting to H.264 again, and you may find that getting around this bug isn’t so difficult after all. As you can see, the resulting file is nearly indistinguishable from the original.

Do you have a suggestion on how to improve this article? Or have you found a better solution to this problem? I’m open to suggestions in the comments.