I am making a video out of a sequence of plots using VideoWriter
. It works mostly OK (after following advice in this SO answer). However, it seems that Matlab tries to render all 3000 frames to screen sequentially after it's done animating, which causes my window manager to freak out and the computer to freeze for a few minutes.
Is there a way to write the video frames directly to disk, bypassing screen rendering? It seems that getframe
in writeVideo(vid, getframe(f))
necessarily makes the figure visible; is there a way to avoid that?