Javascript MotionJPEG/AVI builder(mjbuilder.js) enables you to save your canvas animation into a single avi file.
- For artists: Spread your work on vimeo, youtube...
- For researchers: You can distribute visualization results.
MotionJPEG is suitable for clip on movie authoring tool because it's almost “raw” format. Please recompress if you want to distribute without compilation.
Quick Start
At first, generate MotionJPEGBuilder and setup.
var builder = new movbuilder.MotionJPEGBuilder(); builder.setup(640 /* width */ , 360 /* height */ , 30 /* FPS */ );
Next, add frames.
draw(); builder.addCanvasFrame(canvas); draw(); builder.addCanvasFrame(canvas); draw(); builder.addCanvasFrame(canvas); : : :
And then, finish to get URL for generated content.
builder.finish(function(generatedURL) { open(generatedURL); });