› Forums › Technical support › Jupyter Notebooks › FFMPEG for Python notebook animations
- This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by Catherine Lai.
-
AuthorPosts
-
-
September 25, 2020 at 17:02 #11998
If you come across errors in generating the animations in the SIGNALS notebooks, you may just need to install FFMPEG. You can download it from here:
It’s a comprehensive framework for doing all sorts of multimedia manipulations and conversions, so you’ll likely come across at some point in your speech processing career if you haven’t already!
-
September 28, 2020 at 08:42 #12027
I should also mention that if you’re using a conda environment, you can download it directly. With your desired conda environment activated, run the following on the command line:
> conda install ffmpeg
-
September 30, 2020 at 09:59 #12079
Hello! I followed the steps outlined here and am still getting an error. I tried it a couple of times and the most recent time i tried
> conda install ffmpeg
it said that # All requested packages already installed.
Here is the error I get:—————————————————————————
KeyError Traceback (most recent call last)
~/miniconda3/lib/python3.8/site-packages/matplotlib/animation.py in __getitem__(self, name)
160 try:
–> 161 return self.avail[name]
162 except KeyError:KeyError: ‘ffmpeg’
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
<ipython-input-15-20d456944fec> in <module>
7 fig, lambda x: anim_sinusoid(x, X=A, Y=B, tsteps=tsteps, figs=figs), interval=600, frames=n_samples)
8
—-> 9 HTML(anim.to_html5_video())~/miniconda3/lib/python3.8/site-packages/matplotlib/animation.py in to_html5_video(self, embed_limit)
1324 # We create a writer manually so that we can get the
1325 # appropriate size for the tag
-> 1326 Writer = writers[rcParams[‘animation.writer’]]
1327 writer = Writer(codec=’h264′,
1328 bitrate=rcParams[‘animation.bitrate’],~/miniconda3/lib/python3.8/site-packages/matplotlib/animation.py in __getitem__(self, name)
161 return self.avail[name]
162 except KeyError:
–> 163 raise RuntimeError(
164 ‘Requested MovieWriter ({}) not available’.format(name))
165RuntimeError: Requested MovieWriter (ffmpeg) not available
-
September 30, 2020 at 16:39 #12149
You might need to try restarting the kernel for that notebook: go to ‘Kernel’ in the menu at the top of the notebook and click ‘Restart and Clear Output’. Let me know if that works!
-
-
AuthorPosts
- You must be logged in to reply to this topic.