[FFmpeg-devel] [PATCH v2] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

Mats Peterson matsp888 at yahoo.com
Mon Feb 8 06:24:31 CET 2016


On 02/08/2016 06:19 AM, Mats Peterson wrote:
> In order to produce a working nut file from a 1, 2, 4 or 8 bpp AVI or
> QuickTime file, force the pixel format with "-pix_fmt rgb24" or similar.
> For black & white files in order to save space, use "-pix_fmt monow" or
> "-pix_fmt monob" (give or take the slightly erratic conversion from pal8
> to monow/monob in FFmpeg).
>

A better way to produce a monow or monob nut file from a black & white 
AVI or QuickTime file is to use "ffmpeg -i 1bpp.avi -vcodec copy -vtag 
B1W0 1bpp.nut". The "-vtag" option is currently needed, otherwise FFmpeg 
will incorrectly use a RGB[15] codec tag for some reason.

Mats



More information about the ffmpeg-devel mailing list