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

Louis Beaumontc081f6b31740
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs
index 382c95835..829e60d40 100644
--- a/screenpipe-audio/src/core.rs
+++ b/screenpipe-audio/src/core.rs
@@ -122,7 +122,8 @@ async fn run_ffmpeg(
duration: Duration,
) -> Result<()> {
debug!("Starting FFmpeg process");
- let mut ffmpeg = Command::new(find_ffmpeg_path().unwrap())
+ let mut command = Command::new(find_ffmpeg_path().unwrap());
+ command
.args(&[
"-f",
"f32le",
@@ -142,8 +143,7 @@ async fn run_ffmpeg(
])
.stdin(Stdio::piped())
.stdout(Stdio::piped())
- .stderr(Stdio::piped())
- .spawn()?;
+ .stderr(Stdio::piped());
// Explicitly set the library paths for the FFmpeg command
if let Ok(ld_library_path) = std::env::var("LD_LIBRARY_PATH") {
@@ -156,6 +156,8 @@ async fn run_ffmpeg(
debug!("FFmpeg command: {:?}", command);
+ debug!("FFmpeg command: {:?}", command);
+
debug!("FFmpeg process spawned");
let mut stdin = ffmpeg.stdin.take().expect("Failed to open stdin");
let start_time = std::time::Instant::now();