I use ffmpeg to store the dynamic graph drawn on matplotlib, but the output file is only 2 seconds but It should have been 30 seconds. I set a graph to run three curves, a t