|
@@ -96,9 +96,9 @@ public class FfmpegServiceImpl implements IFfmpegService {
|
|
|
command.append(" -i ");
|
|
|
command.append(audioPart2);
|
|
|
command.append(" -filter_complex ");
|
|
|
- command.append("\"[0:0] [1:0] concat=n=2:v=0:a=1 [a]\"");
|
|
|
+ command.append("'[0:0] [1:0] concat=n=2:v=0:a=1 [a]'");
|
|
|
command.append(" -map ");
|
|
|
- command.append(" [a] ");
|
|
|
+ command.append("[a] ");
|
|
|
command.append(finalAudio);
|
|
|
Runtime runtime = Runtime.getRuntime();
|
|
|
Process pro = null;
|
|
@@ -108,7 +108,7 @@ public class FfmpegServiceImpl implements IFfmpegService {
|
|
|
if (status == 0) {
|
|
|
log.info("音频文件合成成功:{}", command.toString());
|
|
|
} else {
|
|
|
- log.info("视音频文件合成失败:{}", command.toString());
|
|
|
+ log.info("音频文件合成失败:{}", command.toString());
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|