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: issue when audio device has more than 3 channels

Louis Beaumont60305d355456
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs
index f35de7251..6c816f8ed 100644
--- a/screenpipe-audio/src/core.rs
+++ b/screenpipe-audio/src/core.rs
@@ -187,6 +187,7 @@ async fn run_ffmpeg(
duration: Duration,
) -> Result<()> {
debug!("Starting FFmpeg process");
+
let mut command = Command::new(find_ffmpeg_path().unwrap());
command
.args(&[
@@ -200,10 +201,10 @@ async fn run_ffmpeg(
"pipe:0",
"-c:a",
"aac",
+ "-strict",
+ "experimental",
"-b:a",
- "128k",
- "-aac_coder",
- "fast",
+ "384k",
"-f",
"mp4",
output_path.to_str().unwrap(),