Vestra documentation¶
A Rust engine for layer-based video composition and rendering, with a Python API.
Export MP4, GIF, animated WebP, still images, or image sequences. See render formats.
Get started¶
-
Install Vestra¶
Add Vestra to a Python project.
-
Render your first video¶
Draw a shape and save it as a three-second video.
-
Animate a layer¶
Move the shape across the canvas with keyframes.
Rendering a JSON project? Follow the CLI quickstart.
Render a short animation¶
This script draws a rounded rectangle and moves it across the canvas using three
keyframes. Save it as first_animation.py after installing Vestra.
"""The README quickstart; no external images, fonts or audio required."""
from vestra import Interpolation, Project
from vestra.sources import Color, Rectangle
project = Project(
size=(640, 360),
fps=30,
duration=3,
)
project.root.add(Color("#101c24"))
card = project.root.add(
Rectangle(width=180, height=140, corner_radius=16, fill="#b8e3bc")
)
# Times are seconds since the card starts; the destination sets the easing.
card.transform.position.keyframe(0, (0.25, 0.5))
card.transform.position.keyframe(
1.5, (0.75, 0.5), interpolation=Interpolation.EASE_IN_OUT
)
card.transform.position.keyframe(
3, (0.25, 0.5), interpolation=Interpolation.EASE_IN_OUT
)
if __name__ == "__main__":
project.render("quickstart.mp4", backend="cpu", overwrite=True)
The script writes quickstart.mp4 in the current directory and replaces it on a
rerun. It uses the CPU, so you can run it without a GPU.
Rendered examples¶
Motion graphicsMove cards together and animate a masked video
Video editingReframe shots and connect them with dissolves
Photo effectsCompare halftone and ASCII on the same image
Browse all examples and their source code.
Guides and API reference¶
Use the guides to learn tasks such as adding layers, applying effects, and exporting a project. The reference covers APIs, settings, and feature support. If something fails, start with troubleshooting.
Documentation version¶
This site follows the develop branch.
Some features here may be newer than the version you installed. Check the
published release notes for your
version. Tutorial downloads follow develop, and each gallery page links to
the source used to create its preview.