From c7fed29a5c7b8f1a670ef1738619cca43d7a9656 Mon Sep 17 00:00:00 2001 From: "kyj@bowong.ai" Date: Fri, 25 Apr 2025 18:09:50 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E9=99=8D=E4=BD=8E=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/video.py b/nodes/video.py index fbb9dcc..8fa07dd 100644 --- a/nodes/video.py +++ b/nodes/video.py @@ -276,7 +276,7 @@ class VideoChangeFPS: ff = ffmpy.FFmpeg( inputs={input_video: None}, outputs={ - output_temp: f"-y -vf fps={target_fps} -c:v libx264 -c:a aac" + output_temp: f"-y -vf fps={target_fps} -c:v libx264 -c:a aac -preset slow -crf 16" } ) print("调整FPS命令:", ff.cmd) @@ -307,7 +307,7 @@ class VideoChangeFPS: [0:a]{filter_audio}[a] " -map "[v]" -map "[a]" - -c:v libx264 -c:a aac + -c:v libx264 -c:a aac -preset slow -crf 16 """ } )