[FFmpeg-devel] [PATCH 1/2] lavf/avienc: Palette handling code only concerns AV_PIX_FMT_PAL8
matsp888 at yahoo.com
Mon Mar 7 18:16:48 CET 2016
Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> skrev: (7 mars 2016 18:04:34 CET)
>Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> skrev: (7 mars 2016
>>Mats Peterson <matsp888-at-yahoo.com at ffmpeg.org> skrev: (7 mars 2016
>>>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
>>file, not only the ones following the palette change like your patch
>>currently doing, as far as I can tell.
>>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.
>ffmpeg-devel mailing list
>ffmpeg-devel at ffmpeg.org
Or detect if there is any palette change regardless of that flag. For AVI it would be easy, since they come as xxpc chunks as usual, but for nut it would take a different logic. End of monologue.
More information about the ffmpeg-devel