This commit is contained in:
2024-11-04 18:21:16 +08:00
parent 96acb5826d
commit 6d00813311
10 changed files with 83 additions and 57 deletions

View File

@@ -282,7 +282,7 @@ public class LiveVideoDownloadService {
@Override
public void onDownload(File file) {
super.onDownload(file);
Log.e("下载完成 ");
Log.d("下载完成 ");
stop();
}
});
@@ -322,9 +322,9 @@ public class LiveVideoDownloadService {
VideoFilePath path = createVideoRootFilePath(configBean, recordDir);
if (recordDir.exists()) {
List<LiveVideoDatabaseBean> infos = database.getLiveInfos();
database.close();
path.setChildren(getVideoInfo(infos));
}
database.close();
return path;
}
@@ -374,6 +374,7 @@ public class LiveVideoDownloadService {
break;
}
}
liveDatabase.close();
if(videoInfo != null) {
FFmpegUtils ffmpeg = FFmpegUtils.segment(videoId, ffmpegPath, new File(videoInfo.getPath()), ConfigTools.load(ConfigTools.CONFIG, "outVideoPath", String.class));
System.out.println(ffmpeg.getCommand());