配置 ffmpegRecord 写入临时文件

This commit is contained in:
shikong 2024-03-13 17:18:25 +08:00
parent 5611bbbe38
commit 5152136f97

View File

@ -239,10 +239,6 @@ public class VideoService {
Executor executor;
DefaultExecuteResultHandler executeResultHandler = mediaStatus(device,callId);
if(ffmpegConfig.getUseTmpFile()) {
if(!file.exists()){
log.info("创建临时文件 {}", fileName);
file.createNewFile();
}
outputStream = new PipedOutputStream();
String filePath = file.getAbsolutePath();
PumpStreamHandler streamHandler = new PumpStreamHandler(outputStream, System.err);