Skip to content

Commit 6afc82f

Browse files
fix ffmpeg arguments during concat. (#1120)
Sample rate of 192k was squeaking though in WAV files. Now concat forces to 16k for both wav and m4a, during compression we set a bitrate of 32k. Audio now sounds great, for a slight file size trade.
1 parent 7f9e21e commit 6afc82f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

trunk-recorder/call_concluder/call_concluder.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ static bool should_apply_structured_loudnorm(const Audio_Postprocess_Config &cfg
404404

405405
static void append_ffmpeg_output_args(std::vector<std::string> &args, bool compressed) {
406406
if (compressed)
407-
args.insert(args.end(), {"-c:a", "aac", "-ar", "8000", "-ac", "1",
407+
args.insert(args.end(), {"-c:a", "aac", "-ar", "16000", "-ac", "1",
408408
"-b:a", "32k", "-movflags", "+faststart"});
409409
else
410-
args.insert(args.end(), {"-c:a", "pcm_s16le"});
410+
args.insert(args.end(), {"-c:a", "pcm_s16le", "-ar", "16000", "-ac", "1"});
411411
}
412412

413413
struct LoudnormMeasured {

0 commit comments

Comments
 (0)