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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to