修复切割视频参数写错,导致切割失败的问题

This commit is contained in:
Jerry Yan 2022-05-26 06:55:48 +08:00
parent 2fdfa43654
commit c1e119f049

View File

@ -209,7 +209,7 @@ def quick_split_video(file):
split_process = subprocess.Popen([
FFMPEG_EXEC, *_common_ffmpeg_setting(),
"-ss", str(current_sec),
"-i", file_name, "-c", "copy", "-f", "mp4",
"-i", file, "-c", "copy", "-f", "mp4",
"-t", str(VIDEO_CLIP_EACH_SEC + VIDEO_CLIP_OVERFLOW_SEC),
"-fflags", "+genpts", "-shortest", "-movflags", "faststart",
"{}.mp4".format(current_dt)