looking for an example of how to programatically encode a frame-buffer into an mpeg stream. I need this to experiment with some mpeg encoders, to see how different patterns compress.
I have a slight inclination towards Windows, although if linux gives some advantage it is not a problem.
Assuming that you can turn your frame-buffer into a series of image files, you could convert them to mpeg video using ffmpeg:
From the docs:
You’d want something like:
for an mpeg stream.