历史视频分段下载及合并

This commit is contained in:
shikong 2024-03-18 17:04:26 +08:00
parent c51d353e21
commit b955abc852

View File

@ -146,7 +146,9 @@ public class VideoCacheManager {
try(FileWriter fileWriter = new FileWriter(concatFile)){
for (CompletableFuture<JsonResponse<String>> result : completableFutures) {
String splitFilePath = result.get().getData();
fileWriter.write(String.format("file \"%s\"\n", splitFilePath));
String config = String.format("file '%s'\n", splitFilePath);
fileWriter.write(config);
log.debug("{}", config);
}
}
log.info("生成临时合并配置文件 {}", concatFile.getAbsolutePath());