From d853e3b55ce51bd4fe8e32d5d6a30e16e89da48e Mon Sep 17 00:00:00 2001 From: an-lee Date: Tue, 22 Oct 2024 11:33:16 +0800 Subject: [PATCH] improve ffmpeg command --- enjoy/src/main/ffmpeg.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/enjoy/src/main/ffmpeg.ts b/enjoy/src/main/ffmpeg.ts index 8d9526b5..73ddef82 100644 --- a/enjoy/src/main/ffmpeg.ts +++ b/enjoy/src/main/ffmpeg.ts @@ -305,7 +305,11 @@ export default class FfmpegWrapper { "-crf", "30", "-preset", - "superfast" + "superfast", + "-c:a", + "aac", + "-b:a", + "128k" ) .on("start", (commandLine) => { logger.info("Spawned FFmpeg with command: " + commandLine);