Add serialize_first_partition skeleton
Encode keyframe header