Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MovieWriter (ffmpeg) not available PyCharm (Windows)

I have followed instructions to download ffmpeg and add the path according to Matplotlib-Animation "No MovieWriters Available" Although I can type version in both in command prompt and Bash on Windows console, beloved PyCharm warns me:

Requested MovieWriter (ffmpeg) not available

when I try to save the animation:

ani = anim.FuncAnimation(fig, animate, frames = 14, init_func = init, interval = 500, repeat = False)
plt.show()
ani.save("Inno.mp4", writer=writer)

Do I have to add another path? Please, help me, I am really tired of this error.

like image 322
fgh Avatar asked Nov 30 '25 04:11

fgh


1 Answers

You can specify the ffmpeg path directly as follows:

plt.rcParams['animation.ffmpeg_path'] = 'ffmpeg path on your machine' (e.g.: "C:\FFmpeg\bin\ffmpeg.exe")

or try on your cmd calling the ffmpeg to make sure the have properly defined its path in your env variables.

to get the path after making sure the path s properly defined, write in your cmd:

where ffmpeg 
like image 91
Ahmed Hawary Avatar answered Dec 02 '25 19:12

Ahmed Hawary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!