[FFmpeg-devel] [PATCH v2] lavf/qtpalette: Treat 1-bit video as palettized

Mats Peterson matsp888 at yahoo.com
Wed Dec 30 06:13:05 CET 2015


On 12/30/2015 05:47 AM, Mats Peterson wrote:

>
> The original .mov file has the grayscale bit set in the bit depth field
> of the video sample description, but since that seemed highly illogical
> to me, I cleared it for the purposes of this demonstration. For some
> reason, QuickTime in Win or Mac seems to ignore the grayscale bit, since
> it will display the file in blue colors regardless. Perhaps we should do
> the same? This is not documented behaviour, though.
>
> Mats
>

The QuickTime File Format Specification says this:

"Values of 34, 36, and 40 indicate 2-, 4-, and 8-bit grayscale, 
respectively, for grayscale images."

They don't mention anything about value 33 (0x21), which is 1-bit video 
(0x01) with the grayscale bit (0x20) set. Perhaps we should just ignore 
the grayscale bit when processing 1-bit video then? Suggestions welcome.

Mats

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/


More information about the ffmpeg-devel mailing list