From c3f461aa207b5797a5555fc7b43668ac28aecb22 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 29 Mar 2022 16:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E8=BE=93=E5=87=BA=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=96=B9=E4=BE=BF=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quick_split_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quick_split_video.py b/quick_split_video.py index 4746f18..a82650e 100644 --- a/quick_split_video.py +++ b/quick_split_video.py @@ -43,8 +43,8 @@ if __name__ == '__main__': print("CUR_DT", current_dt) print("BIAS_T", current_sec) split_process = subprocess.Popen([ - "ffmpeg", "-y", "-i", input_file, - "-c", "copy", "-f", "mp4", + "ffmpeg", "-y", "-hide_banner", "-progress", "-", "-v", "0", + "-i", input_file, "-c", "copy", "-f", "mp4", "-t", str(EACH_SEC + OVERFLOW_SEC), "-ss", str(current_sec), "{}.mp4".format(current_dt)