Couldn't get your code working. I get the following error:
Traceback (most recent call last):
File "./anim_encoder.py", line 230, in <module>
generate_animation(sys.argv[1])
File "./anim_encoder.py", line 139, in generate_animation
images = [misc.imread(f) for t, f in frames]
File "/usr/lib/python2.6/dist-packages/scipy/misc/pilutil.py", line 37, in imread
im = Image.open(name)
File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1980, in open
raise IOError("cannot identify image file")
IOError: cannot identify image file
I have python-scipy, python-numpy and opencv installed.
I have python-scipy, python-numpy and opencv installed.