http://qs321.pair.com?node_id=920300

wanna_code_perl has asked for the wisdom of the Perl Monks concerning the following question:

Hello fellow monks!

I have data from a hardware sensor that I want to visualize in an animated graph. The data is timecoded and captured at 60Hz.

What I'd like to create is an animated ticker tape line graph, exported as any reasonable movie format, that would essentially "replay" the data at the original capture rate, scrolling left to right.

I can draw the graph frame by frame (or as one long strip) easily enough, but I don't know how to encode those frames into video.

The datasets are large (tens of millions of frames, each), so animated GIF is out, and saving all of the frames to disk and then encoding them is not an option either, and I even more surely can't fit them all in RAM, so the solution I use will have to stream.

I'm sure there are 10e6 ways to do this, but I haven't been able to find one. :-) Ideas?