Animation in jupyter: install ffmpeg in Fenics Docker?

7 weeks ago by
I am trying to figure out how to make an animation in a jupyter notebook using fenics and docker.

Below is a link that should work in regular jupyter (no fenics and no docker) but when I try it in fenics I get a problem with no ffmpeg.  Is this something that I can install so that this might have a chance of working?

Or, if someone has an alternative idea that might work, I would be very happy to hear it
Community: FEniCS Project
I am sorry that I didn't add in an error message.

Below is what I get when I try creating an animation using "to_html5_video()".  

It would be great if it was possible to add this but maybe that's more of a Docker problem?

RuntimeError Traceback (most recent call last)
<ipython-input-3-f885f4acf935> in <module>()
----> 1 HTML(anim.to_html5_video())

/usr/local/lib/python3.5/dist-packages/matplotlib/ in to_html5_video(self)
1203 # We create a writer manually so that we can get the
1204 # appropriate size for the tag
-> 1205 Writer = writers[rcParams['animation.writer']]
1206 writer = Writer(codec='h264',
1207 bitrate=rcParams['animation.bitrate'],

/usr/local/lib/python3.5/dist-packages/matplotlib/ in __getitem__(self, name)
157 self.ensure_not_dirty()
158 if not self.avail:
--> 159 raise RuntimeError("No MovieWriters available!")
160 return self.avail[name]

RuntimeError: No MovieWriters available!
written 7 weeks ago by Francis Poulin  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »