[FFmpeg-devel] [PATCH v3] lavc/rawdec: Only use AV_PIX_FMT_PAL8 for 1 bpp video in AVI

Michael Niedermayer michael at niedermayer.cc
Mon Feb 1 14:58:17 CET 2016


On Mon, Feb 01, 2016 at 01:14:02PM +0100, Mats Peterson wrote:
> On 02/01/2016 08:17 AM, Mats Peterson wrote:
> >I don't understand what's so important about retaining monow inside
> >FFmpeg when it comes to AVI, when it's obviously OK to convert 2 and 4
> >bpp to pal8. Once again, if you want a straight passthrough of 1 bpp AVI
> >video data, just use "-c:v copy".
> 
> You complain at 1 bpp data being converted to another pixel format
> when doing just "ffmpeg -i in.avi -c:v rawvideo out.avi".

> But you
> won't get any 2 bpp or 4 bpp video in the output file either. It
> will be 8 bpp (albeit without a palette, for some inexplicable
> reason). But that seems perfectly OK...

its not ok,
if only 2bpp are used and its possible to store just 2bpp then thats
what should be done by default. Same for 4bpp
that could be done with PAL8 and using its palette or using
some *_bits_per_pixel variable or a seperate PAL4/PAL2
many possibilities and likely even more but the end result should be
efficient storage so that encoders/muxers supporting 2/4 bpp should
use these when possible and by default without the user needing to
know all the details

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160201/d2d109bf/attachment.sig>


More information about the ffmpeg-devel mailing list