https://github.com/sublimehq/anim_encoder