Skip to content

About

Quercus Nonlinear Video Editing Engine — C ABI cdylib and Rust SDK

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Quercus Nonlinear Video Editing Engine

The Quercus engine is a headless nonlinear video editing engine: project and timeline model, codecs, audio, effects/OpenFX, rendering, storage, export, and the render-worker runtime. It exposes a stable C ABI (libquercus_engine) and the safe Rust SDK quercus-engine-rs.

This repository is the publishable engine workspace. The Quercus editor application and its CLI/worker live in a separate application repository and consume this engine through the SDK.

Relationship to Oak Video Editor

Quercus is the headless engine and Rust SDK extracted from Oak Video Editor. Oak Video Editor is the reference application and the primary consumer: the editor, its CLI and its render worker depend on the published quercus-engine-rs crate instead of carrying engine sources.

The split keeps the engine reusable by other frontends (C/C++ through the C ABI, Rust through the SDK) while Oak Video Editor remains the place where the end-user application, UI and packaging live.

Workspace

All crates except quercus-engine and quercus-engine-rs are internal implementation details: they are published only so Cargo can resolve the engine's dependency graph. Do not depend on them directly; their APIs are not stable. Use the SDK (or the C ABI) instead.

crate role
quercus-core base types, color, config, platform helpers
quercus-codec decode/probe/encode, hardware decode
quercus-audio audio backend, processing, waveform
quercus-undo undo/redo command framework
quercus-node project graph, clips, tracks, sequences, serialization
quercus-render render manager, workers, IPC, OpenGL/CPU rendering
quercus-ofx-plugin OpenFX host and plugin runtime
quercus-otio OpenTimelineIO import/export
quercus-storage project storage backends
quercus-task export/preview/conform/proxy tasks
quercus-timeline semantic timeline edit commands
quercus-engine C ABI facade (cdylib) + domain dispatch
quercus-engine-rs safe Rust SDK over the C ABI

Build

FFMPEG_DIR is required. Crate packages do not download or build FFmpeg. Point it at a development prefix containing include/, lib/ and lib/pkgconfig/. Dynamic linking is the default; use BtbN's gpl-shared packages or an equivalent shared FFmpeg development install. Shared libraries must be discoverable at run time through the platform loader path or an rpath.

Static archives are optional. Enable ffmpeg-static on quercus-engine-rs and point FFMPEG_DIR at a static development prefix. The same feature exists on quercus-engine for direct C ABI consumers.

For a manual build, run the dependency scripts once (see docs/build.md); they install into .cache/ffmpeg and the committed .cargo/config.toml points FFMPEG_DIR there:

tooling/install-deps.sh
tooling/ffmpeg/build-ffmpeg.sh --shared
cargo build -p quercus-engine
cargo test --workspace
cargo doc -p quercus-engine-rs --no-deps

The SDK uses the engine rlib by default. Enable engine-cdylib instead of engine-rlib when a C-compatible dynamic library is specifically required; only that mode needs libquercus_engine on the loader path. The native CD publishes the dynamic library, static library, C header and Windows import library; rlib remains a Cargo implementation detail and is not an artifact.

Publishing

Publish in dependency order (all internal crates are published, but they are implementation details and are not intended for direct use):

tooling/publish_workspace.sh --dry-run
tooling/publish_workspace.sh

Order: ffmpeg-bootstrap → core → ffmpeg-link → ffmpeg-sys → ffmpeg-next → undo → codec → node → otio → render → audio → timeline → storage → task → ofx-plugin → engine → engine-rs.

Version 0.7.0 must pass the Linux, macOS and Windows native CD matrix before the publish job runs. The publish job uses the same static native builds.

Contributing

Contributions are accepted under the Contributor License Agreement (inbound = outbound, GPL-3.0-or-later).

License

GPL-3.0-or-later. See LICENSE.

About

Quercus Nonlinear Video Editing Engine — C ABI cdylib and Rust SDK

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages