pub struct VideoSpec {
pub schema: Option<String>,
pub compose_version: u32,
pub name: Option<String>,
pub canvas: Canvas,
pub theme: ThemeChoice,
pub body: Node,
pub overlays: Vec<Node>,
pub audio: Vec<Node>,
pub duration: Option<f64>,
pub loudness: Option<Loudness>,
}Expand description
A whole video: a body, what is drawn over it, and what plays under it.
Fields§
§schema: Option<String>The schema the spec follows (https://alpha2.sh/schema/compose.v1.json), for editors and
validators. The compiler does not read it.
compose_version: u32Spec version. This build reads only COMPOSE_VERSION.
name: Option<String>The project’s name. Default video.
canvas: CanvasSize, rate and background. Default youtube-1080p.
theme: ThemeChoiceFonts, colors, sizes and default timings. Default clean-dark.
body: NodeThe main picture, from time zero. Its length is the video’s unless duration says
otherwise.
overlays: Vec<Node>Nodes drawn over the body in order, placed by their own at (default 0) and lasting to
the end unless they say otherwise.
audio: Vec<Node>Sound beside the body’s: audio and music_bed nodes, placed as overlays are.
duration: Option<f64>The video’s length in seconds. Default: the body’s.
loudness: Option<Loudness>The loudness an export normalizes the mix to. Returned as an export option, not stored in the project.