添加定时删除功能

This commit is contained in:
孙小云 2025-07-19 13:18:35 +08:00
parent f0b4b85dec
commit f16a17d918
1 changed files with 2 additions and 2 deletions

View File

@ -122,11 +122,11 @@ public class ProcessService {
ffmpeg+ " -i %s -vf fps=1 -frames:v 1 -q:v 2 %s",
streamUrl, outFileName);
// -rw_timeout 5
List<String> listCommand = new ArrayList<>();
listCommand.add(ffmpeg); // ffmpeg 路径
listCommand.add("-i");
listCommand.add(" -timeout 3000000 -rw_timeout 5000000 -i ");
listCommand.add(streamUrl); // 流地址
listCommand.add("-vf");
listCommand.add("fps=1");