Skip to content

Commit

Permalink
fix: issue when audio device has more than 3 channels
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Sep 3, 2024
1 parent fe33ece commit 60305d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions screenpipe-audio/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&[
Expand All @@ -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(),
Expand Down

0 comments on commit 60305d3

Please sign in to comment.