Forum Navigation
You need to log in to create posts and topics.

Re: Quicktime colors

Posted by: rbrown <rbrown@...>

DesignInc@aol.com wrote:
>
> Does anyone know how to get the clut from a quicktime movie?
>
> - Owen

I don't believe that a QT movie has a clut associated with it per se.
The individual images may have color tables associated with them, but
even those can (theoretically) change from second to second as the
images progress. A movie can even have _several_ video tracks, and each
one of those tracks could have its own color table (or set of color
tables).

However, in most cases it's probably a safe bet to assume that if you
extract a color table from the first sample in the first video track you
come across, that color table will probably be valid for the whole
movie. I've done this before in order to optimize the screen's palette
to match the movie's palette (for users with 256-color monitors).

But it's not a trivial process (unless there's a simpler way that I'm
completely missing). First I index through the "tracks" till I find a
"media" whose type is "_vide". Then I get something called an "image
description" from it, and then I extract a color table from the image
description. Finally, I convert the color table to a palette so that I
can use it to alter the screen's palette. The code for all this is too
long to post here, but I can send it to you if you like.

- Rick