[FFmpeg-devel] [PATCH 1/2] lavf/avienc: Palette handling code only concerns AV_PIX_FMT_PAL8

Mats Peterson matsp888 at yahoo.com
Mon Mar 7 18:04:34 CET 2016

Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> skrev: (7 mars 2016 17:49:41 CET)
>Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> skrev: (7 mars 2016
>15:00:29 CET)
>>Forget the separate patch posted before, and my previous experimental 
>>variants of your patch, Michael. And if we're going to use keyframe
>>chunks, we'll have to invent something really good. Here is some
>>stuff added in the meantime.
>I've come to the conclusion that for any file with a palette change
>somewhere in it, you have to add xxpc chunks to *every* keyframe in the
>file, not only the ones following the palette change like your patch is
>currently doing, as far as I can tell.
>Mats Peterson
>ffmpeg-devel mailing list
>ffmpeg-devel at ffmpeg.org

One could perhaps arrange to detect the AVISF_VIDEO_PALCHANGES flag in the source file (if AVI, of course), and, if set, add xxpc chunks to every keyframe in the destination file.

Mats Peterson

More information about the ffmpeg-devel mailing list