Is should be possible to use animated faces?. \anim
for animation that has 4 faces in one file and so on. I think it shouldn't be so hard for someone who can script more than "Hello world".
How to calculate faces per file
2 = x/2 and y
4 = x/4 and y
8 = x/4 and y/2
Hope you understood =)