Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

Merge M10.1–2 + M3.2/M3.11 into M7.2 (audio mixer): preferences gain audio + playback + trim groups; ROADMAP refreshed

Brandon Thomas9baa34fa454c
diff --cc Cargo.lock
index ffb1e1716,c3309388d..72dbdba55
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -1688,8 -1702,8 +1702,9 @@@ dependencies =
"filmcraft-media",
"filmcraft-project",
"filmcraft-render",
+ "filmcraft-text",
"filmcraft-time",
+ "image",
"log",
"rayon",
"serde",
diff --cc ROADMAP.md
index 0c7cf68c9,c73490bb2..07f802140
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@@ -2,7 -2,7 +2,7 @@@
Progress toward feature parity with Adobe Premiere Pro, with estimates. Updated as milestones land.
- **Last updated:** 2026-10-01 · **Overall parity:** ~33% · **Code:** ~71k lines of Rust, 400+ tests
-**Last updated:** 2026-10-01 · **Overall parity:** ~40% · **Code:** ~106k lines of Rust in 30 crates, 724 tests
++**Last updated:** 2026-10-01 · **Overall parity:** ~45% · **Code:** ~125k lines of Rust in 31 crates, 800+ tests
## Estimate to parity
@@@ -31,25 -31,27 +31,28 @@@ Status: ✅ done · 🟡 in progress �
| M0 | Skeleton + visual shell | ✅ | Workspace, 20 crates, dock/workspaces, Premiere 26 look, native menus, control channel, MCP, xtask gates (layers, wasm) | — | — |
| M1 | Media I/O | ✅ | MP4/MOV demux+mux, WAV, stills, MJPEG, symphonia audio (MP3/FLAC/ALAC/Vorbis), GOP seek + frame cache, import | Media Browser polish | 2 |
| M2 | H.264 decoder | ✅ | Own decoder, bit-exact on 37+ streams, 500–600 fps 1080p | — | — |
--| M3 | Editing core | 🟡 | Edit algebra (insert/overwrite/razor/lift/extract/ripple/roll/slip/slide/rate-stretch/nest/paste), tools, markers | Trim mode + dynamic trimming, multicam, subclips, keyboard shortcut editor | 10–15 |
++| M3 | Editing core | 🟡 | Edit algebra (insert/overwrite/razor/lift/extract/ripple/roll/slip/slide/rate-stretch/nest/paste), tools, markers, trim mode + Trim Monitor + dynamic J/K/L trimming, Keyboard Shortcuts editor with FilmCraft/Premiere/FCP/Avid presets | Multicam, subclip polish, ~220 Premiere default shortcuts whose commands don't exist yet | 6–10 |
| M4 | Playback | 🟡 | Audio-clock master, prefetch, J/K/L, dropped-frame stats, playback resolution | Render previews, render bar, 4K/8K tuning | 8–12 |
| M5 | Effects, keyframes, GPU | 🟡 | ~60 CPU effects, 30 transitions, keyframes + value/velocity graphs, wgpu compositor | Full ~150-effect catalogue, WGSL parity for all, masks + tracking, adjustment layers, presets, Warp Stabilizer, Morph Cut | 30–45 |
| M6 | Export | ✅ | Own H.264 encoder (High/Main/Baseline, B-frames, VBR/CBR/2-pass) → MP4 + own AAC; ProRes, MJPEG, PNG, GIF, WAV; background jobs | Preset library, queue UI, smart render | 6–8 |
-| M7 | Audio | 🟡 | Mixer basics, peak meters, BS.1770 loudness meters (M/S/I LUFS, true peak; matches ffmpeg), DSP crate, 12 clip audio effects running on it (EQ, filters, dynamics, limiter, delay, reverb, DeNoise, DeHum, pitch) with keyframes | Effects UI polish (EQ curve), remaining effects (multiband, convolution reverb), track effects/mixers with automation, Essential Sound, audio transitions, 5.1 | 6–10 |
+| M7 | Audio | 🟡 | Mixer graph (tracks → submixes → Mix, pre/post-fader inserts and sends, latency-compensated, sample-accurate, ~6× realtime for 24 tracks × 3 effects on one core), Audio Track Mixer + Audio Clip Mixer panels, track automation (Off/Read/Latch/Touch/Write, recorded live while playing, thinned to keyframes, timeline lanes with pen editing), solo/solo-safe, channel mapping basics, peak + BS.1770 loudness meters (match ffmpeg), DSP crate with 12 clip/track effects, Audio Gain (set/adjust/normalize), Constant Power / Constant Gain / Exponential Fade | Essential Sound, 5.1 panner and multichannel buses, voice-over record, effect editor windows (EQ curve), remaining effects (multiband, convolution reverb), clip-mixer automation recording | 6–9 |
| M8 | Colour | 🟡 | Lumetri: basic, creative + looks, RGB & hue curves, wheels, HSL secondary, vignette; basic scopes | LUT import UI, colour match, colour management + HDR (PQ/HLG, log, tone mapping) | 8–12 |
- | M9 | More codecs | 🟡 | ProRes decode+encode, AAC decode+encode, HEVC Main/Main 10 decoder (bit-exact on 41 fixtures, ~225 fps 1080p), Matroska/WebM import (H.264/HEVC/ProRes/MJPEG + AAC/Opus/FLAC/MP3/Vorbis/PCM), Opus decoder (SILK/CELT/hybrid, 5.1/7.1 multistream; all RFC 8251 vectors range-exact; WebM/MKV/MP4) | VP9 (in progress), Ogg Opus files, AV1 (rav1d), DNxHR, MXF, hardware decode | 12–20 |
- | M10 | Graphics & captions | 🟡 | Caption tracks (Subtitle/CEA-608/708/Teletext formats, track style), SRT/WebVTT/SCC import+export (frame-exact, property-tested), caption editing (add/split/merge/trim/move, sync-locked insert/extract), Text panel Captions tab, burn-in in Program monitor and export | Text engine with shaping, Type tool, Essential Graphics, rolls/crawls, MCC/STL/TTML, 608/708 embedding, speech-to-text | 18–27 |
+ | M9 | More codecs | 🟡 | ProRes decode+encode, AAC decode+encode, HEVC Main/Main 10 decoder (bit-exact on 41 fixtures, ~225 fps 1080p), VP9 decoder (profiles 0–3, 8/10/12-bit, bit-exact on 50+ fixtures; WebM/MKV `V_VP9` and MP4 `vp09` import with key-frame-checked seeking), Matroska/WebM import (H.264/HEVC/VP9/ProRes/MJPEG + AAC/Opus/FLAC/MP3/Vorbis/PCM), Opus decoder (SILK/CELT/hybrid, 5.1/7.1 multistream; all RFC 8251 vectors range-exact; WebM/MKV/MP4) | VP9 frame threading, Ogg Opus files, AV1 (rav1d), DNxHR, MXF, hardware decode | 12–20 |
+ | M10 | Graphics & captions | 🟡 | Caption tracks (Subtitle/CEA-608/708/Teletext formats, track style), SRT/WebVTT/SCC import+export (frame-exact, property-tested), caption editing (add/split/merge/trim/move, sync-locked insert/extract), Text panel Captions tab, burn-in in Program monitor and export; text engine (`crates/text`: bundled + system fonts, harfrust shaping, bidi, line breaking, paragraph layout, glyph cache; 3-line 1080p title ≈ 0.15 ms warm); graphic clips with text + shape layers (fill, 2 strokes, background, shadow, keyframable transform), Type tool with on-monitor editing, shape/pen tools, Properties/Essential Graphics editor, align/distribute | Responsive design pins, rolls/crawls, per-character styles, motion graphics templates, MCC/STL/TTML, 608/708 embedding, speech-to-text | 12–18 |
| M11 | Interchange & project management | 🟡 | `.fcproj` schema versions + migrations, atomic saves, Save a Copy/Revert, auto-save ring + crash-recovery journal (Preferences ▸ Auto Save, recovery prompt), FCP7 XML, FCPXML, EDL, OTIO | Relink/offline, project manager, proxies | 8 |
| M12–M16 | Web (WASM), platform, long tail | 🟡 | L0–L4 crates compile to wasm32 | Web app shell (file access, WebCodecs, audio), ~850 remaining commands and dialogs, performance hardening | 40–65 |
## Running now
- - VP9 decoder (`crates/vp9`), from the public VP9 bitstream spec
- - Interchange (`crates/interchange`): CMX 3600 EDL, FCP7 XML, FCPXML, OTIO import and export
+ - Playback: fix a UI hang after preview renders, then a load-robust playback benchmark and profiling (target: 3 × 1080p streams with 0 dropped frames)
-- Text engine (shaping, layout), Type tool, graphics clips and Essential Graphics (M10.1–2)
-- Audio Track Mixer: track effects, sends, submixes, automation modes (M7.2)
## Log
++- **2026-10-01 (later):** text engine (shaping, bidi, line breaking) + Type/Shape/Pen tools + graphic clips + graphics panel; Trim Monitor + dynamic trimming; Keyboard Shortcuts editor; audio mixer with automation. Fixed: MP4 muxer wrote unreadable all-empty sample tables; system font scan race.
++
+- **2026-10-01:** Audio mixing (M7.2/M7.5/M7.6 basics): mixer graph with submixes, sends, inserts and latency compensation; Audio Track / Clip Mixer panels; Latch/Touch/Write automation recorded live; timeline track keyframes; Audio Gain dialog.
+ - **2026-10-01:** recovered from a machine crash with no lost work. Merged: VP9 decoder (profiles 0–3, bit-exact, WebM/MKV/MP4), Opus decoder (RFC 8251 range-exact; WebM/MKV/MP4), captions (SRT/VTT/SCC, burn-in), render bar + render previews, project schema versioning + atomic saves + auto-save + crash-recovery journal, test infrastructure (golden images, loudness oracle vs ffmpeg, headless scripted UI tests; fixed a GPU stale-texture bug), public contributor docs and licence files.
+
- **2026-09-30 (evening):** Opus decoder (RFC 6716/8251, range-exact on every conformance vector, ~80–110× realtime 48 kHz stereo) wired into WebM/MKV and MP4 import.
- **2026-09-30 (afternoon):** Matroska/WebM import; LUFS meters; clip audio effects on the DSP crate.
- **2026-09-30 (midday):** HEVC decoder, Matroska/WebM demuxer and audio DSP merged; HEVC import wired; asset rules (AGENTS.md, ATTRIBUTION.md, `cargo xtask assets`); README with hero screenshot and the Craft family.
diff --cc crates/engine/src/autosave.rs
index 0cc02293a,5b6552a62..e66b7c2d6
--- a/crates/engine/src/autosave.rs
+++ b/crates/engine/src/autosave.rs
@@@ -69,49 -101,19 +101,60 @@@ impl Default for TrimPrefs
#[serde(rename_all = "camelCase", default)]
pub struct Preferences {
pub auto_save: AutoSavePrefs,
+ pub audio: AudioPrefs,
+ pub playback: PlaybackPrefs,
+ pub trim: TrimPrefs,
}
+/// Preferences ▸ Audio (the mixer-automation part) and the Track Mixer panel-menu toggle.
+#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase", default)]
+pub struct AudioPrefs {
+ /// "Automatch Time" (s): how long Touch takes to return to the existing automation.
+ pub automatch_time: f64,
+ /// "Large Volume Adjustment" (dB) for the Increase/Decrease Clip Volume Many commands.
+ pub large_volume_adjustment: f64,
+ /// Automation Keyframe Optimization: "Linear keyframe thinning".
+ pub linear_keyframe_thinning: bool,
+ /// "Minimum time interval thinning".
+ pub minimum_time_interval_thinning: bool,
+ /// "Minimum time" (ms).
+ pub minimum_time_ms: u32,
+ /// Track Mixer ▸ "Switch to Touch after Write".
+ pub switch_to_touch_after_write: bool,
+}
+
+impl Default for AudioPrefs {
+ fn default() -> Self {
+ Self {
+ automatch_time: 1.0,
+ large_volume_adjustment: 6.0,
+ linear_keyframe_thinning: true,
+ minimum_time_interval_thinning: false,
+ minimum_time_ms: 20,
+ switch_to_touch_after_write: true,
+ }
+ }
+}
+
+impl AudioPrefs {
+ fn clamp(&mut self) {
+ self.automatch_time = if self.automatch_time.is_finite() { self.automatch_time.clamp(0.0, 30.0) } else { 1.0 };
+ self.large_volume_adjustment = if self.large_volume_adjustment.is_finite() { self.large_volume_adjustment.clamp(0.0, 96.0) } else { 6.0 };
+ self.minimum_time_ms = self.minimum_time_ms.clamp(1, 10_000);
+ }
+}
+
impl Preferences {
+ fn clamp(&mut self) {
+ self.auto_save.clamp();
++ self.audio.clamp();
+ let secs = |v: f64| if v.is_finite() { v.clamp(0.0, 60.0) } else { 0.0 };
+ self.playback.preroll_seconds = secs(self.playback.preroll_seconds);
+ self.playback.postroll_seconds = secs(self.playback.postroll_seconds);
+ self.trim.large_trim_offset = self.trim.large_trim_offset.clamp(1, 1000);
+ }
+
pub fn to_value(&self) -> Value {
serde_json::to_value(self).unwrap_or_default()
}
diff --cc crates/engine/src/commands.rs
index 6bc65609d,e562753b3..7f3ae7e09
--- a/crates/engine/src/commands.rs
+++ b/crates/engine/src/commands.rs
@@@ -1810,7 -1852,8 +1848,9 @@@ fn build() -> Vec<CommandSpec>
)),
];
v.extend(crate::captions::commands());
+ v.extend(crate::mixer::commands());
+ v.extend(crate::graphics::commands());
+ v.extend(crate::shortcuts::commands());
// Labels as individual commands (Edit ▸ Label ▸ <name>)
for l in Label::ALL {
let _ = l;
diff --cc crates/engine/src/lib.rs
index f20d400fa,4c0b3091a..e9a9f2788
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@@ -12,10 -12,12 +12,13 @@@ pub mod autosave
pub mod captions;
pub mod commands;
pub mod demo;
+ pub mod graphics;
pub mod interchange;
pub mod media_pool;
+pub mod mixer;
pub mod previews;
+ pub mod shortcut_presets;
+ pub mod shortcuts;
pub mod trim;
use std::sync::Arc;
@@@ -166,8 -171,12 +175,14 @@@ pub struct Session
pub loaded_schema: u32,
/// Render preview files + render-bar segments (shared with the frontend's frame workers).
pub previews: Arc<previews::PreviewStore>,
+ /// Audio Track Mixer automation pass in progress.
+ pub mixrec: mixer::Recorder,
+ /// Dynamic (J/K/L) trimming and trim-mode loop playback in progress.
+ pub trim_play: trim::TrimPlayback,
+ /// Keyboard shortcuts (active bindings, presets; `shortcuts.*` commands).
+ pub shortcuts: shortcuts::Shortcuts,
+ /// Nesting depth of [`Session::execute`] (commands that run other commands).
+ exec_depth: u32,
}
/// A background job with shared progress.
@@@ -227,7 -236,9 +242,10 @@@ impl Session
persistence: None,
loaded_schema: filmcraft_format::SCHEMA_VERSION,
previews: Arc::new(previews::PreviewStore::temp()),
+ mixrec: Default::default(),
+ trim_play: Default::default(),
+ shortcuts: shortcuts::Shortcuts::new(),
+ exec_depth: 0,
}
}
@@@ -318,11 -330,14 +337,16 @@@
/// Run a command by id.
pub fn execute(&mut self, id: &str, params: Value) -> Result<Value> {
let spec = commands::find(id).ok_or_else(|| EngineError::UnknownCommand(id.to_string()))?;
+ if self.exec_depth == 0 && spec.journal && self.trim_play.active() {
+ self.settle_trim_playback(id);
+ }
(spec.enabled)(self).map_err(|why| EngineError::Disabled(id.to_string(), why))?;
+ self.exec_depth += 1;
let r = (spec.run)(self, &params);
+ self.exec_depth -= 1;
self.sync_persistence();
+ // playback reads the newest snapshot (mixer moves, mutes… are heard while playing)
+ self.previews.live.publish_project(self.project.clone());
if r.is_ok() && spec.journal {
self.journal.push((id.to_string(), params));
if self.journal.len() > 10_000 {
@@@ -518,8 -527,10 +557,12 @@@ mod autosave_tests
#[cfg(test)]
mod file_tests;
#[cfg(test)]
+mod mixer_tests;
+#[cfg(test)]
mod previews_tests;
#[cfg(test)]
+ mod shortcuts_tests;
+ #[cfg(test)]
mod tests;
+ #[cfg(test)]
+ mod trim_tests;
diff --cc crates/project/src/lib.rs
index 1c13277fc,e275ae3bb..b502794fd
--- a/crates/project/src/lib.rs
+++ b/crates/project/src/lib.rs
@@@ -9,8 -9,8 +9,9 @@@
pub mod caption;
pub mod effect;
+ pub mod graphic;
pub mod keyframe;
+pub mod mixer;
use std::collections::BTreeMap;
diff --cc crates/render/src/lib.rs
index 329c46c93,dd618347a..f221e7f44
--- a/crates/render/src/lib.rs
+++ b/crates/render/src/lib.rs
@@@ -11,8 -11,9 +11,10 @@@ pub mod audio
pub mod audio_fx;
pub mod blend;
pub mod effects;
+ pub mod graphic_clip;
+ pub mod graphics;
pub mod image;
+pub mod mixer;
pub mod plan;
pub mod preview;
pub mod transitions;
diff --cc crates/ui-egui/src/panels/dialogs.rs
index 0f6020359,0ce1fe042..43b7b8fea
--- a/crates/ui-egui/src/panels/dialogs.rs
+++ b/crates/ui-egui/src/panels/dialogs.rs
@@@ -21,29 -22,11 +22,17 @@@ pub fn show(app: &mut FilmcraftApp, ctx
});
}
Dialog::Shortcuts => {
- egui::Window::new("Keyboard Shortcuts").open(&mut open).default_size([520.0, 520.0]).show(ctx, |ui| {
- egui::ScrollArea::vertical().show(ui, |ui| {
- egui::Grid::new("shortcuts").striped(true).show(ui, |ui| {
- for c in filmcraft_engine::command_specs().iter().filter(|c| c.shortcut.is_some()) {
- ui.label(c.label);
- ui.monospace(crate::menus::shortcut_text(c.shortcut.unwrap_or("")));
- ui.end_row();
- }
- for c in crate::menus::UI_COMMANDS.iter().filter(|c| c.shortcut.is_some()) {
- ui.label(c.label);
- ui.monospace(crate::menus::shortcut_text(c.shortcut.unwrap_or("")));
- ui.end_row();
- }
- });
- });
- });
+ if !crate::panels::shortcuts_dialog::show(app, ctx) && app.dialog == Some(d) {
+ app.dialog = None;
+ }
+ return;
}
+ Dialog::AudioGain => {
+ if !audio_gain(app, ctx) {
+ app.dialog = None;
+ }
+ return;
+ }
Dialog::NewSequence | Dialog::Preferences | Dialog::Recovery | Dialog::RevertConfirm => {}
}
if !open {
diff --cc crates/ui-egui/src/panels/mod.rs
index 0c5e71a5b,0eef1349a..ccb6ec9b2
--- a/crates/ui-egui/src/panels/mod.rs
+++ b/crates/ui-egui/src/panels/mod.rs
@@@ -10,14 -11,14 +11,16 @@@ pub mod import_mode
pub mod lumetri;
pub mod meters;
pub mod misc;
+pub mod mixer;
pub mod monitor;
pub mod project;
+ pub mod shortcuts_dialog;
pub mod text;
pub mod timeline;
+pub mod timeline_automation;
pub mod timeline_captions;
pub mod tools;
+ pub mod trim_monitor;
use egui::{Align2, Color32, Rect};
use filmcraft_project::ItemId;
diff --cc crates/ui-egui/src/state.rs
index 1172cdb88,d7d8ee8bc..d90aeaadb
--- a/crates/ui-egui/src/state.rs
+++ b/crates/ui-egui/src/state.rs
@@@ -280,26 -275,24 +280,42 @@@ pub struct UiState
/// Preferences ▸ Playback: play the rendered range when a preview render finishes.
#[serde(default = "yes")]
pub play_after_render: bool,
+ /// Audio Track Mixer: effects and sends section expanded.
+ #[serde(default)]
+ pub mixer_fx_open: bool,
+ /// Audio Gain dialog draft (mode, dB values).
+ #[serde(default)]
+ pub audio_gain: AudioGainDraft,
+ /// On-monitor text editing (Type tool / double-click on a text layer).
+ #[serde(default)]
+ pub gfx_edit: Option<GfxEdit>,
+ /// Pen tool: path points placed so far (sequence pixels).
+ #[serde(default)]
+ pub pen_points: Vec<[f64; 2]>,
}
+/// The Audio Gain dialog (Clip ▸ Audio Gain…, G).
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
+#[serde(default)]
+pub struct AudioGainDraft {
+ /// "set" | "adjust" | "normalizeMax" | "normalizeAll"
+ pub mode: String,
+ pub set_db: f64,
+ pub adjust_db: f64,
+ pub max_peak_db: f64,
+ pub all_peaks_db: f64,
+}
+
+ /// The text layer being edited on the Program monitor: caret and selection anchor are byte
+ /// offsets into the layer's text.
+ #[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
+ pub struct GfxEdit {
+ pub clip: u64,
+ pub layer: usize,
+ pub caret: usize,
+ pub anchor: usize,
+ }
+
fn captions_tab() -> String {
"Captions".into()
}
@@@ -336,8 -329,8 +352,10 @@@ impl Default for UiState
text_tab: captions_tab(),
caption_search: String::new(),
play_after_render: true,
+ mixer_fx_open: false,
+ audio_gain: AudioGainDraft::default(),
+ gfx_edit: None,
+ pen_points: vec![],
}
}
}