I am working on a simple video using matplotlib.animation. I couldn't help noticing that each time I run my project it took a rather long time to save the video. I am using a graphic card with the model of 3080Ti and when the code is running, CPU is under great pressure but my graphic card is not being used at all.
This is my code of output the video file:
ani.save('particle_box.mp4', fps=60, extra_args=['-vcodec', 'libx264'])
I tried to look up the official reference of the FFMpegWriter but I could not find something useful. Maybe someone could help me to deal with this problem?