소스 검색

video compose

ehlxr 1 년 전
부모
커밋
725f2f1c20
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      etl-core/src/main/java/com/tzld/crawler/etl/service/impl/EtlServiceImpl.java

+ 2 - 1
etl-core/src/main/java/com/tzld/crawler/etl/service/impl/EtlServiceImpl.java

@@ -249,8 +249,9 @@ public class EtlServiceImpl implements EtlService {
             String auditPath = urlDownload(data.getAudioUrl(), "longvideo/crawler_local/audit", title);
             VideoUtils.videoCompose(ffmpegPath, downloadPath + File.separator + videoPath,
                     downloadPath + File.separator + auditPath, downloadPath + File.separator + videoPath + "_comp.mp4");
-            // 清理合成音频的视频文件
+            // 清理合成音频之前的文件
             Files.deleteIfExists(Paths.get(new File(downloadPath + File.separator + videoPath).getPath()));
+            Files.deleteIfExists(Paths.get(new File(downloadPath + File.separator + auditPath).getPath()));
             videoPath += "_comp.mp4";
         }