|
|
@@ -100,7 +100,7 @@ public class LabAudioSynthesisServiceImpl implements ILabAudioSynthesisService
|
|
|
if(flag>0){
|
|
|
|
|
|
// FfmpegConsole console = new FfmpegConsole();
|
|
|
- String cmd ="ffmpeg -i "+labAudioSynthesis.getMusicUrl()+" -i "+labAudioSynthesis.getBgmusicUrl()+" -filter_complex \"[0:a]aformat=sample_fmts=fltp:channel_layouts=stereo,volume="+labAudioSynthesis.getMusicVolume()+"[a0]; [1:a]aformat=sample_fmts=fltp:channel_layouts=stereo,volume="+labAudioSynthesis.getBgmusicVolume()+",adelay=5000|5000|5000,apad[a1]; [a0][a1]amerge=inputs=2[aout]\" -shortest -map \"[aout]\" -ac 2 "+localFilePath+"";
|
|
|
+ String cmd ="/usr/bin/ffmpeg -i "+labAudioSynthesis.getMusicUrl()+" -i "+labAudioSynthesis.getBgmusicUrl()+" -filter_complex \"[0:a]aformat=sample_fmts=fltp:channel_layouts=stereo,volume="+labAudioSynthesis.getMusicVolume()+"[a0]; [1:a]aformat=sample_fmts=fltp:channel_layouts=stereo,volume="+labAudioSynthesis.getBgmusicVolume()+",adelay=5000|5000|5000,apad[a1]; [a0][a1]amerge=inputs=2[aout]\" -shortest -map \"[aout]\" -ac 2 "+localFilePath+"";
|
|
|
log.error("cmd:"+cmd);
|
|
|
try {
|
|
|
new Thread(()->this.exec(cmd)).start();
|