[FFmpeg-devel] [PATCH v3] lavc/rawdec: Use 16-byte line alignment for B1W0 and B0W1 video in nut
Mats Peterson
matsp888 at yahoo.com
Fri Feb 5 17:18:12 CET 2016
On 02/05/2016 05:04 PM, Mats Peterson wrote:
>>
>> THE ENCODERS SHOULD BE THE ONES TO FIX. Hope I'm clear enough now.
>
> And ideally, for example, the AVI muxer could use 1 bpp format if the
> palette only contains 2 colors in spite of being pal8, and it should put
> a 2-color palette in the output file, etc. A lot of work, which is most
> probably not justified, since one can always force the pixel format for
> the output file on the command line. The lack of palette when writing
> AVI files has to get fixed at some point though, regardless.
>
> Mats
A better way would of course be to peek at the BITMAPINFOHEADER or video
sample description of the input file to determine how many bits per
pixel it uses, and match that in the output file, rather than trying to
guess from the number of colors in the palette. Anyway, this is a lot of
work, and to me it's rather superfluous, since one can always force the
pixel format on the command line once again.
Mats
More information about the ffmpeg-devel
mailing list