From 66f56809bf3837a1de2201ce9a47b612fc04a0e6 Mon Sep 17 00:00:00 2001 From: Qiming Date: Thu, 3 Nov 2022 16:13:45 +0800 Subject: [PATCH] =?UTF-8?q?equalizer=20-=20=E7=AE=80=E5=8C=96=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java b/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java index f592cc7..14306ca 100644 --- a/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java +++ b/app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java @@ -244,14 +244,9 @@ public class FFmpegUtil { | 10b | 11b | 12b | 13b | 14b | 15b | 16b | 17b | 18b | | 1480 | 2093 | 2960 | 4186 | 5920 | 8372 | 11840 | 16744 | 20000 | |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ - StringBuilder builder = new StringBuilder(); - for (String band:bandList) { - builder.append(band).append(":"); - } - builder.deleteCharAt(builder.length() - 1); - // "ffmpeg -i %s -af superequalizer=%s -y %s" + String bands = String.join(":", bandList); String equalizerCmd = "ffmpeg -i -af superequalizer=%s -y"; - equalizerCmd = String.format(Locale.getDefault(), equalizerCmd, builder.toString()); + equalizerCmd = String.format(Locale.getDefault(), equalizerCmd, bands); return insert(equalizerCmd.split(" "), 2, inputPath, outputPath); }