Upgrade template version, add codec