Skip to content

Commit

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

0 comments on commit cc4e608

Please sign in to comment.