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: audio devices with more than 2 channels

Louis Beaumontcc4e608e28c7
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs
index 6c816f8ed..9d14c585a 100644
--- a/screenpipe-audio/src/core.rs
+++ b/screenpipe-audio/src/core.rs
@@ -196,15 +196,13 @@ async fn run_ffmpeg(
"-ar",
&sample_rate.to_string(),
"-ac",
- &channels.to_string(),
+ &if channels > 2 { 2 } else { channels }.to_string(),
"-i",
"pipe:0",
"-c:a",
"aac",
- "-strict",
- "experimental",
"-b:a",
- "384k",
+ "128k",
"-f",
"mp4",
output_path.to_str().unwrap(),