From c1e119f04929b0b67450a0949fa5184b642c72ee Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 26 May 2022 06:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E5=89=B2=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=8F=82=E6=95=B0=E5=86=99=E9=94=99=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=88=87=E5=89=B2=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflow/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/video.py b/workflow/video.py index 6ab8bca..ad5d70d 100644 --- a/workflow/video.py +++ b/workflow/video.py @@ -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)