From db7f92d25880bf309caac5515984659054b9f3ee Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 31 May 2022 11:32:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=B9=95=E7=BC=96=E7=A0=81=EF=BC=8Cpr?= =?UTF-8?q?ofile=20main,=20tune=20animation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflow/video.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/workflow/video.py b/workflow/video.py index caacf7c..c9221a0 100644 --- a/workflow/video.py +++ b/workflow/video.py @@ -176,13 +176,15 @@ def quick_split_video(file): def _common_ffmpeg_setting(): return ( - "-y", "-hide_banner", "-progress", "-", "-loglevel", "error", "-sub_charenc", "UTF-8" + "-y", "-hide_banner", "-progress", "-", "-loglevel", "error" ) def _common_ffmpeg_params(): return ( - "-preset:v", "fast", "-profile:v", "high", "-level", "4.1", - "-qmin", "10", "-qmax", "48", "-crf", "26", + "-f", "mp4", "-b:v", VIDEO_BITRATE, "-c:a", "copy", + "-sub_charenc", "UTF-8", + "-preset:v", "fast", "-profile:v", "main", + "-qmin", "12", "-qmax", "34", "-crf", "24", "-tune:v", "animation", "-fflags", "+genpts", "-shortest", "-movflags", "faststart" )