Skip to content

AutoShorts is a local-first desktop application for turning long-form video or audio recordings into high-impact, vertical short-form clip candidates (9:16 portrait) with AI-powered viral moment ranking.

Rust

Fix caption rendering on Windows: escape colon in drawtext fontfile path

Jonas Kruse00c1b99e939b
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 2f8c6c5..eed4fa1 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -874,7 +874,7 @@ fn build_drawtext_filters(
let mut font_option = String::new();
for path in &font_paths {
if std::path::Path::new(path).exists() {
- font_option = format!("fontfile='{}':", path);
+ font_option = format!("fontfile='{}':", path.replace(':', "\:"));
break;
}
}