This commit is contained in:
eric
2026-03-19 03:47:47 -05:00
parent ab6a6cac65
commit fd3d952ab8

View File

@@ -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}")