Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: ffmpeg installation issue

Louis Beaumontcf3ba318a8bf
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index 09d8adac9..f3a961e26 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -582,9 +582,15 @@ async fn main() -> anyhow::Result<()> {
}
}
- if find_ffmpeg_path().is_none() {
- eprintln!("ffmpeg not found. please install ffmpeg and ensure it is in your path.");
- std::process::exit(1);
+ // Replace the current conditional check with:
+ let ffmpeg_path = find_ffmpeg_path();
+ if ffmpeg_path.is_none() {
+ // Try one more time, which might trigger the installation
+ let ffmpeg_path = find_ffmpeg_path();
+ if ffmpeg_path.is_none() {
+ eprintln!("ffmpeg not found and installation failed. please install ffmpeg manually.");
+ std::process::exit(1);
+ }
}
if !is_local_ipv4_port_free(cli.port) {