From fd3d952ab89017287afc053a15f64fd64815a5da Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 19 Mar 2026 03:47:47 -0500 Subject: [PATCH] 's' --- douyin_youtube_ffplay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/douyin_youtube_ffplay.py b/douyin_youtube_ffplay.py index cf1ad46..103b9fa 100644 --- a/douyin_youtube_ffplay.py +++ b/douyin_youtube_ffplay.py @@ -165,7 +165,8 @@ def start_douyin_youtube_ffplay( if "h264_nvenc" in (enc.stdout or ""): codec_v = "h264_nvenc" video_args = ["-profile:v", "high", "-level", "4.0", - "-tune", "ll", "-rc", "vbr", "-cq", "21", "-b:v", b_v] + "-tune", "ll", "-rc", "vbr", "-cq", "24", + "-b:v", b_v, "-maxrate", maxrate, "-bufsize", bufsize] print("[INFO] 检测到 NVIDIA GPU → 使用 NVENC 硬件加速") except Exception as e: print(f"[WARN] NVENC 检测失败,回退软件编码: {e}")