Export
Exporting is creating the final video from your scenes.
You could write a program yourself to render each frame in a scene and compile a video, but Graphic Videos has a few built in functions to do that.
Single Core Export
graphics.export.export_sc
This function uses one CPU core to render and encode each frame, one at a time.
It is extremely reliable, and fits for almost any situation.
- Parameter
resolution: (x, y) resolution of final video. - Parameter
fps: FPS (frames per second) of video. - Parameter
scenes: List of scenes to export in order. - Parameter
path: Output path of video. Must end with.mp4 - Parameter
verbose: Whether to display progress via stdout while exporting. - Parameter
notify: Whether to send a notification after finished.
Multi Core Export
graphics.export.export_mc
This function uses all of your CPU cores to render and save them as images to a temporary directory.
Then, it uses one core to encode all the images and removes them.
If, at any time during the export, a KeyboardInterrupt is raised, the program will quit and remove all temporary files.
It is very fast, but uses a lot of disk space during export.
- Parameter
resolution: (x, y) resolution of final video. - Parameter
fps: FPS (frames per second) of video. - Parameter
scenes: List of scenes to export in order. - Parameter
path: Output path of video. Must end with.mp4 - Parameter
verbose: Whether to display progress via stdout while exporting. - Parameter
notify: Whether to send a notification after finished.
FFmpeg Export
graphics.export.export_sc
This function exports in the exact same way as Single Core, but uses FFmpeg to compress the video after it is exported.
Uses one temporary video file, and has a small output size.
- Parameter
resolution: (x, y) resolution of final video. - Parameter
fps: FPS (frames per second) of video. - Parameter
scenes: List of scenes to export in order. - Parameter
path: Output path of video. Must end with.mp4 - Parameter
verbose: Whether to display progress via stdout while exporting. - Parameter
notify: Whether to send a notification after finished.