A simple video creation support library for Processing.
FrameRecorder uses FFmpeg to create a video file. Before use, please install FFmpeg(using the package management system like Homebrew, Chocolatey, and so on).
If you want to build the library from source codes, please install Gradle(using the package management system like Homebrew, Chocolatey, and so on).
Copy FrameRecorder
directory in the distribution file into processing/libraries
.
Call FrameRecorderFactory#createFrameRecorderInstanceOf(RecorderType type, PApplet app)
to create frame recorder instance. Recorder types are:
- AsyncRecorder(Recommended): Fast but better quality
- SyncTgaRecorder: Fast, best quality but requires very large free disk space
- SyncPngRecorder: Best quality but very slow
Call Recorder#recordFrame()
method at the end of draw
method to save.
FrameRecorder creates frames
directory under the sketch directory and save the drawing result to a image file.
When all the frames have been drawn, call Recorder#finish()
to complete the save and Recorder#bindTo(String videoFileName, int frameRate)
to bind image files to the video file(Recorder#bindTo
method deletes image files).
MIT