[FFmpeg-devel] [PATCH 2/2] lavf/avienc: New AVOption write_keyframe_palette

Mats Peterson matsp888 at yahoo.com
Tue Mar 8 13:34:27 CET 2016


On 03/08/2016 11:47 AM, Mats Peterson wrote:
> Here's a somewhat experimental patch with a new AVOption
> write_keyframe_palette that allows you to write the palette to every
> keyframe. It is disabled by default, but it is needed for any file that
> contains palette changes in order to switch palette properly in FFplay
> (and, in the future, probably MPlayer, unless it manages to solve it in
> a different way).
>
> It's interesting to note that Windows Media Player doesn't need xxpc
> chunks at keyframes in order to seek properly in the original file
> TOON.AVI below from Sierra's King's Quest VI. I have of course no idea
> how they solve that.
>

In this context, it would be interesting to know whether there's some 
way to detect the strh flag AVISF_VIDEO_PALCHANGES in the demuxer, and 
transfer the state to the muxer? Is there any type of global area in 
FFmpeg where this state could be recorded?

Mats



More information about the ffmpeg-devel mailing list