[FFmpeg-devel] 1-bit QuickTime Animation (qtrle) not necessarily b/w

Mats Peterson matsp888 at yahoo.com
Mon Dec 21 05:12:10 CET 2015

On 12/21/2015 05:06 AM, Mats Peterson wrote:
> More issues...
> I've noticed that FFmpeg blindly assumes that 1-bit QuickTime Animation
> (qtrle) video is black & white. This is not necessarily true. The two
> colors can be any color, just like in 1-bit PNG. Unfortunately this
> black & white assumption for 1-bit video seems hardcoded into the qtrle
> decoder, since I've tried setting the palette to no avail. Below is a
> link to a sample clip of a rotating earth that uses blueish colors, and
> they will be correct in QuickTime, but not in FFmpeg.
> https://drive.google.com/open?id=0B3_pEBoLs0faSW5CVU50U3hHT3c
> Mats

Another reason it won't work in FFmpeg is because it doesn't consider 
1-bit depth to be palettized whatsoever. Also wrong. But as I said, even 
though I have tried to fix it in my qtpalette.c, the qtrle decoder will 
use black & white regardless.


Mats Peterson

More information about the ffmpeg-devel mailing list