[FFmpeg-devel] [PATCH] avformat/avienc: store palette at keyframes if it differs from the global one

Mats Peterson matsp888 at yahoo.com
Sat Mar 5 22:26:12 CET 2016

On 03/05/2016 10:13 PM, Mats Peterson wrote:
> On 03/05/2016 10:12 PM, Mats Peterson wrote:
>> Doesn't seem to work quite as expected, Michael.
>> Try ffmpeg -i toon.avi -vcodec copy out.avi.
>> The destination file will still contain only two xxpc chunks.
>> Mats
> Well, it works with -vcodec rawvideo, but not -vcodec copy.
> Mats

On stream copy, the palette won't come with every packet like it does 
for e.g. "-vcodec rawvideo". So you'll need to add the keyframe xxpc 
chunks outside of the "if (ret2)" block in some way.


Mats Peterson

More information about the ffmpeg-devel mailing list