Closed dpinney closed 9 years ago
If we do JPEGs, it’s 6.2 MB/24 simulation hours. If we do PNGs it’s 2.8 MB/24 simulation hours. So actually, PNG is better.
ffmpeg -framerate 10 -i volts%03d.png -s:v 1000x1000 -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p voltsMovie.mp4
mp4 brings it down to 56kB/24 simulation hours. So an 8760 simulation would take 20 MB. Acceptable.
Going to have to stream the data. See http://stackoverflow.com/questions/13294919/can-you-stream-images-to-ffmpeg-to-construct-a-video-instead-of-saving-them-t
We can just go directly to a movie in matplotlib see 3dc35637ccaf27264ea4bac70bd4c56963dadab6.
Done with a movie in ef270635d2c33db78f3146bb602dd41db5e012c5
This should bring down the output size significantly.
Really we should test all the matplotlib output options.