调整切割逻辑,提前检测文件夹配置

This commit is contained in:
2025-02-08 10:59:53 +08:00
parent fcf1e28fbd
commit 1115bed7e2
2 changed files with 9 additions and 2 deletions

View File

@ -177,10 +177,11 @@ func QuickVideoCut(inputFile string, offset, length int64, outputFile string) (b
FfmpegExec,
"-hide_banner",
"-y",
"-ss", strconv.FormatInt(offset, 10),
"-i", inputFile,
"-c:v", "copy",
"-an",
"-reset_timestamps", "1",
"-ss", strconv.FormatInt(offset, 10),
"-t", strconv.FormatInt(length, 10),
"-f", "mp4",
outputFile,