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

Mats Peterson 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.

TOON.AVI:
https://drive.google.com/open?id=0B3_pEBoLs0faaFY0ME92SDA1VEU

Mats

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavf-avienc-New-AVOption-write_keyframe_palette.patch
Type: text/x-patch
Size: 2989 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160308/7cebcdff/attachment.bin>


More information about the ffmpeg-devel mailing list