[FFmpeg-devel] 1 bpp BMP sample with palette in the 'bmp' directory of the FATE test suite

Mats Peterson matsp888 at yahoo.com
Tue Jan 26 11:00:38 CET 2016


On 01/26/2016 10:55 AM, Paul B Mahol wrote:
> On 1/26/16, Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> wrote:
>> On 01/26/2016 10:42 AM, Mats Peterson wrote:
>>> I discovered a 1 bpp BMP file with a palette called 'test1.bmp' in the
>>> 'bmp' directory of the FATE test suite. When converting this file with,
>>> say, "ffmpeg -i test1.bmp test.avi", the output file will use the colors
>>> of the palette in the BMP file, not black & white. Also, the pixel
>>> format used for the file is pal8, not monow. This leads me to believe we
>>> should use pal8 for raw 1 bpp video in AVI in rawdec.c as well, in spite
>>> of Microsoft's use of the word "monochrome". But then again, the pal8 to
>>> yuv420p conversion discrepancies, using 0x10 and 0xEB instead of 0x00
>>> and 0xFF as the output values, will have to get fixed, in order to pass
>>> the FATE test suite. This is nothing urgent, of course.
>>>
>>> Mats
>>>
>>
>> I should add that opening this file in Paint in Windows XP will show the
>> colors properly, not just black & white.
>>
>
> Who still use pal8 today? Only you.
>
That wasn't very helpful was it? There are loads of old 1 bpp and 8 bpp 
files out there.

Mats



More information about the ffmpeg-devel mailing list