The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2026 Jareer Abdullah and Concat contributors
//! Turning a timeline plus a timestamp into one finished frame.
//!
//! Rendering splits in two, and the split is the important part of this crate:
//!
//! 1. [`plan`] answers "what is on screen at this instant, from where, and how
//! strongly". It touches no pixels and does no IO, so it is fast, exactly
//! testable, and identical for the CPU and GPU backends. The executor
//! fills the plan out with the decoded pictures and everything the
//! model has no field for, and a [`FramePlan`] is then the whole
//! description of the frame.
//! 2. [`compositor`] takes that plan and nothing else, and draws it.
//!
//! Step 2 is the GPU's alone: [`WgpuCompositor`] draws every frame, on the
//! platform's software adapter where a machine has no GPU. The CPU
//! compositor that used to be the reference is kept in the tests only, as
//! the oracle the GPU's parity suite checks it against.
pub mod compositor;
pub mod gpu;
pub mod metrics;
pub mod plan;
pub mod upscale;
#[cfg(test)]
mod reference;
#[cfg(test)]
mod transitions;
pub use compositor::Compositor;
pub use gpu::WgpuCompositor;
pub use metrics::ssim;
pub use plan::{
Backdrop, Crop, FramePlan, Geometry, PlannedLayer, PlannedTreatment, Shading, Transition, Warp,
detached_clip, plan_frame,
};
#[cfg(test)]
pub(crate) use reference::CpuCompositor;
/// The wgpu the compositor is built on, for callers that share its device.
pub use wgpu;