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 noise

Louis Beaumont9311d63ed98a
diff --git a/screenpipe-server/src/video.rs b/screenpipe-server/src/video.rs
index d4640c1cd..489223d32 100644
--- a/screenpipe-server/src/video.rs
+++ b/screenpipe-server/src/video.rs
@@ -7,6 +7,7 @@ use screenpipe_core::{find_ffmpeg_path, Language};
use screenpipe_vision::{
capture_screenshot_by_window::WindowFilters, continuous_capture, CaptureResult, OcrEngine,
};
+use std::borrow::Cow;
use std::path::PathBuf;
use std::process::Stdio;
use std::sync::Arc;
@@ -444,8 +445,9 @@ pub async fn finish_ffmpeg_process(child: Child, stdin: Option<ChildStdin>) {
match child.wait_with_output().await {
Ok(output) => {
debug!("FFmpeg process exited with status: {}", output.status);
- if !output.status.success() {
- error!("FFmpeg stderr: {}", String::from_utf8_lossy(&output.stderr));
+ let stderr = String::from_utf8_lossy(&output.stderr);
+ if !output.status.success() && stderr != Cow::Borrowed("") {
+ error!("FFmpeg stderr: {}", stderr);
}
}
Err(e) => error!("Failed to wait for FFmpeg process: {}", e),