|
@@ -243,15 +243,15 @@ public class EtlServiceImpl implements EtlService {
|
|
|
String strategy = data.getStrategy();
|
|
|
String audioUrl = data.getAudioUrl();
|
|
|
|
|
|
- String videoPath = urlDownload(data.getVideoUrl(), "longvideo/crawler_local/data", title);
|
|
|
+ String videoPath = urlDownload(data.getVideoUrl(), "longvideo/crawler_local/video", title);
|
|
|
// 音、视频合成
|
|
|
if (!Strings.isNullOrEmpty(audioUrl)) {
|
|
|
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");
|
|
|
+ downloadPath + File.separator + auditPath, downloadPath + File.separator + videoPath + "_comp.mp4");
|
|
|
// 清理未合成音频的视频文件
|
|
|
Files.deleteIfExists(Paths.get(new File(downloadPath + File.separator + videoPath).getPath()));
|
|
|
- videoPath += "_comp";
|
|
|
+ videoPath += "_comp.mp4";
|
|
|
}
|
|
|
|
|
|
// 视频上传 oss
|