RuntimeError: No MovieWriters available in Matplotlib animation

前端 未结 3 1392
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 15:22

The problem I am getting is in code similar to this example: https://matplotlib.org/examples/animation/basic_example_writer.html

The error:

Runt

3条回答
  •  再見小時候
    2020-12-20 15:32

    Not sure why, but in my case here is the one that worked (in my case was on windows).

    Initialize a writer:

    import matplotlib.pyplot as plt
    import matplotlib.animation as animation
    Writer = animation.FFMpegWriter(fps=30, codec='libx264') # Or 
    Writer = animation.FFMpegWriter(fps=20, metadata=dict(artist='Me'), bitrate=1800) ==> This is WORKED FINE ^_^
    

    Writer = animation.writers['ffmpeg'] ==> GIVES ERROR ""RuntimeError: Requested MovieWriter (ffmpeg) not available""

提交回复
热议问题