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
feat(timeline): Generate captions on a sounding clip's right-click menu (#302)
Jareer2d3e651aa340
diff --git a/src/crates/concat/src/lib.rs b/src/crates/concat/src/lib.rsindex 0606cd7f..b7f201ac 100644--- a/src/crates/concat/src/lib.rs+++ b/src/crates/concat/src/lib.rs@@ -1271,6 +1271,17 @@ fn start(project: Option<std::path::PathBuf>, smoke: bool) -> Result<(), slint::// is selected, which is what the menu was showing anyway.let target = state.menu_target.clone().or_else(|| state.sole_selection());if let Some(id) = target {+ // The captions sheet is a pane of its own, so its row goes+ // through the window's messages rather than the clip's verbs:+ // the clip is selected, and the sheet takes the selection as+ // the clip to transcribe.+ if action.as_str() == "captions" {+ state.flush_commit();+ state.transition_selected = None;+ state.selection = vec![id];+ state.handle(Msg::Captions(CaptionsMsg::Open));+ return;+ }state.clip_action(&id, action.as_str());}}));diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rsindex 025b9385..aaf9be77 100644--- a/src/crates/concat/src/studio.rs+++ b/src/crates/concat/src/studio.rs@@ -9653,6 +9653,18 @@ impl Studio {"",self.clip_has_sound(clip),));+ // What is said in it, as titles on the timeline: the captions+ // sheet, opened on this clip. Here so the transcriber is found+ // where the sound is, not only on the tray (#302). The captions+ // land on a text lane above, not on this clip's track, so a+ // locked track does not grey it.+ rows.push(action(+ "captions",+ t("captions.generateCaptions"),+ Glyph::TextMark,+ "",+ self.clip_has_sound(clip),+ ));rows.push(rule());}let audible = clip.kind != model::ClipKind::Image;