[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:20:35 CET 2016


On 02/05/2016 05:18 PM, Mats Peterson wrote:
>
> 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
>

One can't force 2 or 4 bpp, of cousre, so it's not possible to match 2 
and 4 bpp input files exactly in the output. Then it's better to use 
-vcodec copy (which currently works badly with nut, as I mentioned before).



More information about the ffmpeg-devel mailing list