[FFmpeg-devel] [PATCH 2/2] lavf/avienc: New AVOption write_keyframe_palette
matsp888 at yahoo.com
Tue Mar 8 11:47:44 CET 2016
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.
This file doesn't work properly in FFplay for some reason. It generates
"stream_ptr out of bounds" messages at the locations of the xxpc chunks.
It seems it has something to do with the index, since if I copy it to a
new file with the last part cut off (incorrect but it will play at
least), those "stream_ptr out of bounds" messages will disappear, and
the palette changes will occur as expected.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2989 bytes
Desc: not available
More information about the ffmpeg-devel