|
|
@ -870,9 +870,9 @@ public class FFmpegUtil { |
|
|
|
return insert(trimCmd.split(" "), 2, inputPath, outputPath); |
|
|
|
return insert(trimCmd.split(" "), 2, inputPath, outputPath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String[] showAudioWaveform(String inputPath, String resolution, String outputPath) { |
|
|
|
public static String[] showAudioWaveform(String inputPath, String resolution, int splitChannels, String outputPath) { |
|
|
|
String waveformCmd = "ffmpeg -i -filter_complex showwavespic=s=%s"; |
|
|
|
String waveformCmd = "ffmpeg -i -filter_complex showwavespic=s=%s:split_channels=%d"; |
|
|
|
waveformCmd = String.format(Locale.getDefault(), waveformCmd, resolution); |
|
|
|
waveformCmd = String.format(Locale.getDefault(), waveformCmd, resolution, splitChannels); |
|
|
|
return insert(waveformCmd.split(" "), 2, inputPath, outputPath); |
|
|
|
return insert(waveformCmd.split(" "), 2, inputPath, outputPath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|